This involves a lot of copy-pasta of code from the previous version of this logic in another code base. It'll need to be cleaned up, but for now I need something sooner rather than later.
392 lines
8.8 KiB
Go
392 lines
8.8 KiB
Go
// Code generated by BobGen psql v0.41.1. 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 HistoryInspectionsampledetails = Table[
|
|
historyInspectionsampledetailColumns,
|
|
historyInspectionsampledetailIndexes,
|
|
historyInspectionsampledetailForeignKeys,
|
|
historyInspectionsampledetailUniques,
|
|
historyInspectionsampledetailChecks,
|
|
]{
|
|
Schema: "",
|
|
Name: "history_inspectionsampledetail",
|
|
Columns: historyInspectionsampledetailColumns{
|
|
OrganizationID: column{
|
|
Name: "organization_id",
|
|
DBType: "integer",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Comments: column{
|
|
Name: "comments",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Creationdate: column{
|
|
Name: "creationdate",
|
|
DBType: "bigint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Creator: column{
|
|
Name: "creator",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Editdate: column{
|
|
Name: "editdate",
|
|
DBType: "bigint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Editor: column{
|
|
Name: "editor",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Fadultact: column{
|
|
Name: "fadultact",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Fdomstage: column{
|
|
Name: "fdomstage",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Feggcount: column{
|
|
Name: "feggcount",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Fieldspecies: column{
|
|
Name: "fieldspecies",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Flarvcount: column{
|
|
Name: "flarvcount",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Flstages: column{
|
|
Name: "flstages",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Fpupcount: column{
|
|
Name: "fpupcount",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Globalid: column{
|
|
Name: "globalid",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
InspsampleID: column{
|
|
Name: "inspsample_id",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Labspecies: column{
|
|
Name: "labspecies",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Ldomstage: column{
|
|
Name: "ldomstage",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Leggcount: column{
|
|
Name: "leggcount",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Llarvcount: column{
|
|
Name: "llarvcount",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Lpupcount: column{
|
|
Name: "lpupcount",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Objectid: column{
|
|
Name: "objectid",
|
|
DBType: "integer",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Processed: column{
|
|
Name: "processed",
|
|
DBType: "smallint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
CreatedDate: column{
|
|
Name: "created_date",
|
|
DBType: "bigint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
CreatedUser: column{
|
|
Name: "created_user",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
GeometryX: column{
|
|
Name: "geometry_x",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
GeometryY: column{
|
|
Name: "geometry_y",
|
|
DBType: "double precision",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
LastEditedDate: column{
|
|
Name: "last_edited_date",
|
|
DBType: "bigint",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
LastEditedUser: column{
|
|
Name: "last_edited_user",
|
|
DBType: "text",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Version: column{
|
|
Name: "version",
|
|
DBType: "integer",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
},
|
|
Indexes: historyInspectionsampledetailIndexes{
|
|
HistoryInspectionsampledetailPkey: index{
|
|
Type: "btree",
|
|
Name: "history_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: "history_inspectionsampledetail_pkey",
|
|
Columns: []string{"objectid", "version"},
|
|
Comment: "",
|
|
},
|
|
ForeignKeys: historyInspectionsampledetailForeignKeys{
|
|
HistoryInspectionsampledetailHistoryInspectionsampledetailOrganizationIDFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "history_inspectionsampledetail.history_inspectionsampledetail_organization_id_fkey",
|
|
Columns: []string{"organization_id"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "organization",
|
|
ForeignColumns: []string{"id"},
|
|
},
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type historyInspectionsampledetailColumns struct {
|
|
OrganizationID column
|
|
Comments column
|
|
Creationdate column
|
|
Creator column
|
|
Editdate column
|
|
Editor column
|
|
Fadultact column
|
|
Fdomstage column
|
|
Feggcount column
|
|
Fieldspecies column
|
|
Flarvcount column
|
|
Flstages column
|
|
Fpupcount column
|
|
Globalid column
|
|
InspsampleID column
|
|
Labspecies column
|
|
Ldomstage column
|
|
Leggcount column
|
|
Llarvcount column
|
|
Lpupcount column
|
|
Objectid column
|
|
Processed column
|
|
CreatedDate column
|
|
CreatedUser column
|
|
GeometryX column
|
|
GeometryY column
|
|
LastEditedDate column
|
|
LastEditedUser column
|
|
Version column
|
|
}
|
|
|
|
func (c historyInspectionsampledetailColumns) AsSlice() []column {
|
|
return []column{
|
|
c.OrganizationID, c.Comments, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Fadultact, c.Fdomstage, c.Feggcount, c.Fieldspecies, c.Flarvcount, c.Flstages, c.Fpupcount, c.Globalid, c.InspsampleID, c.Labspecies, c.Ldomstage, c.Leggcount, c.Llarvcount, c.Lpupcount, c.Objectid, c.Processed, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Version,
|
|
}
|
|
}
|
|
|
|
type historyInspectionsampledetailIndexes struct {
|
|
HistoryInspectionsampledetailPkey index
|
|
}
|
|
|
|
func (i historyInspectionsampledetailIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.HistoryInspectionsampledetailPkey,
|
|
}
|
|
}
|
|
|
|
type historyInspectionsampledetailForeignKeys struct {
|
|
HistoryInspectionsampledetailHistoryInspectionsampledetailOrganizationIDFkey foreignKey
|
|
}
|
|
|
|
func (f historyInspectionsampledetailForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{
|
|
f.HistoryInspectionsampledetailHistoryInspectionsampledetailOrganizationIDFkey,
|
|
}
|
|
}
|
|
|
|
type historyInspectionsampledetailUniques struct{}
|
|
|
|
func (u historyInspectionsampledetailUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type historyInspectionsampledetailChecks struct{}
|
|
|
|
func (c historyInspectionsampledetailChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|