// 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 StadiaAPIRequests = Table[
	stadiaAPIRequestColumns,
	stadiaAPIRequestIndexes,
	stadiaAPIRequestForeignKeys,
	stadiaAPIRequestUniques,
	stadiaAPIRequestChecks,
]{
	Schema: "stadia",
	Name:   "api_request",
	Columns: stadiaAPIRequestColumns{
		ID: column{
			Name:      "id",
			DBType:    "bigint",
			Default:   "nextval('stadia.api_request_id_seq'::regclass)",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Request: column{
			Name:      "request",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Response: column{
			Name:      "response",
			DBType:    "jsonb",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		CreatedAt: column{
			Name:      "created_at",
			DBType:    "timestamp without time zone",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: stadiaAPIRequestIndexes{
		APIRequestPkey: index{
			Type: "btree",
			Name: "api_request_pkey",
			Columns: []indexColumn{
				{
					Name:         "id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
			},
			Unique:        true,
			Comment:       "",
			NullsFirst:    []bool{false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
		APIRequestRequestKey: index{
			Type: "btree",
			Name: "api_request_request_key",
			Columns: []indexColumn{
				{
					Name:         "request",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
			},
			Unique:        true,
			Comment:       "",
			NullsFirst:    []bool{false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
	},
	PrimaryKey: &constraint{
		Name:    "api_request_pkey",
		Columns: []string{"id"},
		Comment: "",
	},

	Uniques: stadiaAPIRequestUniques{
		APIRequestRequestKey: constraint{
			Name:    "api_request_request_key",
			Columns: []string{"request"},
			Comment: "",
		},
	},

	Comment: "",
}

type stadiaAPIRequestColumns struct {
	ID        column
	Request   column
	Response  column
	CreatedAt column
}

func (c stadiaAPIRequestColumns) AsSlice() []column {
	return []column{
		c.ID, c.Request, c.Response, c.CreatedAt,
	}
}

type stadiaAPIRequestIndexes struct {
	APIRequestPkey       index
	APIRequestRequestKey index
}

func (i stadiaAPIRequestIndexes) AsSlice() []index {
	return []index{
		i.APIRequestPkey, i.APIRequestRequestKey,
	}
}

type stadiaAPIRequestForeignKeys struct{}

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

type stadiaAPIRequestUniques struct {
	APIRequestRequestKey constraint
}

func (u stadiaAPIRequestUniques) AsSlice() []constraint {
	return []constraint{
		u.APIRequestRequestKey,
	}
}

type stadiaAPIRequestChecks struct{}

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