// 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 PublicreportImageExifs = Table[
	publicreportImageExifColumns,
	publicreportImageExifIndexes,
	publicreportImageExifForeignKeys,
	publicreportImageExifUniques,
	publicreportImageExifChecks,
]{
	Schema: "publicreport",
	Name:   "image_exif",
	Columns: publicreportImageExifColumns{
		ImageID: column{
			Name:      "image_id",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Name: column{
			Name:      "name",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Value: column{
			Name:      "value",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: publicreportImageExifIndexes{
		ImageExifPkey: index{
			Type: "btree",
			Name: "image_exif_pkey",
			Columns: []indexColumn{
				{
					Name:         "image_id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
				{
					Name:         "name",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
				{
					Name:         "value",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
			},
			Unique:        true,
			Comment:       "",
			NullsFirst:    []bool{false, false, false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
	},
	PrimaryKey: &constraint{
		Name:    "image_exif_pkey",
		Columns: []string{"image_id", "name", "value"},
		Comment: "",
	},
	ForeignKeys: publicreportImageExifForeignKeys{
		PublicreportImageExifImageExifImageIDFkey: foreignKey{
			constraint: constraint{
				Name:    "publicreport.image_exif.image_exif_image_id_fkey",
				Columns: []string{"image_id"},
				Comment: "",
			},
			ForeignTable:   "publicreport.image",
			ForeignColumns: []string{"id"},
		},
	},

	Comment: "",
}

type publicreportImageExifColumns struct {
	ImageID column
	Name    column
	Value   column
}

func (c publicreportImageExifColumns) AsSlice() []column {
	return []column{
		c.ImageID, c.Name, c.Value,
	}
}

type publicreportImageExifIndexes struct {
	ImageExifPkey index
}

func (i publicreportImageExifIndexes) AsSlice() []index {
	return []index{
		i.ImageExifPkey,
	}
}

type publicreportImageExifForeignKeys struct {
	PublicreportImageExifImageExifImageIDFkey foreignKey
}

func (f publicreportImageExifForeignKeys) AsSlice() []foreignKey {
	return []foreignKey{
		f.PublicreportImageExifImageExifImageIDFkey,
	}
}

type publicreportImageExifUniques struct{}

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

type publicreportImageExifChecks struct{}

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