This was an epically long change, and a terrible idea, but it compiles. This was essentially a cascade that came about because I can't blend jet and bob in the same transaction. In for a penny, I guess...
157 lines
3.8 KiB
Go
157 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 CommunicationLogEntries = Table[
|
|
communicationLogEntryColumns,
|
|
communicationLogEntryIndexes,
|
|
communicationLogEntryForeignKeys,
|
|
communicationLogEntryUniques,
|
|
communicationLogEntryChecks,
|
|
]{
|
|
Schema: "",
|
|
Name: "communication_log_entry",
|
|
Columns: communicationLogEntryColumns{
|
|
CommunicationID: column{
|
|
Name: "communication_id",
|
|
DBType: "integer",
|
|
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,
|
|
},
|
|
ID: column{
|
|
Name: "id",
|
|
DBType: "integer",
|
|
Default: "nextval('communication_log_entry_id_seq'::regclass)",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Type: column{
|
|
Name: "type_",
|
|
DBType: "public.communicationlogentry",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
User: column{
|
|
Name: "user_",
|
|
DBType: "integer",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
},
|
|
Indexes: communicationLogEntryIndexes{
|
|
CommunicationLogEntryPkey: index{
|
|
Type: "btree",
|
|
Name: "communication_log_entry_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: "communication_log_entry_pkey",
|
|
Columns: []string{"id"},
|
|
Comment: "",
|
|
},
|
|
ForeignKeys: communicationLogEntryForeignKeys{
|
|
CommunicationLogEntryCommunicationLogEntryCommunicationIDFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "communication_log_entry.communication_log_entry_communication_id_fkey",
|
|
Columns: []string{"communication_id"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "communication",
|
|
ForeignColumns: []string{"id"},
|
|
},
|
|
CommunicationLogEntryCommunicationLogEntryUserFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "communication_log_entry.communication_log_entry_user__fkey",
|
|
Columns: []string{"user_"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "user_",
|
|
ForeignColumns: []string{"id"},
|
|
},
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type communicationLogEntryColumns struct {
|
|
CommunicationID column
|
|
Created column
|
|
ID column
|
|
Type column
|
|
User column
|
|
}
|
|
|
|
func (c communicationLogEntryColumns) AsSlice() []column {
|
|
return []column{
|
|
c.CommunicationID, c.Created, c.ID, c.Type, c.User,
|
|
}
|
|
}
|
|
|
|
type communicationLogEntryIndexes struct {
|
|
CommunicationLogEntryPkey index
|
|
}
|
|
|
|
func (i communicationLogEntryIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.CommunicationLogEntryPkey,
|
|
}
|
|
}
|
|
|
|
type communicationLogEntryForeignKeys struct {
|
|
CommunicationLogEntryCommunicationLogEntryCommunicationIDFkey foreignKey
|
|
CommunicationLogEntryCommunicationLogEntryUserFkey foreignKey
|
|
}
|
|
|
|
func (f communicationLogEntryForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{
|
|
f.CommunicationLogEntryCommunicationLogEntryCommunicationIDFkey, f.CommunicationLogEntryCommunicationLogEntryUserFkey,
|
|
}
|
|
}
|
|
|
|
type communicationLogEntryUniques struct{}
|
|
|
|
func (u communicationLogEntryUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type communicationLogEntryChecks struct{}
|
|
|
|
func (c communicationLogEntryChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|