nidus-sync/db/dbinfo/fieldseeker.zones2.bob.go

273 lines
6.5 KiB
Go
Raw Normal View History

// Code generated by BobGen psql v0.0.4-0.20260105020634-53e08d840e47+dirty. 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 FieldseekerZones2s = Table[
fieldseekerZones2Columns,
fieldseekerZones2Indexes,
fieldseekerZones2ForeignKeys,
fieldseekerZones2Uniques,
fieldseekerZones2Checks,
]{
Schema: "fieldseeker",
Name: "zones2",
Columns: fieldseekerZones2Columns{
Objectid: column{
Name: "objectid",
DBType: "bigint",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Name: column{
Name: "name",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is NAME",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "uuid",
Default: "",
Comment: "Original attribute from ArcGIS API is GlobalID",
Nullable: false,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is created_user",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is created_date",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is last_edited_user",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is last_edited_date",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is CreationDate",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is Creator",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is EditDate",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "character varying",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is Editor",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ShapeArea: column{
Name: "shape__area",
DBType: "double precision",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is Shape__Area",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ShapeLength: column{
Name: "shape__length",
DBType: "double precision",
Default: "NULL",
Comment: "Original attribute from ArcGIS API is Shape__Length",
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",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Version: column{
Name: "version",
DBType: "integer",
Default: "1",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fieldseekerZones2Indexes{
Zones2Pkey: index{
Type: "btree",
Name: "zones2_pkey",
Columns: []indexColumn{
{
Name: "globalid",
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: "zones2_pkey",
Columns: []string{"globalid", "version"},
Comment: "",
},
ForeignKeys: fieldseekerZones2ForeignKeys{
FieldseekerZones2Zones2OrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fieldseeker.zones2.zones2_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fieldseekerZones2Columns struct {
Objectid column
Name column
Globalid column
CreatedUser column
CreatedDate column
LastEditedUser column
LastEditedDate column
Creationdate column
Creator column
Editdate column
Editor column
ShapeArea column
ShapeLength column
Geometry column
Geospatial column
Version column
OrganizationID column
}
func (c fieldseekerZones2Columns) AsSlice() []column {
return []column{
c.Objectid, c.Name, c.Globalid, c.CreatedUser, c.CreatedDate, c.LastEditedUser, c.LastEditedDate, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.ShapeArea, c.ShapeLength, c.Geometry, c.Geospatial, c.Version, c.OrganizationID,
}
}
type fieldseekerZones2Indexes struct {
Zones2Pkey index
}
func (i fieldseekerZones2Indexes) AsSlice() []index {
return []index{
i.Zones2Pkey,
}
}
type fieldseekerZones2ForeignKeys struct {
FieldseekerZones2Zones2OrganizationIDFkey foreignKey
}
func (f fieldseekerZones2ForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FieldseekerZones2Zones2OrganizationIDFkey,
}
}
type fieldseekerZones2Uniques struct{}
func (u fieldseekerZones2Uniques) AsSlice() []constraint {
return []constraint{}
}
type fieldseekerZones2Checks struct{}
func (c fieldseekerZones2Checks) AsSlice() []check {
return []check{}
}