388 lines
8.5 KiB
Go
388 lines
8.5 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 FSInspectionsampledetails = Table[
|
||
|
|
fsInspectionsampledetailColumns,
|
||
|
|
fsInspectionsampledetailIndexes,
|
||
|
|
fsInspectionsampledetailForeignKeys,
|
||
|
|
fsInspectionsampledetailUniques,
|
||
|
|
fsInspectionsampledetailChecks,
|
||
|
|
]{
|
||
|
|
Schema: "",
|
||
|
|
Name: "fs_inspectionsampledetail",
|
||
|
|
Columns: fsInspectionsampledetailColumns{
|
||
|
|
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,
|
||
|
|
},
|
||
|
|
Updated: column{
|
||
|
|
Name: "updated",
|
||
|
|
DBType: "timestamp without time zone",
|
||
|
|
Default: "CURRENT_TIMESTAMP",
|
||
|
|
Comment: "",
|
||
|
|
Nullable: false,
|
||
|
|
Generated: false,
|
||
|
|
AutoIncr: false,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
Indexes: fsInspectionsampledetailIndexes{
|
||
|
|
FSInspectionsampledetailPkey: index{
|
||
|
|
Type: "btree",
|
||
|
|
Name: "fs_inspectionsampledetail_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: "fs_inspectionsampledetail_pkey",
|
||
|
|
Columns: []string{"objectid"},
|
||
|
|
Comment: "",
|
||
|
|
},
|
||
|
|
ForeignKeys: fsInspectionsampledetailForeignKeys{
|
||
|
|
FSInspectionsampledetailFSInspectionsampledetailOrganizationIDFkey: foreignKey{
|
||
|
|
constraint: constraint{
|
||
|
|
Name: "fs_inspectionsampledetail.fs_inspectionsampledetail_organization_id_fkey",
|
||
|
|
Columns: []string{"organization_id"},
|
||
|
|
Comment: "",
|
||
|
|
},
|
||
|
|
ForeignTable: "organization",
|
||
|
|
ForeignColumns: []string{"id"},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
|
||
|
|
Comment: "",
|
||
|
|
}
|
||
|
|
|
||
|
|
type fsInspectionsampledetailColumns 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
|
||
|
|
Updated column
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c fsInspectionsampledetailColumns) 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.Updated,
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
type fsInspectionsampledetailIndexes struct {
|
||
|
|
FSInspectionsampledetailPkey index
|
||
|
|
}
|
||
|
|
|
||
|
|
func (i fsInspectionsampledetailIndexes) AsSlice() []index {
|
||
|
|
return []index{
|
||
|
|
i.FSInspectionsampledetailPkey,
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
type fsInspectionsampledetailForeignKeys struct {
|
||
|
|
FSInspectionsampledetailFSInspectionsampledetailOrganizationIDFkey foreignKey
|
||
|
|
}
|
||
|
|
|
||
|
|
func (f fsInspectionsampledetailForeignKeys) AsSlice() []foreignKey {
|
||
|
|
return []foreignKey{
|
||
|
|
f.FSInspectionsampledetailFSInspectionsampledetailOrganizationIDFkey,
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
type fsInspectionsampledetailUniques struct{}
|
||
|
|
|
||
|
|
func (u fsInspectionsampledetailUniques) AsSlice() []constraint {
|
||
|
|
return []constraint{}
|
||
|
|
}
|
||
|
|
|
||
|
|
type fsInspectionsampledetailChecks struct{}
|
||
|
|
|
||
|
|
func (c fsInspectionsampledetailChecks) AsSlice() []check {
|
||
|
|
return []check{}
|
||
|
|
}
|