// 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 ArcgisAccounts = Table[
	arcgisAccountColumns,
	arcgisAccountIndexes,
	arcgisAccountForeignKeys,
	arcgisAccountUniques,
	arcgisAccountChecks,
]{
	Schema: "arcgis",
	Name:   "account",
	Columns: arcgisAccountColumns{
		ID: column{
			Name:      "id",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Name: column{
			Name:      "name",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		OrganizationID: column{
			Name:      "organization_id",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		URLFeatures: column{
			Name:      "url_features",
			DBType:    "text",
			Default:   "NULL",
			Comment:   "",
			Nullable:  true,
			Generated: false,
			AutoIncr:  false,
		},
		URLInsights: column{
			Name:      "url_insights",
			DBType:    "text",
			Default:   "NULL",
			Comment:   "",
			Nullable:  true,
			Generated: false,
			AutoIncr:  false,
		},
		URLGeometry: column{
			Name:      "url_geometry",
			DBType:    "text",
			Default:   "NULL",
			Comment:   "",
			Nullable:  true,
			Generated: false,
			AutoIncr:  false,
		},
		URLNotebooks: column{
			Name:      "url_notebooks",
			DBType:    "text",
			Default:   "NULL",
			Comment:   "",
			Nullable:  true,
			Generated: false,
			AutoIncr:  false,
		},
		URLTiles: column{
			Name:      "url_tiles",
			DBType:    "text",
			Default:   "NULL",
			Comment:   "",
			Nullable:  true,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: arcgisAccountIndexes{
		AccountPkey: index{
			Type: "btree",
			Name: "account_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:    "account_pkey",
		Columns: []string{"id"},
		Comment: "",
	},
	ForeignKeys: arcgisAccountForeignKeys{
		ArcgisAccountAccountOrganizationIDFkey: foreignKey{
			constraint: constraint{
				Name:    "arcgis.account.account_organization_id_fkey",
				Columns: []string{"organization_id"},
				Comment: "",
			},
			ForeignTable:   "organization",
			ForeignColumns: []string{"id"},
		},
	},

	Comment: "",
}

type arcgisAccountColumns struct {
	ID             column
	Name           column
	OrganizationID column
	URLFeatures    column
	URLInsights    column
	URLGeometry    column
	URLNotebooks   column
	URLTiles       column
}

func (c arcgisAccountColumns) AsSlice() []column {
	return []column{
		c.ID, c.Name, c.OrganizationID, c.URLFeatures, c.URLInsights, c.URLGeometry, c.URLNotebooks, c.URLTiles,
	}
}

type arcgisAccountIndexes struct {
	AccountPkey index
}

func (i arcgisAccountIndexes) AsSlice() []index {
	return []index{
		i.AccountPkey,
	}
}

type arcgisAccountForeignKeys struct {
	ArcgisAccountAccountOrganizationIDFkey foreignKey
}

func (f arcgisAccountForeignKeys) AsSlice() []foreignKey {
	return []foreignKey{
		f.ArcgisAccountAccountOrganizationIDFkey,
	}
}

type arcgisAccountUniques struct{}

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

type arcgisAccountChecks struct{}

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