2026-02-06 15:39:49 +00:00
|
|
|
// Code generated by BobGen psql v0.42.5. 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"
|
|
|
|
|
|
2026-03-18 15:36:20 +00:00
|
|
|
var PublicreportNotifyPhoneNuisanceOlds = Table[
|
|
|
|
|
publicreportNotifyPhoneNuisanceOldColumns,
|
|
|
|
|
publicreportNotifyPhoneNuisanceOldIndexes,
|
|
|
|
|
publicreportNotifyPhoneNuisanceOldForeignKeys,
|
|
|
|
|
publicreportNotifyPhoneNuisanceOldUniques,
|
|
|
|
|
publicreportNotifyPhoneNuisanceOldChecks,
|
2026-02-06 15:39:49 +00:00
|
|
|
]{
|
|
|
|
|
Schema: "publicreport",
|
2026-03-18 15:36:20 +00:00
|
|
|
Name: "notify_phone_nuisance_old",
|
|
|
|
|
Columns: publicreportNotifyPhoneNuisanceOldColumns{
|
2026-02-06 15:39:49 +00:00
|
|
|
Created: column{
|
|
|
|
|
Name: "created",
|
|
|
|
|
DBType: "timestamp without time zone",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Deleted: column{
|
|
|
|
|
Name: "deleted",
|
|
|
|
|
DBType: "timestamp without time zone",
|
|
|
|
|
Default: "NULL",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: true,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
NuisanceID: column{
|
|
|
|
|
Name: "nuisance_id",
|
|
|
|
|
DBType: "integer",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
PhoneE164: column{
|
|
|
|
|
Name: "phone_e164",
|
|
|
|
|
DBType: "text",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-03-18 15:36:20 +00:00
|
|
|
Indexes: publicreportNotifyPhoneNuisanceOldIndexes{
|
2026-02-06 15:39:49 +00:00
|
|
|
NotifyPhoneNuisancePkey: index{
|
|
|
|
|
Type: "btree",
|
|
|
|
|
Name: "notify_phone_nuisance_pkey",
|
|
|
|
|
Columns: []indexColumn{
|
|
|
|
|
{
|
|
|
|
|
Name: "nuisance_id",
|
|
|
|
|
Desc: null.FromCond(false, true),
|
|
|
|
|
IsExpression: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
Name: "phone_e164",
|
|
|
|
|
Desc: null.FromCond(false, true),
|
|
|
|
|
IsExpression: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Unique: true,
|
|
|
|
|
Comment: "",
|
|
|
|
|
NullsFirst: []bool{false, false},
|
|
|
|
|
NullsDistinct: false,
|
|
|
|
|
Where: "",
|
|
|
|
|
Include: []string{},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
PrimaryKey: &constraint{
|
|
|
|
|
Name: "notify_phone_nuisance_pkey",
|
|
|
|
|
Columns: []string{"nuisance_id", "phone_e164"},
|
|
|
|
|
Comment: "",
|
|
|
|
|
},
|
2026-03-18 15:36:20 +00:00
|
|
|
ForeignKeys: publicreportNotifyPhoneNuisanceOldForeignKeys{
|
|
|
|
|
PublicreportNotifyPhoneNuisanceOldNotifyPhoneNuisanceNuisanceIDFkey: foreignKey{
|
2026-02-06 15:39:49 +00:00
|
|
|
constraint: constraint{
|
2026-03-18 15:36:20 +00:00
|
|
|
Name: "publicreport.notify_phone_nuisance_old.notify_phone_nuisance_nuisance_id_fkey",
|
2026-02-06 15:39:49 +00:00
|
|
|
Columns: []string{"nuisance_id"},
|
|
|
|
|
Comment: "",
|
|
|
|
|
},
|
2026-03-18 15:36:20 +00:00
|
|
|
ForeignTable: "publicreport.nuisance_old",
|
2026-02-06 15:39:49 +00:00
|
|
|
ForeignColumns: []string{"id"},
|
|
|
|
|
},
|
2026-03-18 15:36:20 +00:00
|
|
|
PublicreportNotifyPhoneNuisanceOldNotifyPhoneNuisancePhoneE164Fkey: foreignKey{
|
2026-02-06 15:39:49 +00:00
|
|
|
constraint: constraint{
|
2026-03-18 15:36:20 +00:00
|
|
|
Name: "publicreport.notify_phone_nuisance_old.notify_phone_nuisance_phone_e164_fkey",
|
2026-02-06 15:39:49 +00:00
|
|
|
Columns: []string{"phone_e164"},
|
|
|
|
|
Comment: "",
|
|
|
|
|
},
|
|
|
|
|
ForeignTable: "comms.phone",
|
|
|
|
|
ForeignColumns: []string{"e164"},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
Comment: "",
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-18 15:36:20 +00:00
|
|
|
type publicreportNotifyPhoneNuisanceOldColumns struct {
|
2026-02-06 15:39:49 +00:00
|
|
|
Created column
|
|
|
|
|
Deleted column
|
|
|
|
|
NuisanceID column
|
|
|
|
|
PhoneE164 column
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-18 15:36:20 +00:00
|
|
|
func (c publicreportNotifyPhoneNuisanceOldColumns) AsSlice() []column {
|
2026-02-06 15:39:49 +00:00
|
|
|
return []column{
|
|
|
|
|
c.Created, c.Deleted, c.NuisanceID, c.PhoneE164,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-18 15:36:20 +00:00
|
|
|
type publicreportNotifyPhoneNuisanceOldIndexes struct {
|
2026-02-06 15:39:49 +00:00
|
|
|
NotifyPhoneNuisancePkey index
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-18 15:36:20 +00:00
|
|
|
func (i publicreportNotifyPhoneNuisanceOldIndexes) AsSlice() []index {
|
2026-02-06 15:39:49 +00:00
|
|
|
return []index{
|
|
|
|
|
i.NotifyPhoneNuisancePkey,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-18 15:36:20 +00:00
|
|
|
type publicreportNotifyPhoneNuisanceOldForeignKeys struct {
|
|
|
|
|
PublicreportNotifyPhoneNuisanceOldNotifyPhoneNuisanceNuisanceIDFkey foreignKey
|
|
|
|
|
PublicreportNotifyPhoneNuisanceOldNotifyPhoneNuisancePhoneE164Fkey foreignKey
|
2026-02-06 15:39:49 +00:00
|
|
|
}
|
|
|
|
|
|
2026-03-18 15:36:20 +00:00
|
|
|
func (f publicreportNotifyPhoneNuisanceOldForeignKeys) AsSlice() []foreignKey {
|
2026-02-06 15:39:49 +00:00
|
|
|
return []foreignKey{
|
2026-03-18 15:36:20 +00:00
|
|
|
f.PublicreportNotifyPhoneNuisanceOldNotifyPhoneNuisanceNuisanceIDFkey, f.PublicreportNotifyPhoneNuisanceOldNotifyPhoneNuisancePhoneE164Fkey,
|
2026-02-06 15:39:49 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-18 15:36:20 +00:00
|
|
|
type publicreportNotifyPhoneNuisanceOldUniques struct{}
|
2026-02-06 15:39:49 +00:00
|
|
|
|
2026-03-18 15:36:20 +00:00
|
|
|
func (u publicreportNotifyPhoneNuisanceOldUniques) AsSlice() []constraint {
|
2026-02-06 15:39:49 +00:00
|
|
|
return []constraint{}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-18 15:36:20 +00:00
|
|
|
type publicreportNotifyPhoneNuisanceOldChecks struct{}
|
2026-02-06 15:39:49 +00:00
|
|
|
|
2026-03-18 15:36:20 +00:00
|
|
|
func (c publicreportNotifyPhoneNuisanceOldChecks) AsSlice() []check {
|
2026-02-06 15:39:49 +00:00
|
|
|
return []check{}
|
|
|
|
|
}
|