577 lines
14 KiB
Go
577 lines
14 KiB
Go
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+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 FieldseekerLinelocations = Table[
|
|
fieldseekerLinelocationColumns,
|
|
fieldseekerLinelocationIndexes,
|
|
fieldseekerLinelocationForeignKeys,
|
|
fieldseekerLinelocationUniques,
|
|
fieldseekerLinelocationChecks,
|
|
]{
|
|
Schema: "fieldseeker",
|
|
Name: "linelocation",
|
|
Columns: fieldseekerLinelocationColumns{
|
|
Objectid: column{
|
|
Name: "objectid",
|
|
DBType: "bigint",
|
|
Default: "nextval('fieldseeker.linelocation_objectid_seq'::regclass)",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Name: column{
|
|
Name: "name",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Name",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Zone: column{
|
|
Name: "zone",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Zone",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Habitat: column{
|
|
Name: "habitat",
|
|
DBType: "fieldseeker.linelocation_linelocation_habitat_fc51bdc4f1954df58206d69ce1418",
|
|
Default: "NULL",
|
|
Comment: "Habitat",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Priority: column{
|
|
Name: "priority",
|
|
DBType: "fieldseeker.linelocation_locationpriority_enum",
|
|
Default: "NULL",
|
|
Comment: "Priority",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Usetype: column{
|
|
Name: "usetype",
|
|
DBType: "fieldseeker.linelocation_linelocation_usetype_2aeca2e60d2f455c86fc34895dc80",
|
|
Default: "NULL",
|
|
Comment: "Use Type",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Active: column{
|
|
Name: "active",
|
|
DBType: "fieldseeker.linelocation_notinuit_f_enum",
|
|
Default: "NULL",
|
|
Comment: "Active",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Description: column{
|
|
Name: "description",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Description",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Accessdesc: column{
|
|
Name: "accessdesc",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Access Description",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Comments: column{
|
|
Name: "comments",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Comments",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Symbology: column{
|
|
Name: "symbology",
|
|
DBType: "fieldseeker.linelocation_locationsymbology_enum",
|
|
Default: "NULL",
|
|
Comment: "Symbology",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Externalid: column{
|
|
Name: "externalid",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "External ID",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Acres: column{
|
|
Name: "acres",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "Acres",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Nextactiondatescheduled: column{
|
|
Name: "nextactiondatescheduled",
|
|
DBType: "timestamp without time zone",
|
|
Default: "NULL",
|
|
Comment: "Next Scheduled Action",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Larvinspectinterval: column{
|
|
Name: "larvinspectinterval",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "Larval Inspection Interval",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
LengthFT: column{
|
|
Name: "length_ft",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "Length",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
WidthFT: column{
|
|
Name: "width_ft",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "Width",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Zone2: column{
|
|
Name: "zone2",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Zone2",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Locationnumber: column{
|
|
Name: "locationnumber",
|
|
DBType: "integer",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
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,
|
|
},
|
|
Lastinspectdate: column{
|
|
Name: "lastinspectdate",
|
|
DBType: "timestamp without time zone",
|
|
Default: "NULL",
|
|
Comment: "Last Inspection Date",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lastinspectbreeding: column{
|
|
Name: "lastinspectbreeding",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Last Inspection Breeding",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lastinspectavglarvae: column{
|
|
Name: "lastinspectavglarvae",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "Last Inspection Average Larvae",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lastinspectavgpupae: column{
|
|
Name: "lastinspectavgpupae",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "Last Inspection Average Pupae",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lastinspectlstages: column{
|
|
Name: "lastinspectlstages",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Last Inspection Larval Stages",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lastinspectactiontaken: column{
|
|
Name: "lastinspectactiontaken",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Last Inspection Action",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lastinspectfieldspecies: column{
|
|
Name: "lastinspectfieldspecies",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Last Inspection Field Species",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lasttreatdate: column{
|
|
Name: "lasttreatdate",
|
|
DBType: "timestamp without time zone",
|
|
Default: "NULL",
|
|
Comment: "Last Treatment Date",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lasttreatproduct: column{
|
|
Name: "lasttreatproduct",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Last Treatment Product",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lasttreatqty: column{
|
|
Name: "lasttreatqty",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "Last Treatment Quantity",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lasttreatqtyunit: column{
|
|
Name: "lasttreatqtyunit",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Last Treatment Quantity Unit",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Hectares: column{
|
|
Name: "hectares",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "Hectares",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lastinspectactivity: column{
|
|
Name: "lastinspectactivity",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Last Inspection Activity",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lasttreatactivity: column{
|
|
Name: "lasttreatactivity",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Last Treatment Activity",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
LengthMeters: column{
|
|
Name: "length_meters",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "Length Meters",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
WidthMeters: column{
|
|
Name: "width_meters",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "Width Meters",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lastinspectconditions: column{
|
|
Name: "lastinspectconditions",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Last Inspection Conditions",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Waterorigin: column{
|
|
Name: "waterorigin",
|
|
DBType: "fieldseeker.linelocation_linelocation_waterorigin_84723d92_306a_46f4_8ef1_6",
|
|
Default: "NULL",
|
|
Comment: "Water Origin",
|
|
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,
|
|
},
|
|
Jurisdiction: column{
|
|
Name: "jurisdiction",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Jurisdiction",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
ShapeLength: column{
|
|
Name: "shape__length",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Version: column{
|
|
Name: "version",
|
|
DBType: "integer",
|
|
Default: "1",
|
|
Comment: "Tracks version changes to the row. Increases when data is modified.",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
},
|
|
Indexes: fieldseekerLinelocationIndexes{
|
|
LinelocationPkey: index{
|
|
Type: "btree",
|
|
Name: "linelocation_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: "linelocation_pkey",
|
|
Columns: []string{"objectid", "version"},
|
|
Comment: "",
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type fieldseekerLinelocationColumns struct {
|
|
Objectid column
|
|
Name column
|
|
Zone column
|
|
Habitat column
|
|
Priority column
|
|
Usetype column
|
|
Active column
|
|
Description column
|
|
Accessdesc column
|
|
Comments column
|
|
Symbology column
|
|
Externalid column
|
|
Acres column
|
|
Nextactiondatescheduled column
|
|
Larvinspectinterval column
|
|
LengthFT column
|
|
WidthFT column
|
|
Zone2 column
|
|
Locationnumber column
|
|
Globalid column
|
|
CreatedUser column
|
|
CreatedDate column
|
|
LastEditedUser column
|
|
LastEditedDate column
|
|
Lastinspectdate column
|
|
Lastinspectbreeding column
|
|
Lastinspectavglarvae column
|
|
Lastinspectavgpupae column
|
|
Lastinspectlstages column
|
|
Lastinspectactiontaken column
|
|
Lastinspectfieldspecies column
|
|
Lasttreatdate column
|
|
Lasttreatproduct column
|
|
Lasttreatqty column
|
|
Lasttreatqtyunit column
|
|
Hectares column
|
|
Lastinspectactivity column
|
|
Lasttreatactivity column
|
|
LengthMeters column
|
|
WidthMeters column
|
|
Lastinspectconditions column
|
|
Waterorigin column
|
|
Creationdate column
|
|
Creator column
|
|
Editdate column
|
|
Editor column
|
|
Jurisdiction column
|
|
ShapeLength column
|
|
Version column
|
|
}
|
|
|
|
func (c fieldseekerLinelocationColumns) AsSlice() []column {
|
|
return []column{
|
|
c.Objectid, c.Name, c.Zone, c.Habitat, c.Priority, c.Usetype, c.Active, c.Description, c.Accessdesc, c.Comments, c.Symbology, c.Externalid, c.Acres, c.Nextactiondatescheduled, c.Larvinspectinterval, c.LengthFT, c.WidthFT, c.Zone2, c.Locationnumber, c.Globalid, c.CreatedUser, c.CreatedDate, c.LastEditedUser, c.LastEditedDate, c.Lastinspectdate, c.Lastinspectbreeding, c.Lastinspectavglarvae, c.Lastinspectavgpupae, c.Lastinspectlstages, c.Lastinspectactiontaken, c.Lastinspectfieldspecies, c.Lasttreatdate, c.Lasttreatproduct, c.Lasttreatqty, c.Lasttreatqtyunit, c.Hectares, c.Lastinspectactivity, c.Lasttreatactivity, c.LengthMeters, c.WidthMeters, c.Lastinspectconditions, c.Waterorigin, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Jurisdiction, c.ShapeLength, c.Version,
|
|
}
|
|
}
|
|
|
|
type fieldseekerLinelocationIndexes struct {
|
|
LinelocationPkey index
|
|
}
|
|
|
|
func (i fieldseekerLinelocationIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.LinelocationPkey,
|
|
}
|
|
}
|
|
|
|
type fieldseekerLinelocationForeignKeys struct{}
|
|
|
|
func (f fieldseekerLinelocationForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{}
|
|
}
|
|
|
|
type fieldseekerLinelocationUniques struct{}
|
|
|
|
func (u fieldseekerLinelocationUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type fieldseekerLinelocationChecks struct{}
|
|
|
|
func (c fieldseekerLinelocationChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|