// 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 ArcgisLayerFields = Table[
	arcgisLayerFieldColumns,
	arcgisLayerFieldIndexes,
	arcgisLayerFieldForeignKeys,
	arcgisLayerFieldUniques,
	arcgisLayerFieldChecks,
]{
	Schema: "arcgis",
	Name:   "layer_field",
	Columns: arcgisLayerFieldColumns{
		LayerFeatureServiceItemID: column{
			Name:      "layer_feature_service_item_id",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		LayerIndex: column{
			Name:      "layer_index",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Name: column{
			Name:      "name",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Type: column{
			Name:      "type_",
			DBType:    "arcgis.fieldtype",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: arcgisLayerFieldIndexes{
		LayerFieldPkey: index{
			Type: "btree",
			Name: "layer_field_pkey",
			Columns: []indexColumn{
				{
					Name:         "layer_feature_service_item_id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
				{
					Name:         "layer_index",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
				{
					Name:         "name",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
			},
			Unique:        true,
			Comment:       "",
			NullsFirst:    []bool{false, false, false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
	},
	PrimaryKey: &constraint{
		Name:    "layer_field_pkey",
		Columns: []string{"layer_feature_service_item_id", "layer_index", "name"},
		Comment: "",
	},
	ForeignKeys: arcgisLayerFieldForeignKeys{
		ArcgisLayerFieldLayerFieldLayerFeatureServiceItemIDLayerIndexFkey: foreignKey{
			constraint: constraint{
				Name:    "arcgis.layer_field.layer_field_layer_feature_service_item_id_layer_index_fkey",
				Columns: []string{"layer_feature_service_item_id", "layer_index"},
				Comment: "",
			},
			ForeignTable:   "arcgis.layer",
			ForeignColumns: []string{"feature_service_item_id", "index_"},
		},
	},

	Comment: "",
}

type arcgisLayerFieldColumns struct {
	LayerFeatureServiceItemID column
	LayerIndex                column
	Name                      column
	Type                      column
}

func (c arcgisLayerFieldColumns) AsSlice() []column {
	return []column{
		c.LayerFeatureServiceItemID, c.LayerIndex, c.Name, c.Type,
	}
}

type arcgisLayerFieldIndexes struct {
	LayerFieldPkey index
}

func (i arcgisLayerFieldIndexes) AsSlice() []index {
	return []index{
		i.LayerFieldPkey,
	}
}

type arcgisLayerFieldForeignKeys struct {
	ArcgisLayerFieldLayerFieldLayerFeatureServiceItemIDLayerIndexFkey foreignKey
}

func (f arcgisLayerFieldForeignKeys) AsSlice() []foreignKey {
	return []foreignKey{
		f.ArcgisLayerFieldLayerFieldLayerFeatureServiceItemIDLayerIndexFkey,
	}
}

type arcgisLayerFieldUniques struct{}

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

type arcgisLayerFieldChecks struct{}

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