// 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 ReviewTaskPools = Table[
	reviewTaskPoolColumns,
	reviewTaskPoolIndexes,
	reviewTaskPoolForeignKeys,
	reviewTaskPoolUniques,
	reviewTaskPoolChecks,
]{
	Schema: "",
	Name:   "review_task_pool",
	Columns: reviewTaskPoolColumns{
		FeaturePoolID: column{
			Name:      "feature_pool_id",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Location: column{
			Name:      "location",
			DBType:    "geometry",
			Default:   "NULL",
			Comment:   "",
			Nullable:  true,
			Generated: false,
			AutoIncr:  false,
		},
		Geometry: column{
			Name:      "geometry",
			DBType:    "geometry",
			Default:   "NULL",
			Comment:   "",
			Nullable:  true,
			Generated: false,
			AutoIncr:  false,
		},
		ReviewTaskID: column{
			Name:      "review_task_id",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Condition: column{
			Name:      "condition",
			DBType:    "public.poolconditiontype",
			Default:   "NULL",
			Comment:   "",
			Nullable:  true,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: reviewTaskPoolIndexes{
		ReviewTaskPoolPkey: index{
			Type: "btree",
			Name: "review_task_pool_pkey",
			Columns: []indexColumn{
				{
					Name:         "review_task_id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
			},
			Unique:        true,
			Comment:       "",
			NullsFirst:    []bool{false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
	},
	PrimaryKey: &constraint{
		Name:    "review_task_pool_pkey",
		Columns: []string{"review_task_id"},
		Comment: "",
	},
	ForeignKeys: reviewTaskPoolForeignKeys{
		ReviewTaskPoolReviewTaskPoolFeaturePoolFkey: foreignKey{
			constraint: constraint{
				Name:    "review_task_pool.review_task_pool_feature_pool_fkey",
				Columns: []string{"feature_pool_id"},
				Comment: "",
			},
			ForeignTable:   "feature_pool",
			ForeignColumns: []string{"feature_id"},
		},
		ReviewTaskPoolReviewTaskPoolReviewTaskIDFkey: foreignKey{
			constraint: constraint{
				Name:    "review_task_pool.review_task_pool_review_task_id_fkey",
				Columns: []string{"review_task_id"},
				Comment: "",
			},
			ForeignTable:   "review_task",
			ForeignColumns: []string{"id"},
		},
	},

	Comment: "",
}

type reviewTaskPoolColumns struct {
	FeaturePoolID column
	Location      column
	Geometry      column
	ReviewTaskID  column
	Condition     column
}

func (c reviewTaskPoolColumns) AsSlice() []column {
	return []column{
		c.FeaturePoolID, c.Location, c.Geometry, c.ReviewTaskID, c.Condition,
	}
}

type reviewTaskPoolIndexes struct {
	ReviewTaskPoolPkey index
}

func (i reviewTaskPoolIndexes) AsSlice() []index {
	return []index{
		i.ReviewTaskPoolPkey,
	}
}

type reviewTaskPoolForeignKeys struct {
	ReviewTaskPoolReviewTaskPoolFeaturePoolFkey  foreignKey
	ReviewTaskPoolReviewTaskPoolReviewTaskIDFkey foreignKey
}

func (f reviewTaskPoolForeignKeys) AsSlice() []foreignKey {
	return []foreignKey{
		f.ReviewTaskPoolReviewTaskPoolFeaturePoolFkey, f.ReviewTaskPoolReviewTaskPoolReviewTaskIDFkey,
	}
}

type reviewTaskPoolUniques struct{}

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

type reviewTaskPoolChecks struct{}

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