// 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 ArcgisServiceFeatures = Table[
	arcgisServiceFeatureColumns,
	arcgisServiceFeatureIndexes,
	arcgisServiceFeatureForeignKeys,
	arcgisServiceFeatureUniques,
	arcgisServiceFeatureChecks,
]{
	Schema: "arcgis",
	Name:   "service_feature",
	Columns: arcgisServiceFeatureColumns{
		Extent: column{
			Name:      "extent",
			DBType:    "box2d",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		ItemID: column{
			Name:      "item_id",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		SpatialReference: column{
			Name:      "spatial_reference",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		URL: column{
			Name:      "url",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		AccountID: column{
			Name:      "account_id",
			DBType:    "text",
			Default:   "NULL",
			Comment:   "",
			Nullable:  true,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: arcgisServiceFeatureIndexes{
		FeatureServicePkey: index{
			Type: "btree",
			Name: "feature_service_pkey",
			Columns: []indexColumn{
				{
					Name:         "item_id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
			},
			Unique:        true,
			Comment:       "",
			NullsFirst:    []bool{false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
	},
	PrimaryKey: &constraint{
		Name:    "feature_service_pkey",
		Columns: []string{"item_id"},
		Comment: "",
	},
	ForeignKeys: arcgisServiceFeatureForeignKeys{
		ArcgisServiceFeatureServiceFeatureAccountIDFkey: foreignKey{
			constraint: constraint{
				Name:    "arcgis.service_feature.service_feature_account_id_fkey",
				Columns: []string{"account_id"},
				Comment: "",
			},
			ForeignTable:   "arcgis.account",
			ForeignColumns: []string{"id"},
		},
	},

	Comment: "",
}

type arcgisServiceFeatureColumns struct {
	Extent           column
	ItemID           column
	SpatialReference column
	URL              column
	AccountID        column
}

func (c arcgisServiceFeatureColumns) AsSlice() []column {
	return []column{
		c.Extent, c.ItemID, c.SpatialReference, c.URL, c.AccountID,
	}
}

type arcgisServiceFeatureIndexes struct {
	FeatureServicePkey index
}

func (i arcgisServiceFeatureIndexes) AsSlice() []index {
	return []index{
		i.FeatureServicePkey,
	}
}

type arcgisServiceFeatureForeignKeys struct {
	ArcgisServiceFeatureServiceFeatureAccountIDFkey foreignKey
}

func (f arcgisServiceFeatureForeignKeys) AsSlice() []foreignKey {
	return []foreignKey{
		f.ArcgisServiceFeatureServiceFeatureAccountIDFkey,
	}
}

type arcgisServiceFeatureUniques struct{}

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

type arcgisServiceFeatureChecks struct{}

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