nidus-sync/dbinfo/history_rodentlocation.bob.go
Eli Ribble b0432f3243
Add statistics on the sync and save org ID with fieldseeker tables
We need the org ID so that we can avoid bleedover between different
organizations.
2025-11-07 09:30:31 +00:00

452 lines
10 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 HistoryRodentlocations = Table[
historyRodentlocationColumns,
historyRodentlocationIndexes,
historyRodentlocationForeignKeys,
historyRodentlocationUniques,
historyRodentlocationChecks,
]{
Schema: "",
Name: "history_rodentlocation",
Columns: historyRodentlocationColumns{
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,
},
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,
},
Lastinspectaction: column{
Name: "lastinspectaction",
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,
},
Lastinspectrodentevidence: column{
Name: "lastinspectrodentevidence",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectspecies: column{
Name: "lastinspectspecies",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationname: column{
Name: "locationname",
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,
},
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,
},
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,
},
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,
},
Created: column{
Name: "created",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
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,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
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,
},
Version: column{
Name: "version",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: historyRodentlocationIndexes{
HistoryRodentlocationPkey: index{
Type: "btree",
Name: "history_rodentlocation_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_rodentlocation_pkey",
Columns: []string{"objectid", "version"},
Comment: "",
},
ForeignKeys: historyRodentlocationForeignKeys{
HistoryRodentlocationHistoryRodentlocationOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "history_rodentlocation.history_rodentlocation_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type historyRodentlocationColumns struct {
OrganizationID column
Accessdesc column
Active column
Comments column
Creationdate column
Creator column
Description column
Externalid column
Editdate column
Editor column
Globalid column
Habitat column
Lastinspectaction column
Lastinspectconditions column
Lastinspectdate column
Lastinspectrodentevidence column
Lastinspectspecies column
Locationname column
Locationnumber column
Nextactiondatescheduled column
Objectid column
Priority column
Symbology column
Usetype column
Zone column
Zone2 column
Created column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Jurisdiction column
Version column
}
func (c historyRodentlocationColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Accessdesc, c.Active, c.Comments, c.Creationdate, c.Creator, c.Description, c.Externalid, c.Editdate, c.Editor, c.Globalid, c.Habitat, c.Lastinspectaction, c.Lastinspectconditions, c.Lastinspectdate, c.Lastinspectrodentevidence, c.Lastinspectspecies, c.Locationname, c.Locationnumber, c.Nextactiondatescheduled, c.Objectid, c.Priority, c.Symbology, c.Usetype, c.Zone, c.Zone2, c.Created, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Jurisdiction, c.Version,
}
}
type historyRodentlocationIndexes struct {
HistoryRodentlocationPkey index
}
func (i historyRodentlocationIndexes) AsSlice() []index {
return []index{
i.HistoryRodentlocationPkey,
}
}
type historyRodentlocationForeignKeys struct {
HistoryRodentlocationHistoryRodentlocationOrganizationIDFkey foreignKey
}
func (f historyRodentlocationForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.HistoryRodentlocationHistoryRodentlocationOrganizationIDFkey,
}
}
type historyRodentlocationUniques struct{}
func (u historyRodentlocationUniques) AsSlice() []constraint {
return []constraint{}
}
type historyRodentlocationChecks struct{}
func (c historyRodentlocationChecks) AsSlice() []check {
return []check{}
}