2026-01-27 18:44:02 +00:00
|
|
|
// Code generated by BobGen psql v0.42.5. DO NOT EDIT.
|
2025-12-02 00:28:14 +00:00
|
|
|
// 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 FieldseekerTimecards = Table[
|
|
|
|
|
fieldseekerTimecardColumns,
|
|
|
|
|
fieldseekerTimecardIndexes,
|
|
|
|
|
fieldseekerTimecardForeignKeys,
|
|
|
|
|
fieldseekerTimecardUniques,
|
|
|
|
|
fieldseekerTimecardChecks,
|
|
|
|
|
]{
|
|
|
|
|
Schema: "fieldseeker",
|
|
|
|
|
Name: "timecard",
|
|
|
|
|
Columns: fieldseekerTimecardColumns{
|
|
|
|
|
Objectid: column{
|
|
|
|
|
Name: "objectid",
|
|
|
|
|
DBType: "bigint",
|
2026-01-13 04:16:24 +00:00
|
|
|
Default: "",
|
2025-12-02 00:28:14 +00:00
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Activity: column{
|
|
|
|
|
Name: "activity",
|
2025-12-24 17:49:39 -07:00
|
|
|
DBType: "character varying",
|
2025-12-02 00:28:14 +00:00
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is ACTIVITY",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Startdatetime: column{
|
|
|
|
|
Name: "startdatetime",
|
|
|
|
|
DBType: "timestamp without time zone",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is STARTDATETIME",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Enddatetime: column{
|
|
|
|
|
Name: "enddatetime",
|
|
|
|
|
DBType: "timestamp without time zone",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is ENDDATETIME",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Comments: column{
|
|
|
|
|
Name: "comments",
|
|
|
|
|
DBType: "character varying",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is COMMENTS",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Externalid: column{
|
|
|
|
|
Name: "externalid",
|
|
|
|
|
DBType: "character varying",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is EXTERNALID",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Equiptype: column{
|
|
|
|
|
Name: "equiptype",
|
2025-12-24 17:49:39 -07:00
|
|
|
DBType: "character varying",
|
2025-12-02 00:28:14 +00:00
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is EQUIPTYPE",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Locationname: column{
|
|
|
|
|
Name: "locationname",
|
|
|
|
|
DBType: "character varying",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is LOCATIONNAME",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Zone: column{
|
|
|
|
|
Name: "zone",
|
|
|
|
|
DBType: "character varying",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is ZONE",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Zone2: column{
|
|
|
|
|
Name: "zone2",
|
|
|
|
|
DBType: "character varying",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is ZONE2",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Globalid: column{
|
|
|
|
|
Name: "globalid",
|
|
|
|
|
DBType: "uuid",
|
2026-01-05 02:28:28 +00:00
|
|
|
Default: "",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is GlobalID",
|
2026-01-05 02:28:28 +00:00
|
|
|
Nullable: false,
|
2025-12-02 00:28:14 +00:00
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
CreatedUser: column{
|
|
|
|
|
Name: "created_user",
|
|
|
|
|
DBType: "character varying",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is created_user",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
CreatedDate: column{
|
|
|
|
|
Name: "created_date",
|
|
|
|
|
DBType: "timestamp without time zone",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is created_date",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
LastEditedUser: column{
|
|
|
|
|
Name: "last_edited_user",
|
|
|
|
|
DBType: "character varying",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is last_edited_user",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
LastEditedDate: column{
|
|
|
|
|
Name: "last_edited_date",
|
|
|
|
|
DBType: "timestamp without time zone",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is last_edited_date",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Linelocid: column{
|
|
|
|
|
Name: "linelocid",
|
|
|
|
|
DBType: "uuid",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is LINELOCID",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Pointlocid: column{
|
|
|
|
|
Name: "pointlocid",
|
|
|
|
|
DBType: "uuid",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is POINTLOCID",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Polygonlocid: column{
|
|
|
|
|
Name: "polygonlocid",
|
|
|
|
|
DBType: "uuid",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is POLYGONLOCID",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Lclocid: column{
|
|
|
|
|
Name: "lclocid",
|
|
|
|
|
DBType: "uuid",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is LCLOCID",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Samplelocid: column{
|
|
|
|
|
Name: "samplelocid",
|
|
|
|
|
DBType: "uuid",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is SAMPLELOCID",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Srid: column{
|
|
|
|
|
Name: "srid",
|
|
|
|
|
DBType: "uuid",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is SRID",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Traplocid: column{
|
|
|
|
|
Name: "traplocid",
|
|
|
|
|
DBType: "uuid",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is TRAPLOCID",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Fieldtech: column{
|
|
|
|
|
Name: "fieldtech",
|
|
|
|
|
DBType: "character varying",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is FIELDTECH",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Creationdate: column{
|
|
|
|
|
Name: "creationdate",
|
|
|
|
|
DBType: "timestamp without time zone",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is CreationDate",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Creator: column{
|
|
|
|
|
Name: "creator",
|
|
|
|
|
DBType: "character varying",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is Creator",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Editdate: column{
|
|
|
|
|
Name: "editdate",
|
|
|
|
|
DBType: "timestamp without time zone",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is EditDate",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Editor: column{
|
|
|
|
|
Name: "editor",
|
|
|
|
|
DBType: "character varying",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is Editor",
|
2025-12-02 00:28:14 +00:00
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Rodentlocid: column{
|
|
|
|
|
Name: "rodentlocid",
|
|
|
|
|
DBType: "uuid",
|
|
|
|
|
Default: "NULL",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "Original attribute from ArcGIS API is RODENTLOCID",
|
|
|
|
|
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",
|
2025-12-02 00:28:14 +00:00
|
|
|
Comment: "",
|
|
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
2025-12-05 23:11:57 +00:00
|
|
|
Version: column{
|
|
|
|
|
Name: "version",
|
|
|
|
|
DBType: "integer",
|
|
|
|
|
Default: "1",
|
2025-12-24 17:49:39 -07:00
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
OrganizationID: column{
|
|
|
|
|
Name: "organization_id",
|
|
|
|
|
DBType: "integer",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
2025-12-05 23:11:57 +00:00
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
2025-12-02 00:28:14 +00:00
|
|
|
},
|
|
|
|
|
Indexes: fieldseekerTimecardIndexes{
|
|
|
|
|
TimecardPkey: index{
|
|
|
|
|
Type: "btree",
|
|
|
|
|
Name: "timecard_pkey",
|
|
|
|
|
Columns: []indexColumn{
|
|
|
|
|
{
|
2026-01-13 04:16:24 +00:00
|
|
|
Name: "globalid",
|
2025-12-02 00:28:14 +00:00
|
|
|
Desc: null.FromCond(false, true),
|
|
|
|
|
IsExpression: false,
|
|
|
|
|
},
|
2025-12-05 23:11:57 +00:00
|
|
|
{
|
|
|
|
|
Name: "version",
|
|
|
|
|
Desc: null.FromCond(false, true),
|
|
|
|
|
IsExpression: false,
|
|
|
|
|
},
|
2025-12-02 00:28:14 +00:00
|
|
|
},
|
|
|
|
|
Unique: true,
|
|
|
|
|
Comment: "",
|
2025-12-05 23:11:57 +00:00
|
|
|
NullsFirst: []bool{false, false},
|
2025-12-02 00:28:14 +00:00
|
|
|
NullsDistinct: false,
|
|
|
|
|
Where: "",
|
|
|
|
|
Include: []string{},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
PrimaryKey: &constraint{
|
|
|
|
|
Name: "timecard_pkey",
|
2026-01-13 04:16:24 +00:00
|
|
|
Columns: []string{"globalid", "version"},
|
2025-12-02 00:28:14 +00:00
|
|
|
Comment: "",
|
|
|
|
|
},
|
2025-12-24 17:49:39 -07:00
|
|
|
ForeignKeys: fieldseekerTimecardForeignKeys{
|
|
|
|
|
FieldseekerTimecardTimecardOrganizationIDFkey: foreignKey{
|
|
|
|
|
constraint: constraint{
|
|
|
|
|
Name: "fieldseeker.timecard.timecard_organization_id_fkey",
|
|
|
|
|
Columns: []string{"organization_id"},
|
|
|
|
|
Comment: "",
|
|
|
|
|
},
|
|
|
|
|
ForeignTable: "organization",
|
|
|
|
|
ForeignColumns: []string{"id"},
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-12-02 00:28:14 +00:00
|
|
|
|
|
|
|
|
Comment: "",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type fieldseekerTimecardColumns struct {
|
|
|
|
|
Objectid column
|
|
|
|
|
Activity column
|
|
|
|
|
Startdatetime column
|
|
|
|
|
Enddatetime column
|
|
|
|
|
Comments column
|
|
|
|
|
Externalid column
|
|
|
|
|
Equiptype column
|
|
|
|
|
Locationname column
|
|
|
|
|
Zone column
|
|
|
|
|
Zone2 column
|
|
|
|
|
Globalid column
|
|
|
|
|
CreatedUser column
|
|
|
|
|
CreatedDate column
|
|
|
|
|
LastEditedUser column
|
|
|
|
|
LastEditedDate column
|
|
|
|
|
Linelocid column
|
|
|
|
|
Pointlocid column
|
|
|
|
|
Polygonlocid column
|
|
|
|
|
Lclocid column
|
|
|
|
|
Samplelocid column
|
|
|
|
|
Srid column
|
|
|
|
|
Traplocid column
|
|
|
|
|
Fieldtech column
|
|
|
|
|
Creationdate column
|
|
|
|
|
Creator column
|
|
|
|
|
Editdate column
|
|
|
|
|
Editor column
|
|
|
|
|
Rodentlocid column
|
2025-12-24 17:49:39 -07:00
|
|
|
Geometry column
|
|
|
|
|
Geospatial column
|
2025-12-05 23:11:57 +00:00
|
|
|
Version column
|
2025-12-24 17:49:39 -07:00
|
|
|
OrganizationID column
|
2025-12-02 00:28:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c fieldseekerTimecardColumns) AsSlice() []column {
|
|
|
|
|
return []column{
|
2025-12-24 17:49:39 -07:00
|
|
|
c.Objectid, c.Activity, c.Startdatetime, c.Enddatetime, c.Comments, c.Externalid, c.Equiptype, c.Locationname, c.Zone, c.Zone2, c.Globalid, c.CreatedUser, c.CreatedDate, c.LastEditedUser, c.LastEditedDate, c.Linelocid, c.Pointlocid, c.Polygonlocid, c.Lclocid, c.Samplelocid, c.Srid, c.Traplocid, c.Fieldtech, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Rodentlocid, c.Geometry, c.Geospatial, c.Version, c.OrganizationID,
|
2025-12-02 00:28:14 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type fieldseekerTimecardIndexes struct {
|
|
|
|
|
TimecardPkey index
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (i fieldseekerTimecardIndexes) AsSlice() []index {
|
|
|
|
|
return []index{
|
|
|
|
|
i.TimecardPkey,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-24 17:49:39 -07:00
|
|
|
type fieldseekerTimecardForeignKeys struct {
|
|
|
|
|
FieldseekerTimecardTimecardOrganizationIDFkey foreignKey
|
|
|
|
|
}
|
2025-12-02 00:28:14 +00:00
|
|
|
|
|
|
|
|
func (f fieldseekerTimecardForeignKeys) AsSlice() []foreignKey {
|
2025-12-24 17:49:39 -07:00
|
|
|
return []foreignKey{
|
|
|
|
|
f.FieldseekerTimecardTimecardOrganizationIDFkey,
|
|
|
|
|
}
|
2025-12-02 00:28:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type fieldseekerTimecardUniques struct{}
|
|
|
|
|
|
|
|
|
|
func (u fieldseekerTimecardUniques) AsSlice() []constraint {
|
|
|
|
|
return []constraint{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type fieldseekerTimecardChecks struct{}
|
|
|
|
|
|
|
|
|
|
func (c fieldseekerTimecardChecks) AsSlice() []check {
|
|
|
|
|
return []check{}
|
|
|
|
|
}
|