2026-01-27 18:44:02 +00:00
|
|
|
// Code generated by BobGen psql v0.42.5. DO NOT EDIT.
|
2026-01-20 17:10:22 +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-01-23 20:36:16 +00:00
|
|
|
var CommsEmailContacts = Table[
|
|
|
|
|
commsEmailContactColumns,
|
|
|
|
|
commsEmailContactIndexes,
|
|
|
|
|
commsEmailContactForeignKeys,
|
|
|
|
|
commsEmailContactUniques,
|
|
|
|
|
commsEmailContactChecks,
|
2026-01-20 17:10:22 +00:00
|
|
|
]{
|
|
|
|
|
Schema: "comms",
|
2026-01-23 20:36:16 +00:00
|
|
|
Name: "email_contact",
|
|
|
|
|
Columns: commsEmailContactColumns{
|
2026-01-20 17:10:22 +00:00
|
|
|
Address: column{
|
|
|
|
|
Name: "address",
|
|
|
|
|
DBType: "text",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
Confirmed: column{
|
|
|
|
|
Name: "confirmed",
|
|
|
|
|
DBType: "boolean",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
IsSubscribed: column{
|
|
|
|
|
Name: "is_subscribed",
|
|
|
|
|
DBType: "boolean",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
2026-01-23 20:36:16 +00:00
|
|
|
PublicID: column{
|
|
|
|
|
Name: "public_id",
|
|
|
|
|
DBType: "text",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
2026-01-20 17:10:22 +00:00
|
|
|
},
|
2026-01-23 20:36:16 +00:00
|
|
|
Indexes: commsEmailContactIndexes{
|
2026-01-20 17:10:22 +00:00
|
|
|
EmailPkey: index{
|
|
|
|
|
Type: "btree",
|
|
|
|
|
Name: "email_pkey",
|
|
|
|
|
Columns: []indexColumn{
|
|
|
|
|
{
|
|
|
|
|
Name: "address",
|
|
|
|
|
Desc: null.FromCond(false, true),
|
|
|
|
|
IsExpression: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Unique: true,
|
|
|
|
|
Comment: "",
|
|
|
|
|
NullsFirst: []bool{false},
|
|
|
|
|
NullsDistinct: false,
|
|
|
|
|
Where: "",
|
|
|
|
|
Include: []string{},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
PrimaryKey: &constraint{
|
|
|
|
|
Name: "email_pkey",
|
|
|
|
|
Columns: []string{"address"},
|
|
|
|
|
Comment: "",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
Comment: "",
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-23 20:36:16 +00:00
|
|
|
type commsEmailContactColumns struct {
|
2026-01-20 17:10:22 +00:00
|
|
|
Address column
|
|
|
|
|
Confirmed column
|
|
|
|
|
IsSubscribed column
|
2026-01-23 20:36:16 +00:00
|
|
|
PublicID column
|
2026-01-20 17:10:22 +00:00
|
|
|
}
|
|
|
|
|
|
2026-01-23 20:36:16 +00:00
|
|
|
func (c commsEmailContactColumns) AsSlice() []column {
|
2026-01-20 17:10:22 +00:00
|
|
|
return []column{
|
2026-01-23 20:36:16 +00:00
|
|
|
c.Address, c.Confirmed, c.IsSubscribed, c.PublicID,
|
2026-01-20 17:10:22 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-23 20:36:16 +00:00
|
|
|
type commsEmailContactIndexes struct {
|
2026-01-20 17:10:22 +00:00
|
|
|
EmailPkey index
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-23 20:36:16 +00:00
|
|
|
func (i commsEmailContactIndexes) AsSlice() []index {
|
2026-01-20 17:10:22 +00:00
|
|
|
return []index{
|
|
|
|
|
i.EmailPkey,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-23 20:36:16 +00:00
|
|
|
type commsEmailContactForeignKeys struct{}
|
2026-01-20 17:10:22 +00:00
|
|
|
|
2026-01-23 20:36:16 +00:00
|
|
|
func (f commsEmailContactForeignKeys) AsSlice() []foreignKey {
|
2026-01-20 17:10:22 +00:00
|
|
|
return []foreignKey{}
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-23 20:36:16 +00:00
|
|
|
type commsEmailContactUniques struct{}
|
2026-01-20 17:10:22 +00:00
|
|
|
|
2026-01-23 20:36:16 +00:00
|
|
|
func (u commsEmailContactUniques) AsSlice() []constraint {
|
2026-01-20 17:10:22 +00:00
|
|
|
return []constraint{}
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-23 20:36:16 +00:00
|
|
|
type commsEmailContactChecks struct{}
|
2026-01-20 17:10:22 +00:00
|
|
|
|
2026-01-23 20:36:16 +00:00
|
|
|
func (c commsEmailContactChecks) AsSlice() []check {
|
2026-01-20 17:10:22 +00:00
|
|
|
return []check{}
|
|
|
|
|
}
|