nidus-sync/db/dbinfo/publicreport.nuisance.bob.go
Eli Ribble 06140a9062
Remove bob submodule, add arcgis.user
I had to remove the submodule because of the go bug at
https://github.com/golang/go/issues/77196
I found the bug because of a bug in bob itself
https://github.com/stephenafamo/bob/issues/610
This was because I'm trying to save data about the Arcgis user for use
in determining if I can set up hooks to avoid the polling for data
changes.
2026-01-15 19:20:39 +00:00

382 lines
8.5 KiB
Go

// Code generated by BobGen psql v0.42.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 PublicreportNuisances = Table[
publicreportNuisanceColumns,
publicreportNuisanceIndexes,
publicreportNuisanceForeignKeys,
publicreportNuisanceUniques,
publicreportNuisanceChecks,
]{
Schema: "publicreport",
Name: "nuisance",
Columns: publicreportNuisanceColumns{
ID: column{
Name: "id",
DBType: "integer",
Default: "nextval('publicreport.nuisance_id_seq'::regclass)",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
AdditionalInfo: column{
Name: "additional_info",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Created: column{
Name: "created",
DBType: "timestamp without time zone",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Duration: column{
Name: "duration",
DBType: "publicreport.nuisancedurationtype",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Email: column{
Name: "email",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
InspectionType: column{
Name: "inspection_type",
DBType: "publicreport.nuisanceinspectiontype",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
SourceLocation: column{
Name: "source_location",
DBType: "publicreport.nuisancelocationtype",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
PreferredDateRange: column{
Name: "preferred_date_range",
DBType: "publicreport.nuisancepreferreddaterangetype",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
PreferredTime: column{
Name: "preferred_time",
DBType: "publicreport.nuisancepreferredtimetype",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
RequestCall: column{
Name: "request_call",
DBType: "boolean",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Severity: column{
Name: "severity",
DBType: "smallint",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
SourceContainer: column{
Name: "source_container",
DBType: "boolean",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
SourceDescription: column{
Name: "source_description",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
SourceRoof: column{
Name: "source_roof",
DBType: "boolean",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
SourceStagnant: column{
Name: "source_stagnant",
DBType: "boolean",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
TimeOfDayDay: column{
Name: "time_of_day_day",
DBType: "boolean",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
TimeOfDayEarly: column{
Name: "time_of_day_early",
DBType: "boolean",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
TimeOfDayEvening: column{
Name: "time_of_day_evening",
DBType: "boolean",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
TimeOfDayNight: column{
Name: "time_of_day_night",
DBType: "boolean",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
PublicID: column{
Name: "public_id",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
ReporterAddress: column{
Name: "reporter_address",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
ReporterEmail: column{
Name: "reporter_email",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
ReporterName: column{
Name: "reporter_name",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
ReporterPhone: column{
Name: "reporter_phone",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Address: column{
Name: "address",
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,
},
Status: column{
Name: "status",
DBType: "publicreport.reportstatustype",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: publicreportNuisanceIndexes{
NuisancePkey: index{
Type: "btree",
Name: "nuisance_pkey",
Columns: []indexColumn{
{
Name: "id",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
NuisancePublicIDKey: index{
Type: "btree",
Name: "nuisance_public_id_key",
Columns: []indexColumn{
{
Name: "public_id",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "nuisance_pkey",
Columns: []string{"id"},
Comment: "",
},
Uniques: publicreportNuisanceUniques{
NuisancePublicIDKey: constraint{
Name: "nuisance_public_id_key",
Columns: []string{"public_id"},
Comment: "",
},
},
Comment: "",
}
type publicreportNuisanceColumns struct {
ID column
AdditionalInfo column
Created column
Duration column
Email column
InspectionType column
SourceLocation column
PreferredDateRange column
PreferredTime column
RequestCall column
Severity column
SourceContainer column
SourceDescription column
SourceRoof column
SourceStagnant column
TimeOfDayDay column
TimeOfDayEarly column
TimeOfDayEvening column
TimeOfDayNight column
PublicID column
ReporterAddress column
ReporterEmail column
ReporterName column
ReporterPhone column
Address column
Location column
Status column
}
func (c publicreportNuisanceColumns) AsSlice() []column {
return []column{
c.ID, c.AdditionalInfo, c.Created, c.Duration, c.Email, c.InspectionType, c.SourceLocation, c.PreferredDateRange, c.PreferredTime, c.RequestCall, c.Severity, c.SourceContainer, c.SourceDescription, c.SourceRoof, c.SourceStagnant, c.TimeOfDayDay, c.TimeOfDayEarly, c.TimeOfDayEvening, c.TimeOfDayNight, c.PublicID, c.ReporterAddress, c.ReporterEmail, c.ReporterName, c.ReporterPhone, c.Address, c.Location, c.Status,
}
}
type publicreportNuisanceIndexes struct {
NuisancePkey index
NuisancePublicIDKey index
}
func (i publicreportNuisanceIndexes) AsSlice() []index {
return []index{
i.NuisancePkey, i.NuisancePublicIDKey,
}
}
type publicreportNuisanceForeignKeys struct{}
func (f publicreportNuisanceForeignKeys) AsSlice() []foreignKey {
return []foreignKey{}
}
type publicreportNuisanceUniques struct {
NuisancePublicIDKey constraint
}
func (u publicreportNuisanceUniques) AsSlice() []constraint {
return []constraint{
u.NuisancePublicIDKey,
}
}
type publicreportNuisanceChecks struct{}
func (c publicreportNuisanceChecks) AsSlice() []check {
return []check{}
}