nidus-sync/db/dbinfo/fieldseeker.mosquitoinspection.bob.go
Eli Ribble 1aefca2f5d Make GlobalID required for all Fieldseeker tables
I'm pretty sure it has to be there, and it allows me to clean up my
code.
2026-01-05 02:28:28 +00:00

712 lines
19 KiB
Go

// Code generated by BobGen psql v0.0.4-0.20260105020634-53e08d840e47+dirty. 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 FieldseekerMosquitoinspections = Table[
fieldseekerMosquitoinspectionColumns,
fieldseekerMosquitoinspectionIndexes,
fieldseekerMosquitoinspectionForeignKeys,
fieldseekerMosquitoinspectionUniques,
fieldseekerMosquitoinspectionChecks,
]{
Schema: "fieldseeker",
Name: "mosquitoinspection",
Columns: fieldseekerMosquitoinspectionColumns{
Objectid: column{
Name: "objectid",
DBType: "bigint",
Default: "nextval('fieldseeker.mosquitoinspection_objectid_seq'::regclass)",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Numdips: column{
Name: "numdips",
DBType: "smallint",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is NUMDIPS",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Activity: column{
Name: "activity",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is ACTIVITY",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Breeding: column{
Name: "breeding",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is BREEDING",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Totlarvae: column{
Name: "totlarvae",
DBType: "smallint",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is TOTLARVAE",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Totpupae: column{
Name: "totpupae",
DBType: "smallint",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is TOTPUPAE",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Eggs: column{
Name: "eggs",
DBType: "smallint",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is EGGS",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Posdips: column{
Name: "posdips",
DBType: "smallint",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is POSDIPS",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Adultact: column{
Name: "adultact",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is ADULTACT",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lstages: column{
Name: "lstages",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is LSTAGES",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Domstage: column{
Name: "domstage",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is DOMSTAGE",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Actiontaken: column{
Name: "actiontaken",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is ACTIONTAKEN",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is COMMENTS",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Avetemp: column{
Name: "avetemp",
DBType: "double precision",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is AVETEMP",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Windspeed: column{
Name: "windspeed",
DBType: "double precision",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is WINDSPEED",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Raingauge: column{
Name: "raingauge",
DBType: "double precision",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is RAINGAUGE",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Startdatetime: column{
Name: "startdatetime",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is STARTDATETIME",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Enddatetime: column{
Name: "enddatetime",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is ENDDATETIME",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Winddir: column{
Name: "winddir",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is WINDDIR",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Avglarvae: column{
Name: "avglarvae",
DBType: "double precision",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is AVGLARVAE",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Avgpupae: column{
Name: "avgpupae",
DBType: "double precision",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is AVGPUPAE",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewed: column{
Name: "reviewed",
DBType: "smallint",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is REVIEWED",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewedby: column{
Name: "reviewedby",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is REVIEWEDBY",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Revieweddate: column{
Name: "revieweddate",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is REVIEWEDDATE",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationname: column{
Name: "locationname",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is LOCATIONNAME",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is ZONE",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Recordstatus: column{
Name: "recordstatus",
DBType: "smallint",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is RECORDSTATUS",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is ZONE2",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Personalcontact: column{
Name: "personalcontact",
DBType: "smallint",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is PERSONALCONTACT",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Tirecount: column{
Name: "tirecount",
DBType: "smallint",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is TIRECOUNT",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Cbcount: column{
Name: "cbcount",
DBType: "smallint",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is CBCOUNT",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Containercount: column{
Name: "containercount",
DBType: "smallint",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is CONTAINERCOUNT",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fieldspecies: column{
Name: "fieldspecies",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is FIELDSPECIES",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "uuid",
Default: "",
Comment: "Original attribute from ArcGIS API is GlobalID",
Nullable: false,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is created_user",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is created_date",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is last_edited_user",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is last_edited_date",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Linelocid: column{
Name: "linelocid",
DBType: "uuid",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is LINELOCID",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Pointlocid: column{
Name: "pointlocid",
DBType: "uuid",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is POINTLOCID",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Polygonlocid: column{
Name: "polygonlocid",
DBType: "uuid",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is POLYGONLOCID",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Srid: column{
Name: "srid",
DBType: "uuid",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is SRID",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fieldtech: column{
Name: "fieldtech",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is FIELDTECH",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Larvaepresent: column{
Name: "larvaepresent",
DBType: "smallint",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is LARVAEPRESENT",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Pupaepresent: column{
Name: "pupaepresent",
DBType: "smallint",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is PUPAEPRESENT",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sdid: column{
Name: "sdid",
DBType: "uuid",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is SDID",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sitecond: column{
Name: "sitecond",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is SITECOND",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Positivecontainercount: column{
Name: "positivecontainercount",
DBType: "smallint",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is POSITIVECONTAINERCOUNT",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is CreationDate",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is Creator",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is EditDate",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is Editor",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Jurisdiction: column{
Name: "jurisdiction",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is JURISDICTION",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Visualmonitoring: column{
Name: "visualmonitoring",
DBType: "smallint",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is VISUALMONITORING",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Vmcomments: column{
Name: "vmcomments",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is VMCOMMENTS",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Adminaction: column{
Name: "adminaction",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is adminAction",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Ptaid: column{
Name: "ptaid",
DBType: "uuid",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is PTAID",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Geometry: column{
Name: "geometry",
DBType: "jsonb",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Geospatial: column{
Name: "geospatial",
DBType: "geometry",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Version: column{
Name: "version",
DBType: "integer",
Default: "1",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fieldseekerMosquitoinspectionIndexes{
MosquitoinspectionPkey: index{
Type: "btree",
Name: "mosquitoinspection_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
{
Name: "version",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false, false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "mosquitoinspection_pkey",
Columns: []string{"objectid", "version"},
Comment: "",
},
ForeignKeys: fieldseekerMosquitoinspectionForeignKeys{
FieldseekerMosquitoinspectionMosquitoinspectionOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fieldseeker.mosquitoinspection.mosquitoinspection_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fieldseekerMosquitoinspectionColumns struct {
Objectid column
Numdips column
Activity column
Breeding column
Totlarvae column
Totpupae column
Eggs column
Posdips column
Adultact column
Lstages column
Domstage column
Actiontaken column
Comments column
Avetemp column
Windspeed column
Raingauge column
Startdatetime column
Enddatetime column
Winddir column
Avglarvae column
Avgpupae column
Reviewed column
Reviewedby column
Revieweddate column
Locationname column
Zone column
Recordstatus column
Zone2 column
Personalcontact column
Tirecount column
Cbcount column
Containercount column
Fieldspecies column
Globalid column
CreatedUser column
CreatedDate column
LastEditedUser column
LastEditedDate column
Linelocid column
Pointlocid column
Polygonlocid column
Srid column
Fieldtech column
Larvaepresent column
Pupaepresent column
Sdid column
Sitecond column
Positivecontainercount column
Creationdate column
Creator column
Editdate column
Editor column
Jurisdiction column
Visualmonitoring column
Vmcomments column
Adminaction column
Ptaid column
Geometry column
Geospatial column
Version column
OrganizationID column
}
func (c fieldseekerMosquitoinspectionColumns) AsSlice() []column {
return []column{
c.Objectid, c.Numdips, c.Activity, c.Breeding, c.Totlarvae, c.Totpupae, c.Eggs, c.Posdips, c.Adultact, c.Lstages, c.Domstage, c.Actiontaken, c.Comments, c.Avetemp, c.Windspeed, c.Raingauge, c.Startdatetime, c.Enddatetime, c.Winddir, c.Avglarvae, c.Avgpupae, c.Reviewed, c.Reviewedby, c.Revieweddate, c.Locationname, c.Zone, c.Recordstatus, c.Zone2, c.Personalcontact, c.Tirecount, c.Cbcount, c.Containercount, c.Fieldspecies, c.Globalid, c.CreatedUser, c.CreatedDate, c.LastEditedUser, c.LastEditedDate, c.Linelocid, c.Pointlocid, c.Polygonlocid, c.Srid, c.Fieldtech, c.Larvaepresent, c.Pupaepresent, c.Sdid, c.Sitecond, c.Positivecontainercount, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Jurisdiction, c.Visualmonitoring, c.Vmcomments, c.Adminaction, c.Ptaid, c.Geometry, c.Geospatial, c.Version, c.OrganizationID,
}
}
type fieldseekerMosquitoinspectionIndexes struct {
MosquitoinspectionPkey index
}
func (i fieldseekerMosquitoinspectionIndexes) AsSlice() []index {
return []index{
i.MosquitoinspectionPkey,
}
}
type fieldseekerMosquitoinspectionForeignKeys struct {
FieldseekerMosquitoinspectionMosquitoinspectionOrganizationIDFkey foreignKey
}
func (f fieldseekerMosquitoinspectionForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FieldseekerMosquitoinspectionMosquitoinspectionOrganizationIDFkey,
}
}
type fieldseekerMosquitoinspectionUniques struct{}
func (u fieldseekerMosquitoinspectionUniques) AsSlice() []constraint {
return []constraint{}
}
type fieldseekerMosquitoinspectionChecks struct{}
func (c fieldseekerMosquitoinspectionChecks) AsSlice() []check {
return []check{}
}