nidus-sync/dbinfo/history_pointlocation.bob.go
Eli Ribble a2e67e3d60
Add oauth token failure model and notification
This will allow me to mark when an oauth token fails and surface it to
the user so that they can re-up on their auth token.
2025-11-11 20:10:56 +00:00

592 lines
14 KiB
Go

// Code generated by BobGen psql v0.41.1. 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 HistoryPointlocations = Table[
historyPointlocationColumns,
historyPointlocationIndexes,
historyPointlocationForeignKeys,
historyPointlocationUniques,
historyPointlocationChecks,
]{
Schema: "",
Name: "history_pointlocation",
Columns: historyPointlocationColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Accessdesc: column{
Name: "accessdesc",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Active: column{
Name: "active",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Created: column{
Name: "created",
DBType: "timestamp without time zone",
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,
},
Description: column{
Name: "description",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Externalid: column{
Name: "externalid",
DBType: "text",
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,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Habitat: column{
Name: "habitat",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Jurisdiction: column{
Name: "jurisdiction",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Larvinspectinterval: column{
Name: "larvinspectinterval",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectactiontaken: column{
Name: "lastinspectactiontaken",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectactivity: column{
Name: "lastinspectactivity",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectavglarvae: column{
Name: "lastinspectavglarvae",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectavgpupae: column{
Name: "lastinspectavgpupae",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectbreeding: column{
Name: "lastinspectbreeding",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectconditions: column{
Name: "lastinspectconditions",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectdate: column{
Name: "lastinspectdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectfieldspecies: column{
Name: "lastinspectfieldspecies",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectlstages: column{
Name: "lastinspectlstages",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatactivity: column{
Name: "lasttreatactivity",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatdate: column{
Name: "lasttreatdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatproduct: column{
Name: "lasttreatproduct",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatqty: column{
Name: "lasttreatqty",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatqtyunit: column{
Name: "lasttreatqtyunit",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationnumber: column{
Name: "locationnumber",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Name: column{
Name: "name",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Nextactiondatescheduled: column{
Name: "nextactiondatescheduled",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Priority: column{
Name: "priority",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Stype: column{
Name: "stype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Symbology: column{
Name: "symbology",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Usetype: column{
Name: "usetype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Waterorigin: column{
Name: "waterorigin",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
X: column{
Name: "x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Y: column{
Name: "y",
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,
},
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,
},
Assignedtech: column{
Name: "assignedtech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
DeactivateReason: column{
Name: "deactivate_reason",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Scalarpriority: column{
Name: "scalarpriority",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sourcestatus: column{
Name: "sourcestatus",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Version: column{
Name: "version",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: historyPointlocationIndexes{
HistoryPointlocationPkey: index{
Type: "btree",
Name: "history_pointlocation_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: "history_pointlocation_pkey",
Columns: []string{"objectid", "version"},
Comment: "",
},
ForeignKeys: historyPointlocationForeignKeys{
HistoryPointlocationHistoryPointlocationOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "history_pointlocation.history_pointlocation_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type historyPointlocationColumns struct {
OrganizationID column
Accessdesc column
Active column
Comments column
Created column
Creationdate column
Creator column
Description column
Externalid column
Editdate column
Editor column
Globalid column
Habitat column
Jurisdiction column
Larvinspectinterval column
Lastinspectactiontaken column
Lastinspectactivity column
Lastinspectavglarvae column
Lastinspectavgpupae column
Lastinspectbreeding column
Lastinspectconditions column
Lastinspectdate column
Lastinspectfieldspecies column
Lastinspectlstages column
Lasttreatactivity column
Lasttreatdate column
Lasttreatproduct column
Lasttreatqty column
Lasttreatqtyunit column
Locationnumber column
Name column
Nextactiondatescheduled column
Objectid column
Priority column
Stype column
Symbology column
Usetype column
Waterorigin column
X column
Y column
Zone column
Zone2 column
GeometryX column
GeometryY column
Assignedtech column
DeactivateReason column
Scalarpriority column
Sourcestatus column
Version column
}
func (c historyPointlocationColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Accessdesc, c.Active, c.Comments, c.Created, c.Creationdate, c.Creator, c.Description, c.Externalid, c.Editdate, c.Editor, c.Globalid, c.Habitat, c.Jurisdiction, c.Larvinspectinterval, c.Lastinspectactiontaken, c.Lastinspectactivity, c.Lastinspectavglarvae, c.Lastinspectavgpupae, c.Lastinspectbreeding, c.Lastinspectconditions, c.Lastinspectdate, c.Lastinspectfieldspecies, c.Lastinspectlstages, c.Lasttreatactivity, c.Lasttreatdate, c.Lasttreatproduct, c.Lasttreatqty, c.Lasttreatqtyunit, c.Locationnumber, c.Name, c.Nextactiondatescheduled, c.Objectid, c.Priority, c.Stype, c.Symbology, c.Usetype, c.Waterorigin, c.X, c.Y, c.Zone, c.Zone2, c.GeometryX, c.GeometryY, c.Assignedtech, c.DeactivateReason, c.Scalarpriority, c.Sourcestatus, c.Version,
}
}
type historyPointlocationIndexes struct {
HistoryPointlocationPkey index
}
func (i historyPointlocationIndexes) AsSlice() []index {
return []index{
i.HistoryPointlocationPkey,
}
}
type historyPointlocationForeignKeys struct {
HistoryPointlocationHistoryPointlocationOrganizationIDFkey foreignKey
}
func (f historyPointlocationForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.HistoryPointlocationHistoryPointlocationOrganizationIDFkey,
}
}
type historyPointlocationUniques struct{}
func (u historyPointlocationUniques) AsSlice() []constraint {
return []constraint{}
}
type historyPointlocationChecks struct{}
func (c historyPointlocationChecks) AsSlice() []check {
return []check{}
}