152 lines
3.8 KiB
Go
152 lines
3.8 KiB
Go
// 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"
|
|
|
|
var PublicreportNotifyEmailPools = Table[
|
|
publicreportNotifyEmailPoolColumns,
|
|
publicreportNotifyEmailPoolIndexes,
|
|
publicreportNotifyEmailPoolForeignKeys,
|
|
publicreportNotifyEmailPoolUniques,
|
|
publicreportNotifyEmailPoolChecks,
|
|
]{
|
|
Schema: "publicreport",
|
|
Name: "notify_email_pool",
|
|
Columns: publicreportNotifyEmailPoolColumns{
|
|
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,
|
|
},
|
|
PoolID: column{
|
|
Name: "pool_id",
|
|
DBType: "integer",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
EmailAddress: column{
|
|
Name: "email_address",
|
|
DBType: "text",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
},
|
|
Indexes: publicreportNotifyEmailPoolIndexes{
|
|
NotifyEmailPoolPkey: index{
|
|
Type: "btree",
|
|
Name: "notify_email_pool_pkey",
|
|
Columns: []indexColumn{
|
|
{
|
|
Name: "pool_id",
|
|
Desc: null.FromCond(false, true),
|
|
IsExpression: false,
|
|
},
|
|
{
|
|
Name: "email_address",
|
|
Desc: null.FromCond(false, true),
|
|
IsExpression: false,
|
|
},
|
|
},
|
|
Unique: true,
|
|
Comment: "",
|
|
NullsFirst: []bool{false, false},
|
|
NullsDistinct: false,
|
|
Where: "",
|
|
Include: []string{},
|
|
},
|
|
},
|
|
PrimaryKey: &constraint{
|
|
Name: "notify_email_pool_pkey",
|
|
Columns: []string{"pool_id", "email_address"},
|
|
Comment: "",
|
|
},
|
|
ForeignKeys: publicreportNotifyEmailPoolForeignKeys{
|
|
PublicreportNotifyEmailPoolNotifyEmailPoolEmailAddressFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "publicreport.notify_email_pool.notify_email_pool_email_address_fkey",
|
|
Columns: []string{"email_address"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "comms.email_contact",
|
|
ForeignColumns: []string{"address"},
|
|
},
|
|
PublicreportNotifyEmailPoolNotifyEmailPoolPoolIDFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "publicreport.notify_email_pool.notify_email_pool_pool_id_fkey",
|
|
Columns: []string{"pool_id"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "publicreport.pool",
|
|
ForeignColumns: []string{"id"},
|
|
},
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type publicreportNotifyEmailPoolColumns struct {
|
|
Created column
|
|
Deleted column
|
|
PoolID column
|
|
EmailAddress column
|
|
}
|
|
|
|
func (c publicreportNotifyEmailPoolColumns) AsSlice() []column {
|
|
return []column{
|
|
c.Created, c.Deleted, c.PoolID, c.EmailAddress,
|
|
}
|
|
}
|
|
|
|
type publicreportNotifyEmailPoolIndexes struct {
|
|
NotifyEmailPoolPkey index
|
|
}
|
|
|
|
func (i publicreportNotifyEmailPoolIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.NotifyEmailPoolPkey,
|
|
}
|
|
}
|
|
|
|
type publicreportNotifyEmailPoolForeignKeys struct {
|
|
PublicreportNotifyEmailPoolNotifyEmailPoolEmailAddressFkey foreignKey
|
|
PublicreportNotifyEmailPoolNotifyEmailPoolPoolIDFkey foreignKey
|
|
}
|
|
|
|
func (f publicreportNotifyEmailPoolForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{
|
|
f.PublicreportNotifyEmailPoolNotifyEmailPoolEmailAddressFkey, f.PublicreportNotifyEmailPoolNotifyEmailPoolPoolIDFkey,
|
|
}
|
|
}
|
|
|
|
type publicreportNotifyEmailPoolUniques struct{}
|
|
|
|
func (u publicreportNotifyEmailPoolUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type publicreportNotifyEmailPoolChecks struct{}
|
|
|
|
func (c publicreportNotifyEmailPoolChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|