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

348 lines
8.3 KiB
Go
Raw Normal View History

// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+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: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fieldspecies: column{
Name: "fieldspecies",
DBType: "fieldseeker.inspectionsampledetail_mosquitofieldspecies_enum",
Default: "NULL",
Comment: "Field Species",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Flarvcount: column{
Name: "flarvcount",
DBType: "smallint",
Default: "NULL",
Comment: "Field Larva Count",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fpupcount: column{
Name: "fpupcount",
DBType: "smallint",
Default: "NULL",
Comment: "Field Pupa Count",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Feggcount: column{
Name: "feggcount",
DBType: "smallint",
Default: "NULL",
Comment: "Field Egg Count",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Flstages: column{
Name: "flstages",
DBType: "character varying",
Default: "NULL",
Comment: "Field Larval Stages",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fdomstage: column{
Name: "fdomstage",
DBType: "fieldseeker.inspectionsampledetail_mosquitodominantstage_enum",
Default: "NULL",
Comment: "Field Dominant Stage",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fadultact: column{
Name: "fadultact",
DBType: "fieldseeker.inspectionsampledetail_mosquitoadultactivity_enum",
Default: "NULL",
Comment: "Field Adult Activity",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Labspecies: column{
Name: "labspecies",
DBType: "character varying",
Default: "NULL",
Comment: "Lab Species",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Llarvcount: column{
Name: "llarvcount",
DBType: "smallint",
Default: "NULL",
Comment: "Lab Larva Count",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lpupcount: column{
Name: "lpupcount",
DBType: "smallint",
Default: "NULL",
Comment: "Lab Pupa Count",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Leggcount: column{
Name: "leggcount",
DBType: "smallint",
Default: "NULL",
Comment: "Lab Egg Count",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Ldomstage: column{
Name: "ldomstage",
DBType: "fieldseeker.inspectionsampledetail_mosquitodominantstage_enum",
Default: "NULL",
Comment: "Lab Dominant Stage",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "character varying",
Default: "NULL",
Comment: "Comments",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "uuid",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "character varying",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "character varying",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Processed: column{
Name: "processed",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "character varying",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "character varying",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Version: column{
Name: "version",
DBType: "integer",
Default: "1",
Comment: "Tracks version changes to the row. Increases when data is modified.",
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: "",
},
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
Version 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.Version,
}
}
type fieldseekerInspectionsampledetailIndexes struct {
InspectionsampledetailPkey index
}
func (i fieldseekerInspectionsampledetailIndexes) AsSlice() []index {
return []index{
i.InspectionsampledetailPkey,
}
}
type fieldseekerInspectionsampledetailForeignKeys struct{}
func (f fieldseekerInspectionsampledetailForeignKeys) AsSlice() []foreignKey {
return []foreignKey{}
}
type fieldseekerInspectionsampledetailUniques struct{}
func (u fieldseekerInspectionsampledetailUniques) AsSlice() []constraint {
return []constraint{}
}
type fieldseekerInspectionsampledetailChecks struct{}
func (c fieldseekerInspectionsampledetailChecks) AsSlice() []check {
return []check{}
}