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

323 lines
7.6 KiB
Go
Raw Normal View History

// 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 FieldseekerSamplelocations = Table[
fieldseekerSamplelocationColumns,
fieldseekerSamplelocationIndexes,
fieldseekerSamplelocationForeignKeys,
fieldseekerSamplelocationUniques,
fieldseekerSamplelocationChecks,
]{
Schema: "fieldseeker",
Name: "samplelocation",
Columns: fieldseekerSamplelocationColumns{
Objectid: column{
Name: "objectid",
DBType: "bigint",
Default: "nextval('fieldseeker.samplelocation_objectid_seq'::regclass)",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Name: column{
Name: "name",
DBType: "character varying",
Default: "NULL",
Comment: "Name",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "character varying",
Default: "NULL",
Comment: "Zone",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Habitat: column{
Name: "habitat",
DBType: "fieldseeker.samplelocation_locationhabitattype_enum",
Default: "NULL",
Comment: "Habitat",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Priority: column{
Name: "priority",
DBType: "fieldseeker.samplelocation_locationpriority_enum",
Default: "NULL",
Comment: "Priority",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Usetype: column{
Name: "usetype",
DBType: "fieldseeker.samplelocation_samplelocationusetype_enum",
Default: "NULL",
Comment: "Use Type",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Active: column{
Name: "active",
DBType: "fieldseeker.samplelocation_notinuit_f_enum",
Default: "NULL",
Comment: "Active",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Description: column{
Name: "description",
DBType: "character varying",
Default: "NULL",
Comment: "Description",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Accessdesc: column{
Name: "accessdesc",
DBType: "character varying",
Default: "NULL",
Comment: "Access Description",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "character varying",
Default: "NULL",
Comment: "Comments",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Externalid: column{
Name: "externalid",
DBType: "character varying",
Default: "NULL",
Comment: "External ID",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Nextactiondatescheduled: column{
Name: "nextactiondatescheduled",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "Next Scheduled Action",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "character varying",
Default: "NULL",
Comment: "Zone2",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationnumber: column{
Name: "locationnumber",
DBType: "integer",
Default: "NULL",
Comment: "",
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,
},
Gatewaysync: column{
Name: "gatewaysync",
DBType: "smallint",
Default: "NULL",
Comment: "Gateway Sync",
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: fieldseekerSamplelocationIndexes{
SamplelocationPkey: index{
Type: "btree",
Name: "samplelocation_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: "samplelocation_pkey",
Columns: []string{"objectid"},
Comment: "",
},
Comment: "",
}
type fieldseekerSamplelocationColumns struct {
Objectid column
Name column
Zone column
Habitat column
Priority column
Usetype column
Active column
Description column
Accessdesc column
Comments column
Externalid column
Nextactiondatescheduled column
Zone2 column
Locationnumber column
Globalid column
CreatedUser column
CreatedDate column
LastEditedUser column
LastEditedDate column
Gatewaysync column
Creationdate column
Creator column
Editdate column
Editor column
}
func (c fieldseekerSamplelocationColumns) AsSlice() []column {
return []column{
c.Objectid, c.Name, c.Zone, c.Habitat, c.Priority, c.Usetype, c.Active, c.Description, c.Accessdesc, c.Comments, c.Externalid, c.Nextactiondatescheduled, c.Zone2, c.Locationnumber, c.Globalid, c.CreatedUser, c.CreatedDate, c.LastEditedUser, c.LastEditedDate, c.Gatewaysync, c.Creationdate, c.Creator, c.Editdate, c.Editor,
}
}
type fieldseekerSamplelocationIndexes struct {
SamplelocationPkey index
}
func (i fieldseekerSamplelocationIndexes) AsSlice() []index {
return []index{
i.SamplelocationPkey,
}
}
type fieldseekerSamplelocationForeignKeys struct{}
func (f fieldseekerSamplelocationForeignKeys) AsSlice() []foreignKey {
return []foreignKey{}
}
type fieldseekerSamplelocationUniques struct{}
func (u fieldseekerSamplelocationUniques) AsSlice() []constraint {
return []constraint{}
}
type fieldseekerSamplelocationChecks struct{}
func (c fieldseekerSamplelocationChecks) AsSlice() []check {
return []check{}
}