// 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 CommsMailers = Table[
	commsMailerColumns,
	commsMailerIndexes,
	commsMailerForeignKeys,
	commsMailerUniques,
	commsMailerChecks,
]{
	Schema: "comms",
	Name:   "mailer",
	Columns: commsMailerColumns{
		Created: column{
			Name:      "created",
			DBType:    "timestamp without time zone",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		ID: column{
			Name:      "id",
			DBType:    "integer",
			Default:   "nextval('comms.mailer_id_seq'::regclass)",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Type: column{
			Name:      "type_",
			DBType:    "comms.mailertype",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: commsMailerIndexes{
		MailerPkey: index{
			Type: "btree",
			Name: "mailer_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:    "mailer_pkey",
		Columns: []string{"id"},
		Comment: "",
	},

	Comment: "",
}

type commsMailerColumns struct {
	Created column
	ID      column
	Type    column
}

func (c commsMailerColumns) AsSlice() []column {
	return []column{
		c.Created, c.ID, c.Type,
	}
}

type commsMailerIndexes struct {
	MailerPkey index
}

func (i commsMailerIndexes) AsSlice() []index {
	return []index{
		i.MailerPkey,
	}
}

type commsMailerForeignKeys struct{}

func (f commsMailerForeignKeys) AsSlice() []foreignKey {
	return []foreignKey{}
}

type commsMailerUniques struct{}

func (u commsMailerUniques) AsSlice() []constraint {
	return []constraint{}
}

type commsMailerChecks struct{}

func (c commsMailerChecks) AsSlice() []check {
	return []check{}
}
