// 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 NoteImageBreadcrumbs = Table[
	noteImageBreadcrumbColumns,
	noteImageBreadcrumbIndexes,
	noteImageBreadcrumbForeignKeys,
	noteImageBreadcrumbUniques,
	noteImageBreadcrumbChecks,
]{
	Schema: "",
	Name:   "note_image_breadcrumb",
	Columns: noteImageBreadcrumbColumns{
		Cell: column{
			Name:      "cell",
			DBType:    "h3index",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Created: column{
			Name:      "created",
			DBType:    "timestamp without time zone",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		ManuallySelected: column{
			Name:      "manually_selected",
			DBType:    "boolean",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		NoteImageVersion: column{
			Name:      "note_image_version",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		NoteImageUUID: column{
			Name:      "note_image_uuid",
			DBType:    "uuid",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Position: column{
			Name:      "position",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: noteImageBreadcrumbIndexes{
		NoteImageBreadcrumbPkey: index{
			Type: "btree",
			Name: "note_image_breadcrumb_pkey",
			Columns: []indexColumn{
				{
					Name:         "note_image_version",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
				{
					Name:         "note_image_uuid",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
				{
					Name:         "\"position\"",
					Desc:         null.FromCond(false, true),
					IsExpression: true,
				},
			},
			Unique:        true,
			Comment:       "",
			NullsFirst:    []bool{false, false, false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
	},
	PrimaryKey: &constraint{
		Name:    "note_image_breadcrumb_pkey",
		Columns: []string{"note_image_version", "note_image_uuid", "position"},
		Comment: "",
	},
	ForeignKeys: noteImageBreadcrumbForeignKeys{
		NoteImageBreadcrumbNoteImageBreadcrumbNoteImageVersionNoteImageUUIDFkey: foreignKey{
			constraint: constraint{
				Name:    "note_image_breadcrumb.note_image_breadcrumb_note_image_version_note_image_uuid_fkey",
				Columns: []string{"note_image_version", "note_image_uuid"},
				Comment: "",
			},
			ForeignTable:   "note_image",
			ForeignColumns: []string{"version", "uuid"},
		},
	},

	Comment: "",
}

type noteImageBreadcrumbColumns struct {
	Cell             column
	Created          column
	ManuallySelected column
	NoteImageVersion column
	NoteImageUUID    column
	Position         column
}

func (c noteImageBreadcrumbColumns) AsSlice() []column {
	return []column{
		c.Cell, c.Created, c.ManuallySelected, c.NoteImageVersion, c.NoteImageUUID, c.Position,
	}
}

type noteImageBreadcrumbIndexes struct {
	NoteImageBreadcrumbPkey index
}

func (i noteImageBreadcrumbIndexes) AsSlice() []index {
	return []index{
		i.NoteImageBreadcrumbPkey,
	}
}

type noteImageBreadcrumbForeignKeys struct {
	NoteImageBreadcrumbNoteImageBreadcrumbNoteImageVersionNoteImageUUIDFkey foreignKey
}

func (f noteImageBreadcrumbForeignKeys) AsSlice() []foreignKey {
	return []foreignKey{
		f.NoteImageBreadcrumbNoteImageBreadcrumbNoteImageVersionNoteImageUUIDFkey,
	}
}

type noteImageBreadcrumbUniques struct{}

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

type noteImageBreadcrumbChecks struct{}

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