nidus-sync/db/dbinfo/fieldseeker.inspectionsample.bob.go
Eli Ribble 7c4fb02908
Move to latest bobgen, add fieldseeker schema references
This is an intermediate step between shifting from the old fs_* prefixed
table names to an entire fieldseeker schema. At this point we have both,
and we aren't doing much with the new schema but compiling.
2025-12-02 00:28:14 +00:00

222 lines
5.1 KiB
Go

// Code generated by BobGen psql v0.42.0. 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 FieldseekerInspectionsamples = Table[
fieldseekerInspectionsampleColumns,
fieldseekerInspectionsampleIndexes,
fieldseekerInspectionsampleForeignKeys,
fieldseekerInspectionsampleUniques,
fieldseekerInspectionsampleChecks,
]{
Schema: "fieldseeker",
Name: "inspectionsample",
Columns: fieldseekerInspectionsampleColumns{
Objectid: column{
Name: "objectid",
DBType: "bigint",
Default: "nextval('fieldseeker.inspectionsample_objectid_seq'::regclass)",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
InspID: column{
Name: "insp_id",
DBType: "uuid",
Default: "NULL",
Comment: "",
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.inspectionsample_notinuit_f_enum",
Default: "NULL",
Comment: "Processed",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Idbytech: column{
Name: "idbytech",
DBType: "character varying",
Default: "NULL",
Comment: "Tech Identifying Species in Lab",
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,
},
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,
},
},
Indexes: fieldseekerInspectionsampleIndexes{
InspectionsamplePkey: index{
Type: "btree",
Name: "inspectionsample_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: "inspectionsample_pkey",
Columns: []string{"objectid"},
Comment: "",
},
Comment: "",
}
type fieldseekerInspectionsampleColumns struct {
Objectid column
InspID column
Sampleid column
Processed column
Idbytech column
Globalid column
CreatedUser column
CreatedDate column
LastEditedUser column
LastEditedDate column
Creationdate column
Creator column
Editdate column
Editor column
}
func (c fieldseekerInspectionsampleColumns) AsSlice() []column {
return []column{
c.Objectid, c.InspID, c.Sampleid, c.Processed, c.Idbytech, c.Globalid, c.CreatedUser, c.CreatedDate, c.LastEditedUser, c.LastEditedDate, c.Creationdate, c.Creator, c.Editdate, c.Editor,
}
}
type fieldseekerInspectionsampleIndexes struct {
InspectionsamplePkey index
}
func (i fieldseekerInspectionsampleIndexes) AsSlice() []index {
return []index{
i.InspectionsamplePkey,
}
}
type fieldseekerInspectionsampleForeignKeys struct{}
func (f fieldseekerInspectionsampleForeignKeys) AsSlice() []foreignKey {
return []foreignKey{}
}
type fieldseekerInspectionsampleUniques struct{}
func (u fieldseekerInspectionsampleUniques) AsSlice() []constraint {
return []constraint{}
}
type fieldseekerInspectionsampleChecks struct{}
func (c fieldseekerInspectionsampleChecks) AsSlice() []check {
return []check{}
}