// 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 PublicreportNotifyPhones = Table[ publicreportNotifyPhoneColumns, publicreportNotifyPhoneIndexes, publicreportNotifyPhoneForeignKeys, publicreportNotifyPhoneUniques, publicreportNotifyPhoneChecks, ]{ Schema: "publicreport", Name: "notify_phone", Columns: publicreportNotifyPhoneColumns{ 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, }, PhoneE164: column{ Name: "phone_e164", DBType: "text", Default: "", Comment: "", Nullable: false, Generated: false, AutoIncr: false, }, ReportID: column{ Name: "report_id", DBType: "integer", Default: "", Comment: "", Nullable: false, Generated: false, AutoIncr: false, }, }, Indexes: publicreportNotifyPhoneIndexes{ NotifyPhonePkey: index{ Type: "btree", Name: "notify_phone_pkey", Columns: []indexColumn{ { Name: "report_id", Desc: null.FromCond(false, true), IsExpression: false, }, { Name: "phone_e164", Desc: null.FromCond(false, true), IsExpression: false, }, }, Unique: true, Comment: "", NullsFirst: []bool{false, false}, NullsDistinct: false, Where: "", Include: []string{}, }, }, PrimaryKey: &constraint{ Name: "notify_phone_pkey", Columns: []string{"report_id", "phone_e164"}, Comment: "", }, ForeignKeys: publicreportNotifyPhoneForeignKeys{ PublicreportNotifyPhoneNotifyPhonePhoneE164Fkey: foreignKey{ constraint: constraint{ Name: "publicreport.notify_phone.notify_phone_phone_e164_fkey", Columns: []string{"phone_e164"}, Comment: "", }, ForeignTable: "comms.phone", ForeignColumns: []string{"e164"}, }, PublicreportNotifyPhoneNotifyPhoneReportIDFkey: foreignKey{ constraint: constraint{ Name: "publicreport.notify_phone.notify_phone_report_id_fkey", Columns: []string{"report_id"}, Comment: "", }, ForeignTable: "publicreport.report", ForeignColumns: []string{"id"}, }, }, Comment: "", } type publicreportNotifyPhoneColumns struct { Created column Deleted column PhoneE164 column ReportID column } func (c publicreportNotifyPhoneColumns) AsSlice() []column { return []column{ c.Created, c.Deleted, c.PhoneE164, c.ReportID, } } type publicreportNotifyPhoneIndexes struct { NotifyPhonePkey index } func (i publicreportNotifyPhoneIndexes) AsSlice() []index { return []index{ i.NotifyPhonePkey, } } type publicreportNotifyPhoneForeignKeys struct { PublicreportNotifyPhoneNotifyPhonePhoneE164Fkey foreignKey PublicreportNotifyPhoneNotifyPhoneReportIDFkey foreignKey } func (f publicreportNotifyPhoneForeignKeys) AsSlice() []foreignKey { return []foreignKey{ f.PublicreportNotifyPhoneNotifyPhonePhoneE164Fkey, f.PublicreportNotifyPhoneNotifyPhoneReportIDFkey, } } type publicreportNotifyPhoneUniques struct{} func (u publicreportNotifyPhoneUniques) AsSlice() []constraint { return []constraint{} } type publicreportNotifyPhoneChecks struct{} func (c publicreportNotifyPhoneChecks) AsSlice() []check { return []check{} }