nidus-sync/db/dbinfo/feature_pool.bob.go

137 lines
2.8 KiB
Go

// Code generated by BobGen psql v0.42.5. 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 FeaturePools = Table[
featurePoolColumns,
featurePoolIndexes,
featurePoolForeignKeys,
featurePoolUniques,
featurePoolChecks,
]{
Schema: "",
Name: "feature_pool",
Columns: featurePoolColumns{
FeatureID: column{
Name: "feature_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Condition: column{
Name: "condition",
DBType: "public.poolconditiontype",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
DepthMeters: column{
Name: "depth_meters",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Geometry: column{
Name: "geometry",
DBType: "geometry",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
},
Indexes: featurePoolIndexes{
FeaturePoolPkey: index{
Type: "btree",
Name: "feature_pool_pkey",
Columns: []indexColumn{
{
Name: "feature_id",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "feature_pool_pkey",
Columns: []string{"feature_id"},
Comment: "",
},
ForeignKeys: featurePoolForeignKeys{
FeaturePoolFeaturePoolFeatureIDFkey: foreignKey{
constraint: constraint{
Name: "feature_pool.feature_pool_feature_id_fkey",
Columns: []string{"feature_id"},
Comment: "",
},
ForeignTable: "feature",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type featurePoolColumns struct {
FeatureID column
Condition column
DepthMeters column
Geometry column
}
func (c featurePoolColumns) AsSlice() []column {
return []column{
c.FeatureID, c.Condition, c.DepthMeters, c.Geometry,
}
}
type featurePoolIndexes struct {
FeaturePoolPkey index
}
func (i featurePoolIndexes) AsSlice() []index {
return []index{
i.FeaturePoolPkey,
}
}
type featurePoolForeignKeys struct {
FeaturePoolFeaturePoolFeatureIDFkey foreignKey
}
func (f featurePoolForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FeaturePoolFeaturePoolFeatureIDFkey,
}
}
type featurePoolUniques struct{}
func (u featurePoolUniques) AsSlice() []constraint {
return []constraint{}
}
type featurePoolChecks struct{}
func (c featurePoolChecks) AsSlice() []check {
return []check{}
}