// 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 CommsEmails = Table[ commsEmailColumns, commsEmailIndexes, commsEmailForeignKeys, commsEmailUniques, commsEmailChecks, ]{ Schema: "comms", Name: "email", Columns: commsEmailColumns{ Address: column{ Name: "address", DBType: "text", Default: "", Comment: "", Nullable: false, Generated: false, AutoIncr: false, }, Confirmed: column{ Name: "confirmed", DBType: "boolean", Default: "", Comment: "", Nullable: false, Generated: false, AutoIncr: false, }, IsSubscribed: column{ Name: "is_subscribed", DBType: "boolean", Default: "", Comment: "", Nullable: false, Generated: false, AutoIncr: false, }, }, Indexes: commsEmailIndexes{ EmailPkey: index{ Type: "btree", Name: "email_pkey", Columns: []indexColumn{ { Name: "address", Desc: null.FromCond(false, true), IsExpression: false, }, }, Unique: true, Comment: "", NullsFirst: []bool{false}, NullsDistinct: false, Where: "", Include: []string{}, }, }, PrimaryKey: &constraint{ Name: "email_pkey", Columns: []string{"address"}, Comment: "", }, Comment: "", } type commsEmailColumns struct { Address column Confirmed column IsSubscribed column } func (c commsEmailColumns) AsSlice() []column { return []column{ c.Address, c.Confirmed, c.IsSubscribed, } } type commsEmailIndexes struct { EmailPkey index } func (i commsEmailIndexes) AsSlice() []index { return []index{ i.EmailPkey, } } type commsEmailForeignKeys struct{} func (f commsEmailForeignKeys) AsSlice() []foreignKey { return []foreignKey{} } type commsEmailUniques struct{} func (u commsEmailUniques) AsSlice() []constraint { return []constraint{} } type commsEmailChecks struct{} func (c commsEmailChecks) AsSlice() []check { return []check{} }