// 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 ComplianceReportRequestMailers = Table[
	complianceReportRequestMailerColumns,
	complianceReportRequestMailerIndexes,
	complianceReportRequestMailerForeignKeys,
	complianceReportRequestMailerUniques,
	complianceReportRequestMailerChecks,
]{
	Schema: "",
	Name:   "compliance_report_request_mailer",
	Columns: complianceReportRequestMailerColumns{
		ComplianceReportRequestID: column{
			Name:      "compliance_report_request_id",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		MailerID: column{
			Name:      "mailer_id",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		ID: column{
			Name:      "id",
			DBType:    "integer",
			Default:   "nextval('compliance_report_request_mailer_id_seq'::regclass)",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: complianceReportRequestMailerIndexes{
		ComplianceReportRequestMailerPkey: index{
			Type: "btree",
			Name: "compliance_report_request_mailer_pkey",
			Columns: []indexColumn{
				{
					Name:         "id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
			},
			Unique:        true,
			Comment:       "",
			NullsFirst:    []bool{false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
		ComplianceReportRequestMaiComplianceReportRequestIDKey: index{
			Type: "btree",
			Name: "compliance_report_request_mai_compliance_report_request_id__key",
			Columns: []indexColumn{
				{
					Name:         "compliance_report_request_id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
				{
					Name:         "mailer_id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
			},
			Unique:        true,
			Comment:       "",
			NullsFirst:    []bool{false, false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
	},
	PrimaryKey: &constraint{
		Name:    "compliance_report_request_mailer_pkey",
		Columns: []string{"id"},
		Comment: "",
	},
	ForeignKeys: complianceReportRequestMailerForeignKeys{
		ComplianceReportRequestMailerComplianceReportRequestMaiComplianceReportRequestIDFkey: foreignKey{
			constraint: constraint{
				Name:    "compliance_report_request_mailer.compliance_report_request_mai_compliance_report_request_id_fkey",
				Columns: []string{"compliance_report_request_id"},
				Comment: "",
			},
			ForeignTable:   "compliance_report_request",
			ForeignColumns: []string{"id"},
		},
		ComplianceReportRequestMailerComplianceReportRequestMailerMailerIDFkey: foreignKey{
			constraint: constraint{
				Name:    "compliance_report_request_mailer.compliance_report_request_mailer_mailer_id_fkey",
				Columns: []string{"mailer_id"},
				Comment: "",
			},
			ForeignTable:   "comms.mailer",
			ForeignColumns: []string{"id"},
		},
	},
	Uniques: complianceReportRequestMailerUniques{
		ComplianceReportRequestMaiComplianceReportRequestIDKey: constraint{
			Name:    "compliance_report_request_mai_compliance_report_request_id__key",
			Columns: []string{"compliance_report_request_id", "mailer_id"},
			Comment: "",
		},
	},

	Comment: "",
}

type complianceReportRequestMailerColumns struct {
	ComplianceReportRequestID column
	MailerID                  column
	ID                        column
}

func (c complianceReportRequestMailerColumns) AsSlice() []column {
	return []column{
		c.ComplianceReportRequestID, c.MailerID, c.ID,
	}
}

type complianceReportRequestMailerIndexes struct {
	ComplianceReportRequestMailerPkey                      index
	ComplianceReportRequestMaiComplianceReportRequestIDKey index
}

func (i complianceReportRequestMailerIndexes) AsSlice() []index {
	return []index{
		i.ComplianceReportRequestMailerPkey, i.ComplianceReportRequestMaiComplianceReportRequestIDKey,
	}
}

type complianceReportRequestMailerForeignKeys struct {
	ComplianceReportRequestMailerComplianceReportRequestMaiComplianceReportRequestIDFkey foreignKey
	ComplianceReportRequestMailerComplianceReportRequestMailerMailerIDFkey               foreignKey
}

func (f complianceReportRequestMailerForeignKeys) AsSlice() []foreignKey {
	return []foreignKey{
		f.ComplianceReportRequestMailerComplianceReportRequestMaiComplianceReportRequestIDFkey, f.ComplianceReportRequestMailerComplianceReportRequestMailerMailerIDFkey,
	}
}

type complianceReportRequestMailerUniques struct {
	ComplianceReportRequestMaiComplianceReportRequestIDKey constraint
}

func (u complianceReportRequestMailerUniques) AsSlice() []constraint {
	return []constraint{
		u.ComplianceReportRequestMaiComplianceReportRequestIDKey,
	}
}

type complianceReportRequestMailerChecks struct{}

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