// 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 PublicreportReportImages = Table[
	publicreportReportImageColumns,
	publicreportReportImageIndexes,
	publicreportReportImageForeignKeys,
	publicreportReportImageUniques,
	publicreportReportImageChecks,
]{
	Schema: "publicreport",
	Name:   "report_image",
	Columns: publicreportReportImageColumns{
		ImageID: column{
			Name:      "image_id",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		ReportID: column{
			Name:      "report_id",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: publicreportReportImageIndexes{
		ReportImagePkey: index{
			Type: "btree",
			Name: "report_image_pkey",
			Columns: []indexColumn{
				{
					Name:         "image_id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
				{
					Name:         "report_id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
			},
			Unique:        true,
			Comment:       "",
			NullsFirst:    []bool{false, false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
	},
	PrimaryKey: &constraint{
		Name:    "report_image_pkey",
		Columns: []string{"image_id", "report_id"},
		Comment: "",
	},
	ForeignKeys: publicreportReportImageForeignKeys{
		PublicreportReportImageReportImageImageIDFkey: foreignKey{
			constraint: constraint{
				Name:    "publicreport.report_image.report_image_image_id_fkey",
				Columns: []string{"image_id"},
				Comment: "",
			},
			ForeignTable:   "publicreport.image",
			ForeignColumns: []string{"id"},
		},
		PublicreportReportImageReportImageReportIDFkey: foreignKey{
			constraint: constraint{
				Name:    "publicreport.report_image.report_image_report_id_fkey",
				Columns: []string{"report_id"},
				Comment: "",
			},
			ForeignTable:   "publicreport.report",
			ForeignColumns: []string{"id"},
		},
	},

	Comment: "",
}

type publicreportReportImageColumns struct {
	ImageID  column
	ReportID column
}

func (c publicreportReportImageColumns) AsSlice() []column {
	return []column{
		c.ImageID, c.ReportID,
	}
}

type publicreportReportImageIndexes struct {
	ReportImagePkey index
}

func (i publicreportReportImageIndexes) AsSlice() []index {
	return []index{
		i.ReportImagePkey,
	}
}

type publicreportReportImageForeignKeys struct {
	PublicreportReportImageReportImageImageIDFkey  foreignKey
	PublicreportReportImageReportImageReportIDFkey foreignKey
}

func (f publicreportReportImageForeignKeys) AsSlice() []foreignKey {
	return []foreignKey{
		f.PublicreportReportImageReportImageImageIDFkey, f.PublicreportReportImageReportImageReportIDFkey,
	}
}

type publicreportReportImageUniques struct{}

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

type publicreportReportImageChecks struct{}

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