// 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 Parcels = Table[
	parcelColumns,
	parcelIndexes,
	parcelForeignKeys,
	parcelUniques,
	parcelChecks,
]{
	Schema: "",
	Name:   "parcel",
	Columns: parcelColumns{
		Apn: column{
			Name:      "apn",
			DBType:    "text",
			Default:   "NULL",
			Comment:   "",
			Nullable:  true,
			Generated: false,
			AutoIncr:  false,
		},
		Description: column{
			Name:      "description",
			DBType:    "text",
			Default:   "NULL",
			Comment:   "",
			Nullable:  true,
			Generated: false,
			AutoIncr:  false,
		},
		ID: column{
			Name:      "id",
			DBType:    "integer",
			Default:   "nextval('parcel_id_seq'::regclass)",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Geometry: column{
			Name:      "geometry",
			DBType:    "geometry",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: parcelIndexes{
		ParcelPkey: index{
			Type: "btree",
			Name: "parcel_pkey",
			Columns: []indexColumn{
				{
					Name:         "id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
			},
			Unique:        true,
			Comment:       "",
			NullsFirst:    []bool{false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
		IdxParcelGeometry: index{
			Type: "gist",
			Name: "idx_parcel_geometry",
			Columns: []indexColumn{
				{
					Name:         "geometry",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
			},
			Unique:        false,
			Comment:       "",
			NullsFirst:    []bool{false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
	},
	PrimaryKey: &constraint{
		Name:    "parcel_pkey",
		Columns: []string{"id"},
		Comment: "",
	},

	Comment: "",
}

type parcelColumns struct {
	Apn         column
	Description column
	ID          column
	Geometry    column
}

func (c parcelColumns) AsSlice() []column {
	return []column{
		c.Apn, c.Description, c.ID, c.Geometry,
	}
}

type parcelIndexes struct {
	ParcelPkey        index
	IdxParcelGeometry index
}

func (i parcelIndexes) AsSlice() []index {
	return []index{
		i.ParcelPkey, i.IdxParcelGeometry,
	}
}

type parcelForeignKeys struct{}

func (f parcelForeignKeys) AsSlice() []foreignKey {
	return []foreignKey{}
}

type parcelUniques struct{}

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

type parcelChecks struct{}

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