392 lines
10 KiB
Go
392 lines
10 KiB
Go
// 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 FieldseekerInspectionsampledetails = Table[
|
|
fieldseekerInspectionsampledetailColumns,
|
|
fieldseekerInspectionsampledetailIndexes,
|
|
fieldseekerInspectionsampledetailForeignKeys,
|
|
fieldseekerInspectionsampledetailUniques,
|
|
fieldseekerInspectionsampledetailChecks,
|
|
]{
|
|
Schema: "fieldseeker",
|
|
Name: "inspectionsampledetail",
|
|
Columns: fieldseekerInspectionsampledetailColumns{
|
|
Objectid: column{
|
|
Name: "objectid",
|
|
DBType: "bigint",
|
|
Default: "nextval('fieldseeker.inspectionsampledetail_objectid_seq'::regclass)",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
InspsampleID: column{
|
|
Name: "inspsample_id",
|
|
DBType: "uuid",
|
|
Default: "NULL",
|
|
Comment: "Original attribute from ArcGIS API is INSPSAMPLE_ID",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Fieldspecies: column{
|
|
Name: "fieldspecies",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Original attribute from ArcGIS API is FIELDSPECIES",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Flarvcount: column{
|
|
Name: "flarvcount",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "Original attribute from ArcGIS API is FLARVCOUNT",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Fpupcount: column{
|
|
Name: "fpupcount",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "Original attribute from ArcGIS API is FPUPCOUNT",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Feggcount: column{
|
|
Name: "feggcount",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "Original attribute from ArcGIS API is FEGGCOUNT",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Flstages: column{
|
|
Name: "flstages",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Original attribute from ArcGIS API is FLSTAGES",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Fdomstage: column{
|
|
Name: "fdomstage",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Original attribute from ArcGIS API is FDOMSTAGE",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Fadultact: column{
|
|
Name: "fadultact",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Original attribute from ArcGIS API is FADULTACT",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Labspecies: column{
|
|
Name: "labspecies",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Original attribute from ArcGIS API is LABSPECIES",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Llarvcount: column{
|
|
Name: "llarvcount",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "Original attribute from ArcGIS API is LLARVCOUNT",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lpupcount: column{
|
|
Name: "lpupcount",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "Original attribute from ArcGIS API is LPUPCOUNT",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Leggcount: column{
|
|
Name: "leggcount",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "Original attribute from ArcGIS API is LEGGCOUNT",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Ldomstage: column{
|
|
Name: "ldomstage",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Original attribute from ArcGIS API is LDOMSTAGE",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Comments: column{
|
|
Name: "comments",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "Original attribute from ArcGIS API is COMMENTS",
|
|
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,
|
|
},
|
|
Processed: column{
|
|
Name: "processed",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "Original attribute from ArcGIS API is PROCESSED",
|
|
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,
|
|
},
|
|
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: fieldseekerInspectionsampledetailIndexes{
|
|
InspectionsampledetailPkey: index{
|
|
Type: "btree",
|
|
Name: "inspectionsampledetail_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: "inspectionsampledetail_pkey",
|
|
Columns: []string{"objectid", "version"},
|
|
Comment: "",
|
|
},
|
|
ForeignKeys: fieldseekerInspectionsampledetailForeignKeys{
|
|
FieldseekerInspectionsampledetailInspectionsampledetailOrganizationIDFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "fieldseeker.inspectionsampledetail.inspectionsampledetail_organization_id_fkey",
|
|
Columns: []string{"organization_id"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "organization",
|
|
ForeignColumns: []string{"id"},
|
|
},
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type fieldseekerInspectionsampledetailColumns struct {
|
|
Objectid column
|
|
InspsampleID column
|
|
Fieldspecies column
|
|
Flarvcount column
|
|
Fpupcount column
|
|
Feggcount column
|
|
Flstages column
|
|
Fdomstage column
|
|
Fadultact column
|
|
Labspecies column
|
|
Llarvcount column
|
|
Lpupcount column
|
|
Leggcount column
|
|
Ldomstage column
|
|
Comments column
|
|
Globalid column
|
|
CreatedUser column
|
|
CreatedDate column
|
|
LastEditedUser column
|
|
LastEditedDate column
|
|
Processed column
|
|
Creationdate column
|
|
Creator column
|
|
Editdate column
|
|
Editor column
|
|
Geometry column
|
|
Geospatial column
|
|
Version column
|
|
OrganizationID column
|
|
}
|
|
|
|
func (c fieldseekerInspectionsampledetailColumns) AsSlice() []column {
|
|
return []column{
|
|
c.Objectid, c.InspsampleID, c.Fieldspecies, c.Flarvcount, c.Fpupcount, c.Feggcount, c.Flstages, c.Fdomstage, c.Fadultact, c.Labspecies, c.Llarvcount, c.Lpupcount, c.Leggcount, c.Ldomstage, c.Comments, c.Globalid, c.CreatedUser, c.CreatedDate, c.LastEditedUser, c.LastEditedDate, c.Processed, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Geometry, c.Geospatial, c.Version, c.OrganizationID,
|
|
}
|
|
}
|
|
|
|
type fieldseekerInspectionsampledetailIndexes struct {
|
|
InspectionsampledetailPkey index
|
|
}
|
|
|
|
func (i fieldseekerInspectionsampledetailIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.InspectionsampledetailPkey,
|
|
}
|
|
}
|
|
|
|
type fieldseekerInspectionsampledetailForeignKeys struct {
|
|
FieldseekerInspectionsampledetailInspectionsampledetailOrganizationIDFkey foreignKey
|
|
}
|
|
|
|
func (f fieldseekerInspectionsampledetailForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{
|
|
f.FieldseekerInspectionsampledetailInspectionsampledetailOrganizationIDFkey,
|
|
}
|
|
}
|
|
|
|
type fieldseekerInspectionsampledetailUniques struct{}
|
|
|
|
func (u fieldseekerInspectionsampledetailUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type fieldseekerInspectionsampledetailChecks struct{}
|
|
|
|
func (c fieldseekerInspectionsampledetailChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|