This is an intermediate step between shifting from the old fs_* prefixed table names to an entire fieldseeker schema. At this point we have both, and we aren't doing much with the new schema but compiling.
557 lines
12 KiB
Go
557 lines
12 KiB
Go
// Code generated by BobGen psql v0.42.0. 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 FSTrapdata = Table[
|
|
fsTrapdatumColumns,
|
|
fsTrapdatumIndexes,
|
|
fsTrapdatumForeignKeys,
|
|
fsTrapdatumUniques,
|
|
fsTrapdatumChecks,
|
|
]{
|
|
Schema: "",
|
|
Name: "fs_trapdata",
|
|
Columns: fsTrapdatumColumns{
|
|
OrganizationID: column{
|
|
Name: "organization_id",
|
|
DBType: "integer",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Avetemp: column{
|
|
Name: "avetemp",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Comments: column{
|
|
Name: "comments",
|
|
DBType: "text",
|
|
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,
|
|
},
|
|
Enddatetime: column{
|
|
Name: "enddatetime",
|
|
DBType: "bigint",
|
|
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,
|
|
},
|
|
Fieldtech: column{
|
|
Name: "fieldtech",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Field: column{
|
|
Name: "field",
|
|
DBType: "bigint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Gatewaysync: column{
|
|
Name: "gatewaysync",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Globalid: column{
|
|
Name: "globalid",
|
|
DBType: "text",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Idbytech: column{
|
|
Name: "idbytech",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Locationname: column{
|
|
Name: "locationname",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
LocID: column{
|
|
Name: "loc_id",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
LR: column{
|
|
Name: "lr",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Objectid: column{
|
|
Name: "objectid",
|
|
DBType: "integer",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Processed: column{
|
|
Name: "processed",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Raingauge: column{
|
|
Name: "raingauge",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Recordstatus: column{
|
|
Name: "recordstatus",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Reviewed: column{
|
|
Name: "reviewed",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Reviewedby: column{
|
|
Name: "reviewedby",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Revieweddate: column{
|
|
Name: "revieweddate",
|
|
DBType: "bigint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Sitecond: column{
|
|
Name: "sitecond",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Sortbytech: column{
|
|
Name: "sortbytech",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Srid: column{
|
|
Name: "srid",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Startdatetime: column{
|
|
Name: "startdatetime",
|
|
DBType: "bigint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Trapactivitytype: column{
|
|
Name: "trapactivitytype",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Trapcondition: column{
|
|
Name: "trapcondition",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Trapnights: column{
|
|
Name: "trapnights",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Traptype: column{
|
|
Name: "traptype",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Voltage: column{
|
|
Name: "voltage",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Winddir: column{
|
|
Name: "winddir",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Windspeed: column{
|
|
Name: "windspeed",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Zone: column{
|
|
Name: "zone",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Zone2: column{
|
|
Name: "zone2",
|
|
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,
|
|
},
|
|
Lure: column{
|
|
Name: "lure",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Vectorsurvtrapdataid: column{
|
|
Name: "vectorsurvtrapdataid",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Vectorsurvtraplocationid: column{
|
|
Name: "vectorsurvtraplocationid",
|
|
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: fsTrapdatumIndexes{
|
|
FSTrapdataPkey: index{
|
|
Type: "btree",
|
|
Name: "fs_trapdata_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_trapdata_pkey",
|
|
Columns: []string{"objectid"},
|
|
Comment: "",
|
|
},
|
|
ForeignKeys: fsTrapdatumForeignKeys{
|
|
FSTrapdataFSTrapdataOrganizationIDFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "fs_trapdata.fs_trapdata_organization_id_fkey",
|
|
Columns: []string{"organization_id"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "organization",
|
|
ForeignColumns: []string{"id"},
|
|
},
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type fsTrapdatumColumns struct {
|
|
OrganizationID column
|
|
Avetemp column
|
|
Comments column
|
|
Creationdate column
|
|
Creator column
|
|
Enddatetime column
|
|
Editdate column
|
|
Editor column
|
|
Fieldtech column
|
|
Field column
|
|
Gatewaysync column
|
|
Globalid column
|
|
Idbytech column
|
|
Locationname column
|
|
LocID column
|
|
LR column
|
|
Objectid column
|
|
Processed column
|
|
Raingauge column
|
|
Recordstatus column
|
|
Reviewed column
|
|
Reviewedby column
|
|
Revieweddate column
|
|
Sitecond column
|
|
Sortbytech column
|
|
Srid column
|
|
Startdatetime column
|
|
Trapactivitytype column
|
|
Trapcondition column
|
|
Trapnights column
|
|
Traptype column
|
|
Voltage column
|
|
Winddir column
|
|
Windspeed column
|
|
Zone column
|
|
Zone2 column
|
|
CreatedDate column
|
|
CreatedUser column
|
|
GeometryX column
|
|
GeometryY column
|
|
LastEditedDate column
|
|
LastEditedUser column
|
|
Lure column
|
|
Vectorsurvtrapdataid column
|
|
Vectorsurvtraplocationid column
|
|
Updated column
|
|
}
|
|
|
|
func (c fsTrapdatumColumns) AsSlice() []column {
|
|
return []column{
|
|
c.OrganizationID, c.Avetemp, c.Comments, c.Creationdate, c.Creator, c.Enddatetime, c.Editdate, c.Editor, c.Fieldtech, c.Field, c.Gatewaysync, c.Globalid, c.Idbytech, c.Locationname, c.LocID, c.LR, c.Objectid, c.Processed, c.Raingauge, c.Recordstatus, c.Reviewed, c.Reviewedby, c.Revieweddate, c.Sitecond, c.Sortbytech, c.Srid, c.Startdatetime, c.Trapactivitytype, c.Trapcondition, c.Trapnights, c.Traptype, c.Voltage, c.Winddir, c.Windspeed, c.Zone, c.Zone2, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Lure, c.Vectorsurvtrapdataid, c.Vectorsurvtraplocationid, c.Updated,
|
|
}
|
|
}
|
|
|
|
type fsTrapdatumIndexes struct {
|
|
FSTrapdataPkey index
|
|
}
|
|
|
|
func (i fsTrapdatumIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.FSTrapdataPkey,
|
|
}
|
|
}
|
|
|
|
type fsTrapdatumForeignKeys struct {
|
|
FSTrapdataFSTrapdataOrganizationIDFkey foreignKey
|
|
}
|
|
|
|
func (f fsTrapdatumForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{
|
|
f.FSTrapdataFSTrapdataOrganizationIDFkey,
|
|
}
|
|
}
|
|
|
|
type fsTrapdatumUniques struct{}
|
|
|
|
func (u fsTrapdatumUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type fsTrapdatumChecks struct{}
|
|
|
|
func (c fsTrapdatumChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|