This involves a lot of copy-pasta of code from the previous version of this logic in another code base. It'll need to be cleaned up, but for now I need something sooner rather than later.
277 lines
5.8 KiB
Go
277 lines
5.8 KiB
Go
// Code generated by BobGen psql v0.41.1. 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 FSPooldetails = Table[
|
|
fsPooldetailColumns,
|
|
fsPooldetailIndexes,
|
|
fsPooldetailForeignKeys,
|
|
fsPooldetailUniques,
|
|
fsPooldetailChecks,
|
|
]{
|
|
Schema: "",
|
|
Name: "fs_pooldetail",
|
|
Columns: fsPooldetailColumns{
|
|
OrganizationID: column{
|
|
Name: "organization_id",
|
|
DBType: "integer",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Creationdate: column{
|
|
Name: "creationdate",
|
|
DBType: "bigint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Creator: column{
|
|
Name: "creator",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Editdate: column{
|
|
Name: "editdate",
|
|
DBType: "bigint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Editor: column{
|
|
Name: "editor",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Females: column{
|
|
Name: "females",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Globalid: column{
|
|
Name: "globalid",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Objectid: column{
|
|
Name: "objectid",
|
|
DBType: "integer",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
PoolID: column{
|
|
Name: "pool_id",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Species: column{
|
|
Name: "species",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
TrapdataID: column{
|
|
Name: "trapdata_id",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
CreatedDate: column{
|
|
Name: "created_date",
|
|
DBType: "bigint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
CreatedUser: column{
|
|
Name: "created_user",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
GeometryX: column{
|
|
Name: "geometry_x",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
GeometryY: column{
|
|
Name: "geometry_y",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
LastEditedDate: column{
|
|
Name: "last_edited_date",
|
|
DBType: "bigint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
LastEditedUser: column{
|
|
Name: "last_edited_user",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Updated: column{
|
|
Name: "updated",
|
|
DBType: "timestamp without time zone",
|
|
Default: "CURRENT_TIMESTAMP",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
},
|
|
Indexes: fsPooldetailIndexes{
|
|
FSPooldetailPkey: index{
|
|
Type: "btree",
|
|
Name: "fs_pooldetail_pkey",
|
|
Columns: []indexColumn{
|
|
{
|
|
Name: "objectid",
|
|
Desc: null.FromCond(false, true),
|
|
IsExpression: false,
|
|
},
|
|
},
|
|
Unique: true,
|
|
Comment: "",
|
|
NullsFirst: []bool{false},
|
|
NullsDistinct: false,
|
|
Where: "",
|
|
Include: []string{},
|
|
},
|
|
},
|
|
PrimaryKey: &constraint{
|
|
Name: "fs_pooldetail_pkey",
|
|
Columns: []string{"objectid"},
|
|
Comment: "",
|
|
},
|
|
ForeignKeys: fsPooldetailForeignKeys{
|
|
FSPooldetailFSPooldetailOrganizationIDFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "fs_pooldetail.fs_pooldetail_organization_id_fkey",
|
|
Columns: []string{"organization_id"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "organization",
|
|
ForeignColumns: []string{"id"},
|
|
},
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type fsPooldetailColumns struct {
|
|
OrganizationID column
|
|
Creationdate column
|
|
Creator column
|
|
Editdate column
|
|
Editor column
|
|
Females column
|
|
Globalid column
|
|
Objectid column
|
|
PoolID column
|
|
Species column
|
|
TrapdataID column
|
|
CreatedDate column
|
|
CreatedUser column
|
|
GeometryX column
|
|
GeometryY column
|
|
LastEditedDate column
|
|
LastEditedUser column
|
|
Updated column
|
|
}
|
|
|
|
func (c fsPooldetailColumns) AsSlice() []column {
|
|
return []column{
|
|
c.OrganizationID, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Females, c.Globalid, c.Objectid, c.PoolID, c.Species, c.TrapdataID, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
|
|
}
|
|
}
|
|
|
|
type fsPooldetailIndexes struct {
|
|
FSPooldetailPkey index
|
|
}
|
|
|
|
func (i fsPooldetailIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.FSPooldetailPkey,
|
|
}
|
|
}
|
|
|
|
type fsPooldetailForeignKeys struct {
|
|
FSPooldetailFSPooldetailOrganizationIDFkey foreignKey
|
|
}
|
|
|
|
func (f fsPooldetailForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{
|
|
f.FSPooldetailFSPooldetailOrganizationIDFkey,
|
|
}
|
|
}
|
|
|
|
type fsPooldetailUniques struct{}
|
|
|
|
func (u fsPooldetailUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type fsPooldetailChecks struct{}
|
|
|
|
func (c fsPooldetailChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|