2026-01-27 18:44:02 +00:00
|
|
|
// Code generated by BobGen psql v0.42.5. DO NOT EDIT.
|
2026-01-16 14:52:11 +00:00
|
|
|
// 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 PublicreportPoolImages = Table[
|
|
|
|
|
publicreportPoolImageColumns,
|
|
|
|
|
publicreportPoolImageIndexes,
|
|
|
|
|
publicreportPoolImageForeignKeys,
|
|
|
|
|
publicreportPoolImageUniques,
|
|
|
|
|
publicreportPoolImageChecks,
|
|
|
|
|
]{
|
|
|
|
|
Schema: "publicreport",
|
|
|
|
|
Name: "pool_image",
|
|
|
|
|
Columns: publicreportPoolImageColumns{
|
|
|
|
|
ImageID: column{
|
|
|
|
|
Name: "image_id",
|
|
|
|
|
DBType: "integer",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
PoolID: column{
|
|
|
|
|
Name: "pool_id",
|
|
|
|
|
DBType: "integer",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Indexes: publicreportPoolImageIndexes{
|
|
|
|
|
PoolImagePkey: index{
|
|
|
|
|
Type: "btree",
|
|
|
|
|
Name: "pool_image_pkey",
|
|
|
|
|
Columns: []indexColumn{
|
|
|
|
|
{
|
|
|
|
|
Name: "image_id",
|
|
|
|
|
Desc: null.FromCond(false, true),
|
|
|
|
|
IsExpression: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
Name: "pool_id",
|
|
|
|
|
Desc: null.FromCond(false, true),
|
|
|
|
|
IsExpression: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Unique: true,
|
|
|
|
|
Comment: "",
|
|
|
|
|
NullsFirst: []bool{false, false},
|
|
|
|
|
NullsDistinct: false,
|
|
|
|
|
Where: "",
|
|
|
|
|
Include: []string{},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
PrimaryKey: &constraint{
|
|
|
|
|
Name: "pool_image_pkey",
|
|
|
|
|
Columns: []string{"image_id", "pool_id"},
|
|
|
|
|
Comment: "",
|
|
|
|
|
},
|
|
|
|
|
ForeignKeys: publicreportPoolImageForeignKeys{
|
|
|
|
|
PublicreportPoolImagePoolImageImageIDFkey: foreignKey{
|
|
|
|
|
constraint: constraint{
|
|
|
|
|
Name: "publicreport.pool_image.pool_image_image_id_fkey",
|
|
|
|
|
Columns: []string{"image_id"},
|
|
|
|
|
Comment: "",
|
|
|
|
|
},
|
|
|
|
|
ForeignTable: "publicreport.image",
|
|
|
|
|
ForeignColumns: []string{"id"},
|
|
|
|
|
},
|
|
|
|
|
PublicreportPoolImagePoolImagePoolIDFkey: foreignKey{
|
|
|
|
|
constraint: constraint{
|
|
|
|
|
Name: "publicreport.pool_image.pool_image_pool_id_fkey",
|
|
|
|
|
Columns: []string{"pool_id"},
|
|
|
|
|
Comment: "",
|
|
|
|
|
},
|
|
|
|
|
ForeignTable: "publicreport.pool",
|
|
|
|
|
ForeignColumns: []string{"id"},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
Comment: "",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type publicreportPoolImageColumns struct {
|
|
|
|
|
ImageID column
|
|
|
|
|
PoolID column
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c publicreportPoolImageColumns) AsSlice() []column {
|
|
|
|
|
return []column{
|
|
|
|
|
c.ImageID, c.PoolID,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type publicreportPoolImageIndexes struct {
|
|
|
|
|
PoolImagePkey index
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (i publicreportPoolImageIndexes) AsSlice() []index {
|
|
|
|
|
return []index{
|
|
|
|
|
i.PoolImagePkey,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type publicreportPoolImageForeignKeys struct {
|
|
|
|
|
PublicreportPoolImagePoolImageImageIDFkey foreignKey
|
|
|
|
|
PublicreportPoolImagePoolImagePoolIDFkey foreignKey
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (f publicreportPoolImageForeignKeys) AsSlice() []foreignKey {
|
|
|
|
|
return []foreignKey{
|
|
|
|
|
f.PublicreportPoolImagePoolImageImageIDFkey, f.PublicreportPoolImagePoolImagePoolIDFkey,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type publicreportPoolImageUniques struct{}
|
|
|
|
|
|
|
|
|
|
func (u publicreportPoolImageUniques) AsSlice() []constraint {
|
|
|
|
|
return []constraint{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type publicreportPoolImageChecks struct{}
|
|
|
|
|
|
|
|
|
|
func (c publicreportPoolImageChecks) AsSlice() []check {
|
|
|
|
|
return []check{}
|
|
|
|
|
}
|