// 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 CommsTextJobs = Table[ commsTextJobColumns, commsTextJobIndexes, commsTextJobForeignKeys, commsTextJobUniques, commsTextJobChecks, ]{ Schema: "comms", Name: "text_job", Columns: commsTextJobColumns{ 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_job_id_seq'::regclass)", Comment: "", Nullable: false, Generated: false, AutoIncr: false, }, Type: column{ Name: "type_", DBType: "comms.textjobtype", Default: "", Comment: "", Nullable: false, Generated: false, AutoIncr: false, }, }, Indexes: commsTextJobIndexes{ TextJobPkey: index{ Type: "btree", Name: "text_job_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_job_pkey", Columns: []string{"id"}, Comment: "", }, ForeignKeys: commsTextJobForeignKeys{ CommsTextJobTextJobDestinationFkey: foreignKey{ constraint: constraint{ Name: "comms.text_job.text_job_destination_fkey", Columns: []string{"destination"}, Comment: "", }, ForeignTable: "comms.phone", ForeignColumns: []string{"e164"}, }, }, Comment: "Used to track text messages that should be sent later", } type commsTextJobColumns struct { Content column Created column Destination column ID column Type column } func (c commsTextJobColumns) AsSlice() []column { return []column{ c.Content, c.Created, c.Destination, c.ID, c.Type, } } type commsTextJobIndexes struct { TextJobPkey index } func (i commsTextJobIndexes) AsSlice() []index { return []index{ i.TextJobPkey, } } type commsTextJobForeignKeys struct { CommsTextJobTextJobDestinationFkey foreignKey } func (f commsTextJobForeignKeys) AsSlice() []foreignKey { return []foreignKey{ f.CommsTextJobTextJobDestinationFkey, } } type commsTextJobUniques struct{} func (u commsTextJobUniques) AsSlice() []constraint { return []constraint{} } type commsTextJobChecks struct{} func (c commsTextJobChecks) AsSlice() []check { return []check{} }