We need the org ID so that we can avoid bleedover between different organizations.
467 lines
10 KiB
Go
467 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 FSProposedtreatmentareas = Table[
|
|
fsProposedtreatmentareaColumns,
|
|
fsProposedtreatmentareaIndexes,
|
|
fsProposedtreatmentareaForeignKeys,
|
|
fsProposedtreatmentareaUniques,
|
|
fsProposedtreatmentareaChecks,
|
|
]{
|
|
Schema: "",
|
|
Name: "fs_proposedtreatmentarea",
|
|
Columns: fsProposedtreatmentareaColumns{
|
|
OrganizationID: column{
|
|
Name: "organization_id",
|
|
DBType: "integer",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Acres: column{
|
|
Name: "acres",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Comments: column{
|
|
Name: "comments",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Completed: column{
|
|
Name: "completed",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Completedby: column{
|
|
Name: "completedby",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Completeddate: column{
|
|
Name: "completeddate",
|
|
DBType: "bigint",
|
|
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,
|
|
},
|
|
Duedate: column{
|
|
Name: "duedate",
|
|
DBType: "bigint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Exported: column{
|
|
Name: "exported",
|
|
DBType: "smallint",
|
|
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,
|
|
},
|
|
Hectares: column{
|
|
Name: "hectares",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Issprayroute: column{
|
|
Name: "issprayroute",
|
|
DBType: "smallint",
|
|
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,
|
|
},
|
|
Method: column{
|
|
Name: "method",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Name: column{
|
|
Name: "name",
|
|
DBType: "text",
|
|
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,
|
|
},
|
|
Reviewed: column{
|
|
Name: "reviewed",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Reviewedby: column{
|
|
Name: "reviewedby",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Revieweddate: column{
|
|
Name: "revieweddate",
|
|
DBType: "bigint",
|
|
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,
|
|
},
|
|
Targetapprate: column{
|
|
Name: "targetapprate",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Targetproduct: column{
|
|
Name: "targetproduct",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Targetspecies: column{
|
|
Name: "targetspecies",
|
|
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,
|
|
},
|
|
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,
|
|
},
|
|
Updated: column{
|
|
Name: "updated",
|
|
DBType: "timestamp without time zone",
|
|
Default: "CURRENT_TIMESTAMP",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
},
|
|
Indexes: fsProposedtreatmentareaIndexes{
|
|
FSProposedtreatmentareaPkey: index{
|
|
Type: "btree",
|
|
Name: "fs_proposedtreatmentarea_pkey",
|
|
Columns: []indexColumn{
|
|
{
|
|
Name: "objectid",
|
|
Desc: null.FromCond(false, true),
|
|
IsExpression: false,
|
|
},
|
|
},
|
|
Unique: true,
|
|
Comment: "",
|
|
NullsFirst: []bool{false},
|
|
NullsDistinct: false,
|
|
Where: "",
|
|
Include: []string{},
|
|
},
|
|
},
|
|
PrimaryKey: &constraint{
|
|
Name: "fs_proposedtreatmentarea_pkey",
|
|
Columns: []string{"objectid"},
|
|
Comment: "",
|
|
},
|
|
ForeignKeys: fsProposedtreatmentareaForeignKeys{
|
|
FSProposedtreatmentareaFSProposedtreatmentareaOrganizationIDFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "fs_proposedtreatmentarea.fs_proposedtreatmentarea_organization_id_fkey",
|
|
Columns: []string{"organization_id"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "organization",
|
|
ForeignColumns: []string{"id"},
|
|
},
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type fsProposedtreatmentareaColumns struct {
|
|
OrganizationID column
|
|
Acres column
|
|
Comments column
|
|
Completed column
|
|
Completedby column
|
|
Completeddate column
|
|
Creationdate column
|
|
Creator column
|
|
Duedate column
|
|
Exported column
|
|
Editdate column
|
|
Editor column
|
|
Globalid column
|
|
Hectares column
|
|
Issprayroute column
|
|
Lasttreatactivity column
|
|
Lasttreatdate column
|
|
Lasttreatproduct column
|
|
Lasttreatqty column
|
|
Lasttreatqtyunit column
|
|
Method column
|
|
Name column
|
|
Objectid column
|
|
Priority column
|
|
Reviewed column
|
|
Reviewedby column
|
|
Revieweddate column
|
|
ShapeArea column
|
|
ShapeLength column
|
|
Targetapprate column
|
|
Targetproduct column
|
|
Targetspecies column
|
|
Zone column
|
|
Zone2 column
|
|
GeometryX column
|
|
GeometryY column
|
|
Updated column
|
|
}
|
|
|
|
func (c fsProposedtreatmentareaColumns) AsSlice() []column {
|
|
return []column{
|
|
c.OrganizationID, c.Acres, c.Comments, c.Completed, c.Completedby, c.Completeddate, c.Creationdate, c.Creator, c.Duedate, c.Exported, c.Editdate, c.Editor, c.Globalid, c.Hectares, c.Issprayroute, c.Lasttreatactivity, c.Lasttreatdate, c.Lasttreatproduct, c.Lasttreatqty, c.Lasttreatqtyunit, c.Method, c.Name, c.Objectid, c.Priority, c.Reviewed, c.Reviewedby, c.Revieweddate, c.ShapeArea, c.ShapeLength, c.Targetapprate, c.Targetproduct, c.Targetspecies, c.Zone, c.Zone2, c.GeometryX, c.GeometryY, c.Updated,
|
|
}
|
|
}
|
|
|
|
type fsProposedtreatmentareaIndexes struct {
|
|
FSProposedtreatmentareaPkey index
|
|
}
|
|
|
|
func (i fsProposedtreatmentareaIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.FSProposedtreatmentareaPkey,
|
|
}
|
|
}
|
|
|
|
type fsProposedtreatmentareaForeignKeys struct {
|
|
FSProposedtreatmentareaFSProposedtreatmentareaOrganizationIDFkey foreignKey
|
|
}
|
|
|
|
func (f fsProposedtreatmentareaForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{
|
|
f.FSProposedtreatmentareaFSProposedtreatmentareaOrganizationIDFkey,
|
|
}
|
|
}
|
|
|
|
type fsProposedtreatmentareaUniques struct{}
|
|
|
|
func (u fsProposedtreatmentareaUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type fsProposedtreatmentareaChecks struct{}
|
|
|
|
func (c fsProposedtreatmentareaChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|