// 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 ArcgisServiceMaps = Table[
	arcgisServiceMapColumns,
	arcgisServiceMapIndexes,
	arcgisServiceMapForeignKeys,
	arcgisServiceMapUniques,
	arcgisServiceMapChecks,
]{
	Schema: "arcgis",
	Name:   "service_map",
	Columns: arcgisServiceMapColumns{
		AccountID: column{
			Name:      "account_id",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		ArcgisID: column{
			Name:      "arcgis_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,
		},
		Title: column{
			Name:      "title",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		URL: column{
			Name:      "url",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: arcgisServiceMapIndexes{
		ServiceMapPkey: index{
			Type: "btree",
			Name: "service_map_pkey",
			Columns: []indexColumn{
				{
					Name:         "arcgis_id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
			},
			Unique:        true,
			Comment:       "",
			NullsFirst:    []bool{false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
	},
	PrimaryKey: &constraint{
		Name:    "service_map_pkey",
		Columns: []string{"arcgis_id"},
		Comment: "",
	},
	ForeignKeys: arcgisServiceMapForeignKeys{
		ArcgisServiceMapServiceMapAccountIDFkey: foreignKey{
			constraint: constraint{
				Name:    "arcgis.service_map.service_map_account_id_fkey",
				Columns: []string{"account_id"},
				Comment: "",
			},
			ForeignTable:   "arcgis.account",
			ForeignColumns: []string{"id"},
		},
	},

	Comment: "",
}

type arcgisServiceMapColumns struct {
	AccountID column
	ArcgisID  column
	Name      column
	Title     column
	URL       column
}

func (c arcgisServiceMapColumns) AsSlice() []column {
	return []column{
		c.AccountID, c.ArcgisID, c.Name, c.Title, c.URL,
	}
}

type arcgisServiceMapIndexes struct {
	ServiceMapPkey index
}

func (i arcgisServiceMapIndexes) AsSlice() []index {
	return []index{
		i.ServiceMapPkey,
	}
}

type arcgisServiceMapForeignKeys struct {
	ArcgisServiceMapServiceMapAccountIDFkey foreignKey
}

func (f arcgisServiceMapForeignKeys) AsSlice() []foreignKey {
	return []foreignKey{
		f.ArcgisServiceMapServiceMapAccountIDFkey,
	}
}

type arcgisServiceMapUniques struct{}

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

type arcgisServiceMapChecks struct{}

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