// 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 FileuploadFlyoverAerialServices = Table[
	fileuploadFlyoverAerialServiceColumns,
	fileuploadFlyoverAerialServiceIndexes,
	fileuploadFlyoverAerialServiceForeignKeys,
	fileuploadFlyoverAerialServiceUniques,
	fileuploadFlyoverAerialServiceChecks,
]{
	Schema: "fileupload",
	Name:   "flyover_aerial_service",
	Columns: fileuploadFlyoverAerialServiceColumns{
		Committed: column{
			Name:      "committed",
			DBType:    "boolean",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Condition: column{
			Name:      "condition",
			DBType:    "fileupload.poolconditiontype",
			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,
		},
		CreatorID: column{
			Name:      "creator_id",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		CSVFile: column{
			Name:      "csv_file",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Deleted: column{
			Name:      "deleted",
			DBType:    "timestamp without time zone",
			Default:   "NULL",
			Comment:   "",
			Nullable:  true,
			Generated: false,
			AutoIncr:  false,
		},
		Geom: column{
			Name:      "geom",
			DBType:    "geometry",
			Default:   "NULL",
			Comment:   "",
			Nullable:  true,
			Generated: false,
			AutoIncr:  false,
		},
		H3cell: column{
			Name:      "h3cell",
			DBType:    "h3index",
			Default:   "NULL",
			Comment:   "",
			Nullable:  true,
			Generated: false,
			AutoIncr:  false,
		},
		ID: column{
			Name:      "id",
			DBType:    "integer",
			Default:   "nextval('fileupload.flyover_aerial_service_id_seq'::regclass)",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		OrganizationID: column{
			Name:      "organization_id",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: fileuploadFlyoverAerialServiceIndexes{
		FlyoverAerialServicePkey: index{
			Type: "btree",
			Name: "flyover_aerial_service_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:    "flyover_aerial_service_pkey",
		Columns: []string{"id"},
		Comment: "",
	},
	ForeignKeys: fileuploadFlyoverAerialServiceForeignKeys{
		FileuploadFlyoverAerialServiceFlyoverAerialServiceCreatorIDFkey: foreignKey{
			constraint: constraint{
				Name:    "fileupload.flyover_aerial_service.flyover_aerial_service_creator_id_fkey",
				Columns: []string{"creator_id"},
				Comment: "",
			},
			ForeignTable:   "user_",
			ForeignColumns: []string{"id"},
		},
		FileuploadFlyoverAerialServiceFlyoverAerialServiceCSVFileFkey: foreignKey{
			constraint: constraint{
				Name:    "fileupload.flyover_aerial_service.flyover_aerial_service_csv_file_fkey",
				Columns: []string{"csv_file"},
				Comment: "",
			},
			ForeignTable:   "fileupload.csv",
			ForeignColumns: []string{"file_id"},
		},
		FileuploadFlyoverAerialServiceFlyoverAerialServiceOrganizationIDFkey: foreignKey{
			constraint: constraint{
				Name:    "fileupload.flyover_aerial_service.flyover_aerial_service_organization_id_fkey",
				Columns: []string{"organization_id"},
				Comment: "",
			},
			ForeignTable:   "organization",
			ForeignColumns: []string{"id"},
		},
	},

	Comment: "",
}

type fileuploadFlyoverAerialServiceColumns struct {
	Committed      column
	Condition      column
	Created        column
	CreatorID      column
	CSVFile        column
	Deleted        column
	Geom           column
	H3cell         column
	ID             column
	OrganizationID column
}

func (c fileuploadFlyoverAerialServiceColumns) AsSlice() []column {
	return []column{
		c.Committed, c.Condition, c.Created, c.CreatorID, c.CSVFile, c.Deleted, c.Geom, c.H3cell, c.ID, c.OrganizationID,
	}
}

type fileuploadFlyoverAerialServiceIndexes struct {
	FlyoverAerialServicePkey index
}

func (i fileuploadFlyoverAerialServiceIndexes) AsSlice() []index {
	return []index{
		i.FlyoverAerialServicePkey,
	}
}

type fileuploadFlyoverAerialServiceForeignKeys struct {
	FileuploadFlyoverAerialServiceFlyoverAerialServiceCreatorIDFkey      foreignKey
	FileuploadFlyoverAerialServiceFlyoverAerialServiceCSVFileFkey        foreignKey
	FileuploadFlyoverAerialServiceFlyoverAerialServiceOrganizationIDFkey foreignKey
}

func (f fileuploadFlyoverAerialServiceForeignKeys) AsSlice() []foreignKey {
	return []foreignKey{
		f.FileuploadFlyoverAerialServiceFlyoverAerialServiceCreatorIDFkey, f.FileuploadFlyoverAerialServiceFlyoverAerialServiceCSVFileFkey, f.FileuploadFlyoverAerialServiceFlyoverAerialServiceOrganizationIDFkey,
	}
}

type fileuploadFlyoverAerialServiceUniques struct{}

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

type fileuploadFlyoverAerialServiceChecks struct{}

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