//
// Code generated by go-jet DO NOT EDIT.
//
// WARNING: Changes to this file may cause incorrect behavior
// and will be lost if the code is regenerated
//

package table

import (
	"github.com/Gleipnir-Technology/jet/postgres"
)

var NoteImageBreadcrumb = newNoteImageBreadcrumbTable("public", "note_image_breadcrumb", "")

type noteImageBreadcrumbTable struct {
	postgres.Table

	// Columns
	Cell             postgres.ColumnString
	Created          postgres.ColumnTimestamp
	ManuallySelected postgres.ColumnBool
	NoteImageVersion postgres.ColumnInteger
	NoteImageUUID    postgres.ColumnString
	Position         postgres.ColumnInteger

	AllColumns     postgres.ColumnList
	MutableColumns postgres.ColumnList
	DefaultColumns postgres.ColumnList
}

type NoteImageBreadcrumbTable struct {
	noteImageBreadcrumbTable

	EXCLUDED noteImageBreadcrumbTable
}

// AS creates new NoteImageBreadcrumbTable with assigned alias
func (a NoteImageBreadcrumbTable) AS(alias string) *NoteImageBreadcrumbTable {
	return newNoteImageBreadcrumbTable(a.SchemaName(), a.TableName(), alias)
}

// Schema creates new NoteImageBreadcrumbTable with assigned schema name
func (a NoteImageBreadcrumbTable) FromSchema(schemaName string) *NoteImageBreadcrumbTable {
	return newNoteImageBreadcrumbTable(schemaName, a.TableName(), a.Alias())
}

// WithPrefix creates new NoteImageBreadcrumbTable with assigned table prefix
func (a NoteImageBreadcrumbTable) WithPrefix(prefix string) *NoteImageBreadcrumbTable {
	return newNoteImageBreadcrumbTable(a.SchemaName(), prefix+a.TableName(), a.TableName())
}

// WithSuffix creates new NoteImageBreadcrumbTable with assigned table suffix
func (a NoteImageBreadcrumbTable) WithSuffix(suffix string) *NoteImageBreadcrumbTable {
	return newNoteImageBreadcrumbTable(a.SchemaName(), a.TableName()+suffix, a.TableName())
}

func newNoteImageBreadcrumbTable(schemaName, tableName, alias string) *NoteImageBreadcrumbTable {
	return &NoteImageBreadcrumbTable{
		noteImageBreadcrumbTable: newNoteImageBreadcrumbTableImpl(schemaName, tableName, alias),
		EXCLUDED:                 newNoteImageBreadcrumbTableImpl("", "excluded", ""),
	}
}

func newNoteImageBreadcrumbTableImpl(schemaName, tableName, alias string) noteImageBreadcrumbTable {
	var (
		CellColumn             = postgres.StringColumn("cell")
		CreatedColumn          = postgres.TimestampColumn("created")
		ManuallySelectedColumn = postgres.BoolColumn("manually_selected")
		NoteImageVersionColumn = postgres.IntegerColumn("note_image_version")
		NoteImageUUIDColumn    = postgres.StringColumn("note_image_uuid")
		PositionColumn         = postgres.IntegerColumn("position")
		allColumns             = postgres.ColumnList{CellColumn, CreatedColumn, ManuallySelectedColumn, NoteImageVersionColumn, NoteImageUUIDColumn, PositionColumn}
		mutableColumns         = postgres.ColumnList{CellColumn, CreatedColumn, ManuallySelectedColumn}
		defaultColumns         = postgres.ColumnList{}
	)

	return noteImageBreadcrumbTable{
		Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),

		//Columns
		Cell:             CellColumn,
		Created:          CreatedColumn,
		ManuallySelected: ManuallySelectedColumn,
		NoteImageVersion: NoteImageVersionColumn,
		NoteImageUUID:    NoteImageUUIDColumn,
		Position:         PositionColumn,

		AllColumns:     allColumns,
		MutableColumns: mutableColumns,
		DefaultColumns: defaultColumns,
	}
}
