2026-02-10 04:31:57 +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
|
|
|
|
|
|
2026-02-10 05:12:42 +00:00
|
|
|
import "github.com/aarondl/opt/null"
|
|
|
|
|
|
2026-02-10 04:31:57 +00:00
|
|
|
var PublicreportSubscribePhones = Table[
|
|
|
|
|
publicreportSubscribePhoneColumns,
|
|
|
|
|
publicreportSubscribePhoneIndexes,
|
|
|
|
|
publicreportSubscribePhoneForeignKeys,
|
|
|
|
|
publicreportSubscribePhoneUniques,
|
|
|
|
|
publicreportSubscribePhoneChecks,
|
|
|
|
|
]{
|
|
|
|
|
Schema: "publicreport",
|
|
|
|
|
Name: "subscribe_phone",
|
|
|
|
|
Columns: publicreportSubscribePhoneColumns{
|
|
|
|
|
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,
|
|
|
|
|
},
|
2026-02-10 05:12:42 +00:00
|
|
|
ID: column{
|
|
|
|
|
Name: "id",
|
|
|
|
|
DBType: "integer",
|
|
|
|
|
Default: "nextval('publicreport.subscribe_phone_id_seq'::regclass)",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
2026-02-10 04:31:57 +00:00
|
|
|
PhoneE164: column{
|
|
|
|
|
Name: "phone_e164",
|
|
|
|
|
DBType: "text",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-02-10 05:12:42 +00:00
|
|
|
Indexes: publicreportSubscribePhoneIndexes{
|
|
|
|
|
SubscribePhonePkey: index{
|
|
|
|
|
Type: "btree",
|
|
|
|
|
Name: "subscribe_phone_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: "subscribe_phone_pkey",
|
|
|
|
|
Columns: []string{"id"},
|
|
|
|
|
Comment: "",
|
|
|
|
|
},
|
2026-02-10 04:31:57 +00:00
|
|
|
ForeignKeys: publicreportSubscribePhoneForeignKeys{
|
|
|
|
|
PublicreportSubscribePhoneSubscribePhonePhoneE164Fkey: foreignKey{
|
|
|
|
|
constraint: constraint{
|
|
|
|
|
Name: "publicreport.subscribe_phone.subscribe_phone_phone_e164_fkey",
|
|
|
|
|
Columns: []string{"phone_e164"},
|
|
|
|
|
Comment: "",
|
|
|
|
|
},
|
|
|
|
|
ForeignTable: "comms.phone",
|
|
|
|
|
ForeignColumns: []string{"e164"},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
Comment: "",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type publicreportSubscribePhoneColumns struct {
|
2026-02-10 04:59:27 +00:00
|
|
|
Created column
|
|
|
|
|
Deleted column
|
2026-02-10 05:12:42 +00:00
|
|
|
ID column
|
2026-02-10 04:59:27 +00:00
|
|
|
PhoneE164 column
|
2026-02-10 04:31:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c publicreportSubscribePhoneColumns) AsSlice() []column {
|
|
|
|
|
return []column{
|
2026-02-10 05:12:42 +00:00
|
|
|
c.Created, c.Deleted, c.ID, c.PhoneE164,
|
2026-02-10 04:31:57 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-10 05:12:42 +00:00
|
|
|
type publicreportSubscribePhoneIndexes struct {
|
|
|
|
|
SubscribePhonePkey index
|
|
|
|
|
}
|
2026-02-10 04:31:57 +00:00
|
|
|
|
|
|
|
|
func (i publicreportSubscribePhoneIndexes) AsSlice() []index {
|
2026-02-10 05:12:42 +00:00
|
|
|
return []index{
|
|
|
|
|
i.SubscribePhonePkey,
|
|
|
|
|
}
|
2026-02-10 04:31:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type publicreportSubscribePhoneForeignKeys struct {
|
2026-02-10 04:59:27 +00:00
|
|
|
PublicreportSubscribePhoneSubscribePhonePhoneE164Fkey foreignKey
|
2026-02-10 04:31:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (f publicreportSubscribePhoneForeignKeys) AsSlice() []foreignKey {
|
|
|
|
|
return []foreignKey{
|
2026-02-10 04:59:27 +00:00
|
|
|
f.PublicreportSubscribePhoneSubscribePhonePhoneE164Fkey,
|
2026-02-10 04:31:57 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type publicreportSubscribePhoneUniques struct{}
|
|
|
|
|
|
|
|
|
|
func (u publicreportSubscribePhoneUniques) AsSlice() []constraint {
|
|
|
|
|
return []constraint{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type publicreportSubscribePhoneChecks struct{}
|
|
|
|
|
|
|
|
|
|
func (c publicreportSubscribePhoneChecks) AsSlice() []check {
|
|
|
|
|
return []check{}
|
|
|
|
|
}
|