nidus-sync/dbinfo/history_treatmentarea.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

332 lines
7.2 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 HistoryTreatmentareas = Table[
historyTreatmentareaColumns,
historyTreatmentareaIndexes,
historyTreatmentareaForeignKeys,
historyTreatmentareaUniques,
historyTreatmentareaChecks,
]{
Schema: "",
Name: "history_treatmentarea",
Columns: historyTreatmentareaColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
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,
},
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,
},
Notified: column{
Name: "notified",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
SessionID: column{
Name: "session_id",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ShapeArea: column{
Name: "shape__area",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ShapeLength: column{
Name: "shape__length",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Treatdate: column{
Name: "treatdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
TreatID: column{
Name: "treat_id",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Type: column{
Name: "type",
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,
},
Version: column{
Name: "version",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: historyTreatmentareaIndexes{
HistoryTreatmentareaPkey: index{
Type: "btree",
Name: "history_treatmentarea_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_treatmentarea_pkey",
Columns: []string{"objectid", "version"},
Comment: "",
},
ForeignKeys: historyTreatmentareaForeignKeys{
HistoryTreatmentareaHistoryTreatmentareaOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "history_treatmentarea.history_treatmentarea_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type historyTreatmentareaColumns struct {
OrganizationID column
Comments column
Creationdate column
Creator column
Editdate column
Editor column
Globalid column
Notified column
Objectid column
SessionID column
ShapeArea column
ShapeLength column
Treatdate column
TreatID column
Type column
Created column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Version column
}
func (c historyTreatmentareaColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Comments, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Globalid, c.Notified, c.Objectid, c.SessionID, c.ShapeArea, c.ShapeLength, c.Treatdate, c.TreatID, c.Type, c.Created, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Version,
}
}
type historyTreatmentareaIndexes struct {
HistoryTreatmentareaPkey index
}
func (i historyTreatmentareaIndexes) AsSlice() []index {
return []index{
i.HistoryTreatmentareaPkey,
}
}
type historyTreatmentareaForeignKeys struct {
HistoryTreatmentareaHistoryTreatmentareaOrganizationIDFkey foreignKey
}
func (f historyTreatmentareaForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.HistoryTreatmentareaHistoryTreatmentareaOrganizationIDFkey,
}
}
type historyTreatmentareaUniques struct{}
func (u historyTreatmentareaUniques) AsSlice() []constraint {
return []constraint{}
}
type historyTreatmentareaChecks struct{}
func (c historyTreatmentareaChecks) AsSlice() []check {
return []check{}
}