// 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 FileuploadErrorFiles = Table[
	fileuploadErrorFileColumns,
	fileuploadErrorFileIndexes,
	fileuploadErrorFileForeignKeys,
	fileuploadErrorFileUniques,
	fileuploadErrorFileChecks,
]{
	Schema: "fileupload",
	Name:   "error_file",
	Columns: fileuploadErrorFileColumns{
		FileID: column{
			Name:      "file_id",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		ID: column{
			Name:      "id",
			DBType:    "integer",
			Default:   "nextval('fileupload.error_file_id_seq'::regclass)",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Message: column{
			Name:      "message",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: fileuploadErrorFileIndexes{
		ErrorFilePkey: index{
			Type: "btree",
			Name: "error_file_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:    "error_file_pkey",
		Columns: []string{"id"},
		Comment: "",
	},
	ForeignKeys: fileuploadErrorFileForeignKeys{
		FileuploadErrorFileErrorFileFileIDFkey: foreignKey{
			constraint: constraint{
				Name:    "fileupload.error_file.error_file_file_id_fkey",
				Columns: []string{"file_id"},
				Comment: "",
			},
			ForeignTable:   "fileupload.file",
			ForeignColumns: []string{"id"},
		},
	},

	Comment: "",
}

type fileuploadErrorFileColumns struct {
	FileID  column
	ID      column
	Message column
}

func (c fileuploadErrorFileColumns) AsSlice() []column {
	return []column{
		c.FileID, c.ID, c.Message,
	}
}

type fileuploadErrorFileIndexes struct {
	ErrorFilePkey index
}

func (i fileuploadErrorFileIndexes) AsSlice() []index {
	return []index{
		i.ErrorFilePkey,
	}
}

type fileuploadErrorFileForeignKeys struct {
	FileuploadErrorFileErrorFileFileIDFkey foreignKey
}

func (f fileuploadErrorFileForeignKeys) AsSlice() []foreignKey {
	return []foreignKey{
		f.FileuploadErrorFileErrorFileFileIDFkey,
	}
}

type fileuploadErrorFileUniques struct{}

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

type fileuploadErrorFileChecks struct{}

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