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.
502 lines
12 KiB
Go
502 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 FieldseekerTrapdata = Table[
|
|
fieldseekerTrapdatumColumns,
|
|
fieldseekerTrapdatumIndexes,
|
|
fieldseekerTrapdatumForeignKeys,
|
|
fieldseekerTrapdatumUniques,
|
|
fieldseekerTrapdatumChecks,
|
|
]{
|
|
Schema: "fieldseeker",
|
|
Name: "trapdata",
|
|
Columns: fieldseekerTrapdatumColumns{
|
|
Objectid: column{
|
|
Name: "objectid",
|
|
DBType: "bigint",
|
|
Default: "nextval('fieldseeker.trapdata_objectid_seq'::regclass)",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Traptype: column{
|
|
Name: "traptype",
|
|
DBType: "fieldseeker.trapdata_mosquitotraptype_enum",
|
|
Default: "NULL",
|
|
Comment: "Trap Type",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Trapactivitytype: column{
|
|
Name: "trapactivitytype",
|
|
DBType: "fieldseeker.trapdata_notinuitrapactivitytype_enum",
|
|
Default: "NULL",
|
|
Comment: "Trap Activity Type",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Startdatetime: column{
|
|
Name: "startdatetime",
|
|
DBType: "timestamp without time zone",
|
|
Default: "NULL",
|
|
Comment: "Start",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Enddatetime: column{
|
|
Name: "enddatetime",
|
|
DBType: "timestamp without time zone",
|
|
Default: "NULL",
|
|
Comment: "Finish",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Comments: column{
|
|
Name: "comments",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Comments",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Idbytech: column{
|
|
Name: "idbytech",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Tech Identifying Species in Lab",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Sortbytech: column{
|
|
Name: "sortbytech",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Tech Sorting Trap Results in Lab",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Processed: column{
|
|
Name: "processed",
|
|
DBType: "fieldseeker.trapdata_notinuit_f_enum",
|
|
Default: "NULL",
|
|
Comment: "Processed",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Sitecond: column{
|
|
Name: "sitecond",
|
|
DBType: "fieldseeker.trapdata_mosquitositecondition_enum",
|
|
Default: "NULL",
|
|
Comment: "Site Conditions",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Locationname: column{
|
|
Name: "locationname",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Location Name",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Recordstatus: column{
|
|
Name: "recordstatus",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "RecordStatus",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Reviewed: column{
|
|
Name: "reviewed",
|
|
DBType: "fieldseeker.trapdata_notinuit_f_enum",
|
|
Default: "NULL",
|
|
Comment: "Reviewed",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Reviewedby: column{
|
|
Name: "reviewedby",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Reviewed By",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Revieweddate: column{
|
|
Name: "revieweddate",
|
|
DBType: "timestamp without time zone",
|
|
Default: "NULL",
|
|
Comment: "Reviewed Date",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Trapcondition: column{
|
|
Name: "trapcondition",
|
|
DBType: "fieldseeker.trapdata_mosquitotrapcondition_enum",
|
|
Default: "NULL",
|
|
Comment: "Trap Condition",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Trapnights: column{
|
|
Name: "trapnights",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "Trap Nights",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Zone: column{
|
|
Name: "zone",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Zone",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Zone2: column{
|
|
Name: "zone2",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Zone2",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Globalid: column{
|
|
Name: "globalid",
|
|
DBType: "uuid",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
CreatedUser: column{
|
|
Name: "created_user",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
CreatedDate: column{
|
|
Name: "created_date",
|
|
DBType: "timestamp without time zone",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
LastEditedUser: column{
|
|
Name: "last_edited_user",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
LastEditedDate: column{
|
|
Name: "last_edited_date",
|
|
DBType: "timestamp without time zone",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Srid: column{
|
|
Name: "srid",
|
|
DBType: "uuid",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Fieldtech: column{
|
|
Name: "fieldtech",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Field Tech",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Gatewaysync: column{
|
|
Name: "gatewaysync",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "Gateway Sync",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
LocID: column{
|
|
Name: "loc_id",
|
|
DBType: "uuid",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Voltage: column{
|
|
Name: "voltage",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "Voltage",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Winddir: column{
|
|
Name: "winddir",
|
|
DBType: "fieldseeker.trapdata_trapdata_winddir_c1a31e05_d0b9_4b22_8800_be127bb3f166_",
|
|
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,
|
|
},
|
|
Avetemp: column{
|
|
Name: "avetemp",
|
|
DBType: "double precision",
|
|
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,
|
|
},
|
|
LR: column{
|
|
Name: "lr",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "Landing Rate",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Field: column{
|
|
Name: "field",
|
|
DBType: "integer",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Vectorsurvtrapdataid: column{
|
|
Name: "vectorsurvtrapdataid",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Vectorsurvtraplocationid: column{
|
|
Name: "vectorsurvtraplocationid",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Creationdate: column{
|
|
Name: "creationdate",
|
|
DBType: "timestamp without time zone",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Creator: column{
|
|
Name: "creator",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Editdate: column{
|
|
Name: "editdate",
|
|
DBType: "timestamp without time zone",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Editor: column{
|
|
Name: "editor",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lure: column{
|
|
Name: "lure",
|
|
DBType: "fieldseeker.trapdata_trapdata_lure_25fe542f_077f_4254_8681_76e8f436354b_enu",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
},
|
|
Indexes: fieldseekerTrapdatumIndexes{
|
|
TrapdataPkey: index{
|
|
Type: "btree",
|
|
Name: "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: "trapdata_pkey",
|
|
Columns: []string{"objectid"},
|
|
Comment: "",
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type fieldseekerTrapdatumColumns struct {
|
|
Objectid column
|
|
Traptype column
|
|
Trapactivitytype column
|
|
Startdatetime column
|
|
Enddatetime column
|
|
Comments column
|
|
Idbytech column
|
|
Sortbytech column
|
|
Processed column
|
|
Sitecond column
|
|
Locationname column
|
|
Recordstatus column
|
|
Reviewed column
|
|
Reviewedby column
|
|
Revieweddate column
|
|
Trapcondition column
|
|
Trapnights column
|
|
Zone column
|
|
Zone2 column
|
|
Globalid column
|
|
CreatedUser column
|
|
CreatedDate column
|
|
LastEditedUser column
|
|
LastEditedDate column
|
|
Srid column
|
|
Fieldtech column
|
|
Gatewaysync column
|
|
LocID column
|
|
Voltage column
|
|
Winddir column
|
|
Windspeed column
|
|
Avetemp column
|
|
Raingauge column
|
|
LR column
|
|
Field column
|
|
Vectorsurvtrapdataid column
|
|
Vectorsurvtraplocationid column
|
|
Creationdate column
|
|
Creator column
|
|
Editdate column
|
|
Editor column
|
|
Lure column
|
|
}
|
|
|
|
func (c fieldseekerTrapdatumColumns) AsSlice() []column {
|
|
return []column{
|
|
c.Objectid, c.Traptype, c.Trapactivitytype, c.Startdatetime, c.Enddatetime, c.Comments, c.Idbytech, c.Sortbytech, c.Processed, c.Sitecond, c.Locationname, c.Recordstatus, c.Reviewed, c.Reviewedby, c.Revieweddate, c.Trapcondition, c.Trapnights, c.Zone, c.Zone2, c.Globalid, c.CreatedUser, c.CreatedDate, c.LastEditedUser, c.LastEditedDate, c.Srid, c.Fieldtech, c.Gatewaysync, c.LocID, c.Voltage, c.Winddir, c.Windspeed, c.Avetemp, c.Raingauge, c.LR, c.Field, c.Vectorsurvtrapdataid, c.Vectorsurvtraplocationid, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Lure,
|
|
}
|
|
}
|
|
|
|
type fieldseekerTrapdatumIndexes struct {
|
|
TrapdataPkey index
|
|
}
|
|
|
|
func (i fieldseekerTrapdatumIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.TrapdataPkey,
|
|
}
|
|
}
|
|
|
|
type fieldseekerTrapdatumForeignKeys struct{}
|
|
|
|
func (f fieldseekerTrapdatumForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{}
|
|
}
|
|
|
|
type fieldseekerTrapdatumUniques struct{}
|
|
|
|
func (u fieldseekerTrapdatumUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type fieldseekerTrapdatumChecks struct{}
|
|
|
|
func (c fieldseekerTrapdatumChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|