// 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 Jobs = Table[
	jobColumns,
	jobIndexes,
	jobForeignKeys,
	jobUniques,
	jobChecks,
]{
	Schema: "",
	Name:   "job",
	Columns: jobColumns{
		Created: column{
			Name:      "created",
			DBType:    "timestamp without time zone",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		ID: column{
			Name:      "id",
			DBType:    "integer",
			Default:   "nextval('job_id_seq'::regclass)",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Type: column{
			Name:      "type_",
			DBType:    "public.jobtype",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		RowID: column{
			Name:      "row_id",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: jobIndexes{
		JobPkey: index{
			Type: "btree",
			Name: "job_pkey",
			Columns: []indexColumn{
				{
					Name:         "id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
			},
			Unique:        true,
			Comment:       "",
			NullsFirst:    []bool{false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
	},
	PrimaryKey: &constraint{
		Name:    "job_pkey",
		Columns: []string{"id"},
		Comment: "",
	},

	Comment: "A temporary holding place for jobs that are pushed to backend workers. Once work is completed the job should be deleted",
}

type jobColumns struct {
	Created column
	ID      column
	Type    column
	RowID   column
}

func (c jobColumns) AsSlice() []column {
	return []column{
		c.Created, c.ID, c.Type, c.RowID,
	}
}

type jobIndexes struct {
	JobPkey index
}

func (i jobIndexes) AsSlice() []index {
	return []index{
		i.JobPkey,
	}
}

type jobForeignKeys struct{}

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

type jobUniques struct{}

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

type jobChecks struct{}

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