// 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 PublicreportNotifyEmails = Table[ publicreportNotifyEmailColumns, publicreportNotifyEmailIndexes, publicreportNotifyEmailForeignKeys, publicreportNotifyEmailUniques, publicreportNotifyEmailChecks, ]{ Schema: "publicreport", Name: "notify_email", Columns: publicreportNotifyEmailColumns{ 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, }, EmailAddress: column{ Name: "email_address", 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: publicreportNotifyEmailIndexes{ NotifyEmailPkey: index{ Type: "btree", Name: "notify_email_pkey", Columns: []indexColumn{ { Name: "report_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_pkey", Columns: []string{"report_id", "email_address"}, Comment: "", }, ForeignKeys: publicreportNotifyEmailForeignKeys{ PublicreportNotifyEmailNotifyEmailEmailAddressFkey: foreignKey{ constraint: constraint{ Name: "publicreport.notify_email.notify_email_email_address_fkey", Columns: []string{"email_address"}, Comment: "", }, ForeignTable: "comms.email_contact", ForeignColumns: []string{"address"}, }, PublicreportNotifyEmailNotifyEmailReportIDFkey: foreignKey{ constraint: constraint{ Name: "publicreport.notify_email.notify_email_report_id_fkey", Columns: []string{"report_id"}, Comment: "", }, ForeignTable: "publicreport.report", ForeignColumns: []string{"id"}, }, }, Comment: "", } type publicreportNotifyEmailColumns struct { Created column Deleted column EmailAddress column ReportID column } func (c publicreportNotifyEmailColumns) AsSlice() []column { return []column{ c.Created, c.Deleted, c.EmailAddress, c.ReportID, } } type publicreportNotifyEmailIndexes struct { NotifyEmailPkey index } func (i publicreportNotifyEmailIndexes) AsSlice() []index { return []index{ i.NotifyEmailPkey, } } type publicreportNotifyEmailForeignKeys struct { PublicreportNotifyEmailNotifyEmailEmailAddressFkey foreignKey PublicreportNotifyEmailNotifyEmailReportIDFkey foreignKey } func (f publicreportNotifyEmailForeignKeys) AsSlice() []foreignKey { return []foreignKey{ f.PublicreportNotifyEmailNotifyEmailEmailAddressFkey, f.PublicreportNotifyEmailNotifyEmailReportIDFkey, } } type publicreportNotifyEmailUniques struct{} func (u publicreportNotifyEmailUniques) AsSlice() []constraint { return []constraint{} } type publicreportNotifyEmailChecks struct{} func (c publicreportNotifyEmailChecks) AsSlice() []check { return []check{} }