// 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 PublicreportImages = Table[
	publicreportImageColumns,
	publicreportImageIndexes,
	publicreportImageForeignKeys,
	publicreportImageUniques,
	publicreportImageChecks,
]{
	Schema: "publicreport",
	Name:   "image",
	Columns: publicreportImageColumns{
		ID: column{
			Name:      "id",
			DBType:    "integer",
			Default:   "nextval('publicreport.image_id_seq'::regclass)",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		ContentType: column{
			Name:      "content_type",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Created: column{
			Name:      "created",
			DBType:    "timestamp without time zone",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		ResolutionX: column{
			Name:      "resolution_x",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		ResolutionY: column{
			Name:      "resolution_y",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		StorageUUID: column{
			Name:      "storage_uuid",
			DBType:    "uuid",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		StorageSize: column{
			Name:      "storage_size",
			DBType:    "bigint",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		UploadedFilename: column{
			Name:      "uploaded_filename",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Location: column{
			Name:      "location",
			DBType:    "geometry",
			Default:   "NULL",
			Comment:   "",
			Nullable:  true,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: publicreportImageIndexes{
		ImagePkey: index{
			Type: "btree",
			Name: "image_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:    "image_pkey",
		Columns: []string{"id"},
		Comment: "",
	},

	Comment: "",
}

type publicreportImageColumns struct {
	ID               column
	ContentType      column
	Created          column
	ResolutionX      column
	ResolutionY      column
	StorageUUID      column
	StorageSize      column
	UploadedFilename column
	Location         column
}

func (c publicreportImageColumns) AsSlice() []column {
	return []column{
		c.ID, c.ContentType, c.Created, c.ResolutionX, c.ResolutionY, c.StorageUUID, c.StorageSize, c.UploadedFilename, c.Location,
	}
}

type publicreportImageIndexes struct {
	ImagePkey index
}

func (i publicreportImageIndexes) AsSlice() []index {
	return []index{
		i.ImagePkey,
	}
}

type publicreportImageForeignKeys struct{}

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

type publicreportImageUniques struct{}

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

type publicreportImageChecks struct{}

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