nidus-sync/db/dbinfo/publicreport.quick.bob.go

142 lines
2.8 KiB
Go

// Code generated by BobGen psql v0.0.4-0.20260105020634-53e08d840e47+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 PublicreportQuicks = Table[
publicreportQuickColumns,
publicreportQuickIndexes,
publicreportQuickForeignKeys,
publicreportQuickUniques,
publicreportQuickChecks,
]{
Schema: "publicreport",
Name: "quick",
Columns: publicreportQuickColumns{
ID: column{
Name: "id",
DBType: "integer",
Default: "nextval('publicreport.quick_id_seq'::regclass)",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Created: column{
Name: "created",
DBType: "timestamp without time zone",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Location: column{
Name: "location",
DBType: "geography",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
H3cell: column{
Name: "h3cell",
DBType: "h3index",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
UUID: column{
Name: "uuid",
DBType: "uuid",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: publicreportQuickIndexes{
QuickPkey: index{
Type: "btree",
Name: "quick_pkey",
Columns: []indexColumn{
{
Name: "id",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "quick_pkey",
Columns: []string{"id"},
Comment: "",
},
Comment: "",
}
type publicreportQuickColumns struct {
ID column
Created column
Comments column
Location column
H3cell column
UUID column
}
func (c publicreportQuickColumns) AsSlice() []column {
return []column{
c.ID, c.Created, c.Comments, c.Location, c.H3cell, c.UUID,
}
}
type publicreportQuickIndexes struct {
QuickPkey index
}
func (i publicreportQuickIndexes) AsSlice() []index {
return []index{
i.QuickPkey,
}
}
type publicreportQuickForeignKeys struct{}
func (f publicreportQuickForeignKeys) AsSlice() []foreignKey {
return []foreignKey{}
}
type publicreportQuickUniques struct{}
func (u publicreportQuickUniques) AsSlice() []constraint {
return []constraint{}
}
type publicreportQuickChecks struct{}
func (c publicreportQuickChecks) AsSlice() []check {
return []check{}
}