147 lines
3.2 KiB
Go
147 lines
3.2 KiB
Go
// Code generated by BobGen psql v0.0.4-0.20260105020634-53e08d840e47+dirty. DO NOT EDIT.
|
|
// This file is meant to be re-generated in place and/or deleted at any time.
|
|
|
|
package dbinfo
|
|
|
|
import "github.com/aarondl/opt/null"
|
|
|
|
var PublicreportQuickPhotos = Table[
|
|
publicreportQuickPhotoColumns,
|
|
publicreportQuickPhotoIndexes,
|
|
publicreportQuickPhotoForeignKeys,
|
|
publicreportQuickPhotoUniques,
|
|
publicreportQuickPhotoChecks,
|
|
]{
|
|
Schema: "publicreport",
|
|
Name: "quick_photo",
|
|
Columns: publicreportQuickPhotoColumns{
|
|
ID: column{
|
|
Name: "id",
|
|
DBType: "integer",
|
|
Default: "nextval('publicreport.quick_photo_id_seq'::regclass)",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Size: column{
|
|
Name: "size",
|
|
DBType: "bigint",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Filename: column{
|
|
Name: "filename",
|
|
DBType: "text",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
QuickID: column{
|
|
Name: "quick_id",
|
|
DBType: "integer",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
UUID: column{
|
|
Name: "uuid",
|
|
DBType: "uuid",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
},
|
|
Indexes: publicreportQuickPhotoIndexes{
|
|
QuickPhotoPkey: index{
|
|
Type: "btree",
|
|
Name: "quick_photo_pkey",
|
|
Columns: []indexColumn{
|
|
{
|
|
Name: "id",
|
|
Desc: null.FromCond(false, true),
|
|
IsExpression: false,
|
|
},
|
|
},
|
|
Unique: true,
|
|
Comment: "",
|
|
NullsFirst: []bool{false},
|
|
NullsDistinct: false,
|
|
Where: "",
|
|
Include: []string{},
|
|
},
|
|
},
|
|
PrimaryKey: &constraint{
|
|
Name: "quick_photo_pkey",
|
|
Columns: []string{"id"},
|
|
Comment: "",
|
|
},
|
|
ForeignKeys: publicreportQuickPhotoForeignKeys{
|
|
PublicreportQuickPhotoQuickPhotoQuickIDFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "publicreport.quick_photo.quick_photo_quick_id_fkey",
|
|
Columns: []string{"quick_id"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "publicreport.quick",
|
|
ForeignColumns: []string{"id"},
|
|
},
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type publicreportQuickPhotoColumns struct {
|
|
ID column
|
|
Size column
|
|
Filename column
|
|
QuickID column
|
|
UUID column
|
|
}
|
|
|
|
func (c publicreportQuickPhotoColumns) AsSlice() []column {
|
|
return []column{
|
|
c.ID, c.Size, c.Filename, c.QuickID, c.UUID,
|
|
}
|
|
}
|
|
|
|
type publicreportQuickPhotoIndexes struct {
|
|
QuickPhotoPkey index
|
|
}
|
|
|
|
func (i publicreportQuickPhotoIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.QuickPhotoPkey,
|
|
}
|
|
}
|
|
|
|
type publicreportQuickPhotoForeignKeys struct {
|
|
PublicreportQuickPhotoQuickPhotoQuickIDFkey foreignKey
|
|
}
|
|
|
|
func (f publicreportQuickPhotoForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{
|
|
f.PublicreportQuickPhotoQuickPhotoQuickIDFkey,
|
|
}
|
|
}
|
|
|
|
type publicreportQuickPhotoUniques struct{}
|
|
|
|
func (u publicreportQuickPhotoUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type publicreportQuickPhotoChecks struct{}
|
|
|
|
func (c publicreportQuickPhotoChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|