// 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 PublicreportNuisanceImages = Table[
	publicreportNuisanceImageColumns,
	publicreportNuisanceImageIndexes,
	publicreportNuisanceImageForeignKeys,
	publicreportNuisanceImageUniques,
	publicreportNuisanceImageChecks,
]{
	Schema: "publicreport",
	Name:   "nuisance_image",
	Columns: publicreportNuisanceImageColumns{
		ImageID: column{
			Name:      "image_id",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		NuisanceID: column{
			Name:      "nuisance_id",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: publicreportNuisanceImageIndexes{
		NuisanceImagePkey: index{
			Type: "btree",
			Name: "nuisance_image_pkey",
			Columns: []indexColumn{
				{
					Name:         "image_id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
				{
					Name:         "nuisance_id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
			},
			Unique:        true,
			Comment:       "",
			NullsFirst:    []bool{false, false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
	},
	PrimaryKey: &constraint{
		Name:    "nuisance_image_pkey",
		Columns: []string{"image_id", "nuisance_id"},
		Comment: "",
	},
	ForeignKeys: publicreportNuisanceImageForeignKeys{
		PublicreportNuisanceImageNuisanceImageImageIDFkey: foreignKey{
			constraint: constraint{
				Name:    "publicreport.nuisance_image.nuisance_image_image_id_fkey",
				Columns: []string{"image_id"},
				Comment: "",
			},
			ForeignTable:   "publicreport.image",
			ForeignColumns: []string{"id"},
		},
		PublicreportNuisanceImageNuisanceImageNuisanceIDFkey: foreignKey{
			constraint: constraint{
				Name:    "publicreport.nuisance_image.nuisance_image_nuisance_id_fkey",
				Columns: []string{"nuisance_id"},
				Comment: "",
			},
			ForeignTable:   "publicreport.nuisance",
			ForeignColumns: []string{"id"},
		},
	},

	Comment: "",
}

type publicreportNuisanceImageColumns struct {
	ImageID    column
	NuisanceID column
}

func (c publicreportNuisanceImageColumns) AsSlice() []column {
	return []column{
		c.ImageID, c.NuisanceID,
	}
}

type publicreportNuisanceImageIndexes struct {
	NuisanceImagePkey index
}

func (i publicreportNuisanceImageIndexes) AsSlice() []index {
	return []index{
		i.NuisanceImagePkey,
	}
}

type publicreportNuisanceImageForeignKeys struct {
	PublicreportNuisanceImageNuisanceImageImageIDFkey    foreignKey
	PublicreportNuisanceImageNuisanceImageNuisanceIDFkey foreignKey
}

func (f publicreportNuisanceImageForeignKeys) AsSlice() []foreignKey {
	return []foreignKey{
		f.PublicreportNuisanceImageNuisanceImageImageIDFkey, f.PublicreportNuisanceImageNuisanceImageNuisanceIDFkey,
	}
}

type publicreportNuisanceImageUniques struct{}

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

type publicreportNuisanceImageChecks struct{}

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