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-09 18:02:22 +00:00
|
|
|
var PublicreportNotifyPhoneWaters = Table[
|
|
|
|
|
publicreportNotifyPhoneWaterColumns,
|
|
|
|
|
publicreportNotifyPhoneWaterIndexes,
|
|
|
|
|
publicreportNotifyPhoneWaterForeignKeys,
|
|
|
|
|
publicreportNotifyPhoneWaterUniques,
|
|
|
|
|
publicreportNotifyPhoneWaterChecks,
|
2026-02-06 15:39:49 +00:00
|
|
|
]{
|
|
|
|
|
Schema: "publicreport",
|
2026-03-09 18:02:22 +00:00
|
|
|
Name: "notify_phone_water",
|
|
|
|
|
Columns: publicreportNotifyPhoneWaterColumns{
|
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,
|
|
|
|
|
},
|
|
|
|
|
PhoneE164: column{
|
|
|
|
|
Name: "phone_e164",
|
|
|
|
|
DBType: "text",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
2026-03-09 18:02:22 +00:00
|
|
|
WaterID: column{
|
|
|
|
|
Name: "water_id",
|
2026-02-06 15:39:49 +00:00
|
|
|
DBType: "integer",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-03-09 18:02:22 +00:00
|
|
|
Indexes: publicreportNotifyPhoneWaterIndexes{
|
2026-02-06 15:39:49 +00:00
|
|
|
NotifyPhonePoolPkey: index{
|
|
|
|
|
Type: "btree",
|
|
|
|
|
Name: "notify_phone_pool_pkey",
|
|
|
|
|
Columns: []indexColumn{
|
|
|
|
|
{
|
2026-03-09 18:02:22 +00:00
|
|
|
Name: "water_id",
|
2026-02-06 15:39:49 +00:00
|
|
|
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_pool_pkey",
|
2026-03-09 18:02:22 +00:00
|
|
|
Columns: []string{"water_id", "phone_e164"},
|
2026-02-06 15:39:49 +00:00
|
|
|
Comment: "",
|
|
|
|
|
},
|
2026-03-09 18:02:22 +00:00
|
|
|
ForeignKeys: publicreportNotifyPhoneWaterForeignKeys{
|
|
|
|
|
PublicreportNotifyPhoneWaterNotifyPhonePoolPhoneE164Fkey: foreignKey{
|
2026-02-06 15:39:49 +00:00
|
|
|
constraint: constraint{
|
2026-03-09 18:02:22 +00:00
|
|
|
Name: "publicreport.notify_phone_water.notify_phone_pool_phone_e164_fkey",
|
2026-02-06 15:39:49 +00:00
|
|
|
Columns: []string{"phone_e164"},
|
|
|
|
|
Comment: "",
|
|
|
|
|
},
|
|
|
|
|
ForeignTable: "comms.phone",
|
|
|
|
|
ForeignColumns: []string{"e164"},
|
|
|
|
|
},
|
2026-03-09 18:02:22 +00:00
|
|
|
PublicreportNotifyPhoneWaterNotifyPhonePoolPoolIDFkey: foreignKey{
|
2026-02-06 15:39:49 +00:00
|
|
|
constraint: constraint{
|
2026-03-09 18:02:22 +00:00
|
|
|
Name: "publicreport.notify_phone_water.notify_phone_pool_pool_id_fkey",
|
|
|
|
|
Columns: []string{"water_id"},
|
2026-02-06 15:39:49 +00:00
|
|
|
Comment: "",
|
|
|
|
|
},
|
2026-03-09 18:02:22 +00:00
|
|
|
ForeignTable: "publicreport.water",
|
2026-02-06 15:39:49 +00:00
|
|
|
ForeignColumns: []string{"id"},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
Comment: "",
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
type publicreportNotifyPhoneWaterColumns struct {
|
2026-02-06 15:39:49 +00:00
|
|
|
Created column
|
|
|
|
|
Deleted column
|
|
|
|
|
PhoneE164 column
|
2026-03-09 18:02:22 +00:00
|
|
|
WaterID column
|
2026-02-06 15:39:49 +00:00
|
|
|
}
|
|
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
func (c publicreportNotifyPhoneWaterColumns) AsSlice() []column {
|
2026-02-06 15:39:49 +00:00
|
|
|
return []column{
|
2026-03-09 18:02:22 +00:00
|
|
|
c.Created, c.Deleted, c.PhoneE164, c.WaterID,
|
2026-02-06 15:39:49 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
type publicreportNotifyPhoneWaterIndexes struct {
|
2026-02-06 15:39:49 +00:00
|
|
|
NotifyPhonePoolPkey index
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
func (i publicreportNotifyPhoneWaterIndexes) AsSlice() []index {
|
2026-02-06 15:39:49 +00:00
|
|
|
return []index{
|
|
|
|
|
i.NotifyPhonePoolPkey,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
type publicreportNotifyPhoneWaterForeignKeys struct {
|
|
|
|
|
PublicreportNotifyPhoneWaterNotifyPhonePoolPhoneE164Fkey foreignKey
|
|
|
|
|
PublicreportNotifyPhoneWaterNotifyPhonePoolPoolIDFkey foreignKey
|
2026-02-06 15:39:49 +00:00
|
|
|
}
|
|
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
func (f publicreportNotifyPhoneWaterForeignKeys) AsSlice() []foreignKey {
|
2026-02-06 15:39:49 +00:00
|
|
|
return []foreignKey{
|
2026-03-09 18:02:22 +00:00
|
|
|
f.PublicreportNotifyPhoneWaterNotifyPhonePoolPhoneE164Fkey, f.PublicreportNotifyPhoneWaterNotifyPhonePoolPoolIDFkey,
|
2026-02-06 15:39:49 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
type publicreportNotifyPhoneWaterUniques struct{}
|
2026-02-06 15:39:49 +00:00
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
func (u publicreportNotifyPhoneWaterUniques) AsSlice() []constraint {
|
2026-02-06 15:39:49 +00:00
|
|
|
return []constraint{}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
type publicreportNotifyPhoneWaterChecks struct{}
|
2026-02-06 15:39:49 +00:00
|
|
|
|
2026-03-09 18:02:22 +00:00
|
|
|
func (c publicreportNotifyPhoneWaterChecks) AsSlice() []check {
|
2026-02-06 15:39:49 +00:00
|
|
|
return []check{}
|
|
|
|
|
}
|