// 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 LobEvents = Table[ lobEventColumns, lobEventIndexes, lobEventForeignKeys, lobEventUniques, lobEventChecks, ]{ Schema: "lob", Name: "event", Columns: lobEventColumns{ Created: column{ Name: "created", DBType: "timestamp without time zone", Default: "", Comment: "", Nullable: false, Generated: false, AutoIncr: false, }, Body: column{ Name: "body", DBType: "jsonb", Default: "", Comment: "", Nullable: false, Generated: false, AutoIncr: false, }, ID: column{ Name: "id", DBType: "text", Default: "", Comment: "", Nullable: false, Generated: false, AutoIncr: false, }, Type: column{ Name: "type_", DBType: "text", Default: "", Comment: "", Nullable: false, Generated: false, AutoIncr: false, }, }, Indexes: lobEventIndexes{ EventPkey: index{ Type: "btree", Name: "event_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: "event_pkey", Columns: []string{"id"}, Comment: "", }, Comment: "", } type lobEventColumns struct { Created column Body column ID column Type column } func (c lobEventColumns) AsSlice() []column { return []column{ c.Created, c.Body, c.ID, c.Type, } } type lobEventIndexes struct { EventPkey index } func (i lobEventIndexes) AsSlice() []index { return []index{ i.EventPkey, } } type lobEventForeignKeys struct{} func (f lobEventForeignKeys) AsSlice() []foreignKey { return []foreignKey{} } type lobEventUniques struct{} func (u lobEventUniques) AsSlice() []constraint { return []constraint{} } type lobEventChecks struct{} func (c lobEventChecks) AsSlice() []check { return []check{} }