2026-01-27 18:44:02 +00:00
|
|
|
// Code generated by BobGen psql v0.42.5. DO NOT EDIT.
|
2026-01-09 19:43:19 +00:00
|
|
|
// This file is meant to be re-generated in place and/or deleted at any time.
|
|
|
|
|
|
|
|
|
|
package dbinfo
|
|
|
|
|
|
|
|
|
|
import "github.com/aarondl/opt/null"
|
|
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
var PublicreportWaters = Table[
|
|
|
|
|
publicreportWaterColumns,
|
|
|
|
|
publicreportWaterIndexes,
|
|
|
|
|
publicreportWaterForeignKeys,
|
|
|
|
|
publicreportWaterUniques,
|
|
|
|
|
publicreportWaterChecks,
|
2026-01-09 19:43:19 +00:00
|
|
|
]{
|
|
|
|
|
Schema: "publicreport",
|
2026-03-09 18:02:22 +00:00
|
|
|
Name: "water",
|
|
|
|
|
Columns: publicreportWaterColumns{
|
2026-01-09 19:43:19 +00:00
|
|
|
AccessComments: column{
|
|
|
|
|
Name: "access_comments",
|
|
|
|
|
DBType: "text",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
AccessGate: column{
|
|
|
|
|
Name: "access_gate",
|
|
|
|
|
DBType: "boolean",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
AccessFence: column{
|
|
|
|
|
Name: "access_fence",
|
|
|
|
|
DBType: "boolean",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
AccessLocked: column{
|
|
|
|
|
Name: "access_locked",
|
|
|
|
|
DBType: "boolean",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
AccessDog: column{
|
|
|
|
|
Name: "access_dog",
|
|
|
|
|
DBType: "boolean",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
AccessOther: column{
|
|
|
|
|
Name: "access_other",
|
|
|
|
|
DBType: "boolean",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
2026-03-18 15:36:20 +00:00
|
|
|
Comments: column{
|
|
|
|
|
Name: "comments",
|
2026-01-09 19:43:19 +00:00
|
|
|
DBType: "text",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
2026-03-18 15:36:20 +00:00
|
|
|
IsReporterConfidential: column{
|
|
|
|
|
Name: "is_reporter_confidential",
|
|
|
|
|
DBType: "boolean",
|
2026-01-09 19:43:19 +00:00
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
2026-03-18 15:36:20 +00:00
|
|
|
IsReporterOwner: column{
|
|
|
|
|
Name: "is_reporter_owner",
|
|
|
|
|
DBType: "boolean",
|
2026-01-09 19:43:19 +00:00
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
2026-03-18 15:36:20 +00:00
|
|
|
HasAdult: column{
|
|
|
|
|
Name: "has_adult",
|
|
|
|
|
DBType: "boolean",
|
2026-01-09 19:43:19 +00:00
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
2026-03-18 15:36:20 +00:00
|
|
|
HasBackyardPermission: column{
|
|
|
|
|
Name: "has_backyard_permission",
|
2026-01-09 19:43:19 +00:00
|
|
|
DBType: "boolean",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
HasLarvae: column{
|
|
|
|
|
Name: "has_larvae",
|
|
|
|
|
DBType: "boolean",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
HasPupae: column{
|
|
|
|
|
Name: "has_pupae",
|
|
|
|
|
DBType: "boolean",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
OwnerEmail: column{
|
|
|
|
|
Name: "owner_email",
|
|
|
|
|
DBType: "text",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
OwnerName: column{
|
|
|
|
|
Name: "owner_name",
|
|
|
|
|
DBType: "text",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
OwnerPhone: column{
|
|
|
|
|
Name: "owner_phone",
|
|
|
|
|
DBType: "text",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
2026-03-18 15:36:20 +00:00
|
|
|
ReportID: column{
|
|
|
|
|
Name: "report_id",
|
2026-01-22 03:27:32 +00:00
|
|
|
DBType: "integer",
|
2026-03-14 15:53:16 +00:00
|
|
|
Default: "",
|
2026-01-22 03:27:32 +00:00
|
|
|
Comment: "",
|
2026-03-14 15:53:16 +00:00
|
|
|
Nullable: false,
|
2026-01-22 03:27:32 +00:00
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
2026-04-24 22:21:01 +00:00
|
|
|
Duration: column{
|
|
|
|
|
Name: "duration",
|
|
|
|
|
DBType: "publicreport.nuisancedurationtype",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
2026-01-09 19:43:19 +00:00
|
|
|
},
|
2026-03-09 18:02:22 +00:00
|
|
|
Indexes: publicreportWaterIndexes{
|
2026-03-18 15:36:20 +00:00
|
|
|
WaterPkey: index{
|
2026-01-09 19:43:19 +00:00
|
|
|
Type: "btree",
|
2026-03-18 15:36:20 +00:00
|
|
|
Name: "water_pkey",
|
2026-01-09 19:43:19 +00:00
|
|
|
Columns: []indexColumn{
|
|
|
|
|
{
|
2026-03-18 15:36:20 +00:00
|
|
|
Name: "report_id",
|
2026-01-09 19:43:19 +00:00
|
|
|
Desc: null.FromCond(false, true),
|
|
|
|
|
IsExpression: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Unique: true,
|
|
|
|
|
Comment: "",
|
|
|
|
|
NullsFirst: []bool{false},
|
|
|
|
|
NullsDistinct: false,
|
|
|
|
|
Where: "",
|
|
|
|
|
Include: []string{},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
PrimaryKey: &constraint{
|
2026-03-18 15:36:20 +00:00
|
|
|
Name: "water_pkey",
|
|
|
|
|
Columns: []string{"report_id"},
|
2026-01-09 19:43:19 +00:00
|
|
|
Comment: "",
|
|
|
|
|
},
|
2026-03-09 18:02:22 +00:00
|
|
|
ForeignKeys: publicreportWaterForeignKeys{
|
2026-03-18 15:36:20 +00:00
|
|
|
PublicreportWaterWaterReportIDFkey: foreignKey{
|
2026-01-22 03:27:32 +00:00
|
|
|
constraint: constraint{
|
2026-03-18 15:36:20 +00:00
|
|
|
Name: "publicreport.water.water_report_id_fkey",
|
|
|
|
|
Columns: []string{"report_id"},
|
2026-01-22 03:27:32 +00:00
|
|
|
Comment: "",
|
|
|
|
|
},
|
2026-03-18 15:36:20 +00:00
|
|
|
ForeignTable: "publicreport.report",
|
2026-01-22 03:27:32 +00:00
|
|
|
ForeignColumns: []string{"id"},
|
|
|
|
|
},
|
2026-01-09 19:43:19 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
Comment: "",
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
type publicreportWaterColumns struct {
|
2026-02-05 21:43:29 +00:00
|
|
|
AccessComments column
|
|
|
|
|
AccessGate column
|
|
|
|
|
AccessFence column
|
|
|
|
|
AccessLocked column
|
|
|
|
|
AccessDog column
|
|
|
|
|
AccessOther column
|
|
|
|
|
Comments column
|
2026-03-18 15:36:20 +00:00
|
|
|
IsReporterConfidential column
|
|
|
|
|
IsReporterOwner column
|
2026-02-05 21:43:29 +00:00
|
|
|
HasAdult column
|
2026-03-18 15:36:20 +00:00
|
|
|
HasBackyardPermission column
|
2026-02-05 21:43:29 +00:00
|
|
|
HasLarvae column
|
|
|
|
|
HasPupae column
|
|
|
|
|
OwnerEmail column
|
|
|
|
|
OwnerName column
|
|
|
|
|
OwnerPhone column
|
2026-03-18 15:36:20 +00:00
|
|
|
ReportID column
|
2026-04-24 22:21:01 +00:00
|
|
|
Duration column
|
2026-01-09 19:43:19 +00:00
|
|
|
}
|
|
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
func (c publicreportWaterColumns) AsSlice() []column {
|
2026-01-09 19:43:19 +00:00
|
|
|
return []column{
|
2026-04-24 22:21:01 +00:00
|
|
|
c.AccessComments, c.AccessGate, c.AccessFence, c.AccessLocked, c.AccessDog, c.AccessOther, c.Comments, c.IsReporterConfidential, c.IsReporterOwner, c.HasAdult, c.HasBackyardPermission, c.HasLarvae, c.HasPupae, c.OwnerEmail, c.OwnerName, c.OwnerPhone, c.ReportID, c.Duration,
|
2026-01-09 19:43:19 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
type publicreportWaterIndexes struct {
|
2026-03-18 15:36:20 +00:00
|
|
|
WaterPkey index
|
2026-01-09 19:43:19 +00:00
|
|
|
}
|
|
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
func (i publicreportWaterIndexes) AsSlice() []index {
|
2026-01-09 19:43:19 +00:00
|
|
|
return []index{
|
2026-03-18 15:36:20 +00:00
|
|
|
i.WaterPkey,
|
2026-01-09 19:43:19 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
type publicreportWaterForeignKeys struct {
|
2026-03-18 15:36:20 +00:00
|
|
|
PublicreportWaterWaterReportIDFkey foreignKey
|
2026-01-22 03:27:32 +00:00
|
|
|
}
|
2026-01-09 19:43:19 +00:00
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
func (f publicreportWaterForeignKeys) AsSlice() []foreignKey {
|
2026-01-22 03:27:32 +00:00
|
|
|
return []foreignKey{
|
2026-03-18 15:36:20 +00:00
|
|
|
f.PublicreportWaterWaterReportIDFkey,
|
2026-01-22 03:27:32 +00:00
|
|
|
}
|
2026-01-09 19:43:19 +00:00
|
|
|
}
|
|
|
|
|
|
2026-03-18 15:36:20 +00:00
|
|
|
type publicreportWaterUniques struct{}
|
2026-01-09 19:43:19 +00:00
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
func (u publicreportWaterUniques) AsSlice() []constraint {
|
2026-03-18 15:36:20 +00:00
|
|
|
return []constraint{}
|
2026-01-09 19:43:19 +00:00
|
|
|
}
|
|
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
type publicreportWaterChecks struct{}
|
2026-01-09 19:43:19 +00:00
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
func (c publicreportWaterChecks) AsSlice() []check {
|
2026-01-09 19:43:19 +00:00
|
|
|
return []check{}
|
|
|
|
|
}
|