It's a better system for organization and makes it so we can have better logs about what gets sent.
167 lines
3.5 KiB
Go
167 lines
3.5 KiB
Go
// Code generated by BobGen psql v0.42.1. 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 CommsTextLogs = Table[
|
|
commsTextLogColumns,
|
|
commsTextLogIndexes,
|
|
commsTextLogForeignKeys,
|
|
commsTextLogUniques,
|
|
commsTextLogChecks,
|
|
]{
|
|
Schema: "comms",
|
|
Name: "text_log",
|
|
Columns: commsTextLogColumns{
|
|
Content: column{
|
|
Name: "content",
|
|
DBType: "text",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Created: column{
|
|
Name: "created",
|
|
DBType: "timestamp without time zone",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Destination: column{
|
|
Name: "destination",
|
|
DBType: "text",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
ID: column{
|
|
Name: "id",
|
|
DBType: "integer",
|
|
Default: "nextval('comms.text_log_id_seq'::regclass)",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Origin: column{
|
|
Name: "origin",
|
|
DBType: "comms.textorigin",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Source: column{
|
|
Name: "source",
|
|
DBType: "text",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
},
|
|
Indexes: commsTextLogIndexes{
|
|
TextLogPkey: index{
|
|
Type: "btree",
|
|
Name: "text_log_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: "text_log_pkey",
|
|
Columns: []string{"id"},
|
|
Comment: "",
|
|
},
|
|
ForeignKeys: commsTextLogForeignKeys{
|
|
CommsTextLogTextLogDestinationFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "comms.text_log.text_log_destination_fkey",
|
|
Columns: []string{"destination"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "comms.phone",
|
|
ForeignColumns: []string{"e164"},
|
|
},
|
|
CommsTextLogTextLogSourceFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "comms.text_log.text_log_source_fkey",
|
|
Columns: []string{"source"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "comms.phone",
|
|
ForeignColumns: []string{"e164"},
|
|
},
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type commsTextLogColumns struct {
|
|
Content column
|
|
Created column
|
|
Destination column
|
|
ID column
|
|
Origin column
|
|
Source column
|
|
}
|
|
|
|
func (c commsTextLogColumns) AsSlice() []column {
|
|
return []column{
|
|
c.Content, c.Created, c.Destination, c.ID, c.Origin, c.Source,
|
|
}
|
|
}
|
|
|
|
type commsTextLogIndexes struct {
|
|
TextLogPkey index
|
|
}
|
|
|
|
func (i commsTextLogIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.TextLogPkey,
|
|
}
|
|
}
|
|
|
|
type commsTextLogForeignKeys struct {
|
|
CommsTextLogTextLogDestinationFkey foreignKey
|
|
CommsTextLogTextLogSourceFkey foreignKey
|
|
}
|
|
|
|
func (f commsTextLogForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{
|
|
f.CommsTextLogTextLogDestinationFkey, f.CommsTextLogTextLogSourceFkey,
|
|
}
|
|
}
|
|
|
|
type commsTextLogUniques struct{}
|
|
|
|
func (u commsTextLogUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type commsTextLogChecks struct{}
|
|
|
|
func (c commsTextLogChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|