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

377 lines
8.9 KiB
Go

// 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 FieldseekerPools = Table[
fieldseekerPoolColumns,
fieldseekerPoolIndexes,
fieldseekerPoolForeignKeys,
fieldseekerPoolUniques,
fieldseekerPoolChecks,
]{
Schema: "fieldseeker",
Name: "pool",
Columns: fieldseekerPoolColumns{
Objectid: column{
Name: "objectid",
DBType: "bigint",
Default: "nextval('fieldseeker.pool_objectid_seq'::regclass)",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
TrapdataID: column{
Name: "trapdata_id",
DBType: "uuid",
Default: "NULL",
Comment: "Trap Data ID",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Datesent: column{
Name: "datesent",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "Date Sent",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Survtech: column{
Name: "survtech",
DBType: "character varying",
Default: "NULL",
Comment: "Survey Tech",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Datetested: column{
Name: "datetested",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "Date Tested",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Testtech: column{
Name: "testtech",
DBType: "character varying",
Default: "NULL",
Comment: "Test Tech",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "character varying",
Default: "NULL",
Comment: "Comments",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sampleid: column{
Name: "sampleid",
DBType: "character varying",
Default: "NULL",
Comment: "Sample ID",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Processed: column{
Name: "processed",
DBType: "fieldseeker.pool_notinuit_f_enum",
Default: "NULL",
Comment: "Processed",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LabID: column{
Name: "lab_id",
DBType: "uuid",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Testmethod: column{
Name: "testmethod",
DBType: "fieldseeker.pool_pool_testmethod_670efbfba86d41ba8e2d3cab5d749e7f_enum",
Default: "NULL",
Comment: "Test Methods",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Diseasetested: column{
Name: "diseasetested",
DBType: "fieldseeker.pool_pool_diseasetested_0f02232949c04c7e8de820b9b515ed97_enum",
Default: "NULL",
Comment: "Diseases Tested",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Diseasepos: column{
Name: "diseasepos",
DBType: "fieldseeker.pool_pool_diseasepos_6889f8dd00074874aa726907e78497fa_enum",
Default: "NULL",
Comment: "Diseases Positive",
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,
},
Lab: column{
Name: "lab",
DBType: "fieldseeker.pool_mosquitolabname_enum",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Poolyear: column{
Name: "poolyear",
DBType: "smallint",
Default: "NULL",
Comment: "Pool Year",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Gatewaysync: column{
Name: "gatewaysync",
DBType: "smallint",
Default: "NULL",
Comment: "Gateway Sync",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Vectorsurvcollectionid: column{
Name: "vectorsurvcollectionid",
DBType: "character varying",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Vectorsurvpoolid: column{
Name: "vectorsurvpoolid",
DBType: "character varying",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Vectorsurvtrapdataid: column{
Name: "vectorsurvtrapdataid",
DBType: "character varying",
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: fieldseekerPoolIndexes{
PoolPkey: index{
Type: "btree",
Name: "pool_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: "pool_pkey",
Columns: []string{"objectid", "version"},
Comment: "",
},
Comment: "",
}
type fieldseekerPoolColumns struct {
Objectid column
TrapdataID column
Datesent column
Survtech column
Datetested column
Testtech column
Comments column
Sampleid column
Processed column
LabID column
Testmethod column
Diseasetested column
Diseasepos column
Globalid column
CreatedUser column
CreatedDate column
LastEditedUser column
LastEditedDate column
Lab column
Poolyear column
Gatewaysync column
Vectorsurvcollectionid column
Vectorsurvpoolid column
Vectorsurvtrapdataid column
Creationdate column
Creator column
Editdate column
Editor column
Version column
}
func (c fieldseekerPoolColumns) AsSlice() []column {
return []column{
c.Objectid, c.TrapdataID, c.Datesent, c.Survtech, c.Datetested, c.Testtech, c.Comments, c.Sampleid, c.Processed, c.LabID, c.Testmethod, c.Diseasetested, c.Diseasepos, c.Globalid, c.CreatedUser, c.CreatedDate, c.LastEditedUser, c.LastEditedDate, c.Lab, c.Poolyear, c.Gatewaysync, c.Vectorsurvcollectionid, c.Vectorsurvpoolid, c.Vectorsurvtrapdataid, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Version,
}
}
type fieldseekerPoolIndexes struct {
PoolPkey index
}
func (i fieldseekerPoolIndexes) AsSlice() []index {
return []index{
i.PoolPkey,
}
}
type fieldseekerPoolForeignKeys struct{}
func (f fieldseekerPoolForeignKeys) AsSlice() []foreignKey {
return []foreignKey{}
}
type fieldseekerPoolUniques struct{}
func (u fieldseekerPoolUniques) AsSlice() []constraint {
return []constraint{}
}
type fieldseekerPoolChecks struct{}
func (c fieldseekerPoolChecks) AsSlice() []check {
return []check{}
}