//
// 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 NoteAudioBreadcrumb = newNoteAudioBreadcrumbTable("public", "note_audio_breadcrumb", "")

type noteAudioBreadcrumbTable struct {
	postgres.Table

	// Columns
	Cell             postgres.ColumnString
	Created          postgres.ColumnTimestamp
	ManuallySelected postgres.ColumnBool
	NoteAudioVersion postgres.ColumnInteger
	NoteAudioUUID    postgres.ColumnString
	Position         postgres.ColumnInteger

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

type NoteAudioBreadcrumbTable struct {
	noteAudioBreadcrumbTable

	EXCLUDED noteAudioBreadcrumbTable
}

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

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

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

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

func newNoteAudioBreadcrumbTable(schemaName, tableName, alias string) *NoteAudioBreadcrumbTable {
	return &NoteAudioBreadcrumbTable{
		noteAudioBreadcrumbTable: newNoteAudioBreadcrumbTableImpl(schemaName, tableName, alias),
		EXCLUDED:                 newNoteAudioBreadcrumbTableImpl("", "excluded", ""),
	}
}

func newNoteAudioBreadcrumbTableImpl(schemaName, tableName, alias string) noteAudioBreadcrumbTable {
	var (
		CellColumn             = postgres.StringColumn("cell")
		CreatedColumn          = postgres.TimestampColumn("created")
		ManuallySelectedColumn = postgres.BoolColumn("manually_selected")
		NoteAudioVersionColumn = postgres.IntegerColumn("note_audio_version")
		NoteAudioUUIDColumn    = postgres.StringColumn("note_audio_uuid")
		PositionColumn         = postgres.IntegerColumn("position")
		allColumns             = postgres.ColumnList{CellColumn, CreatedColumn, ManuallySelectedColumn, NoteAudioVersionColumn, NoteAudioUUIDColumn, PositionColumn}
		mutableColumns         = postgres.ColumnList{CellColumn, CreatedColumn, ManuallySelectedColumn}
		defaultColumns         = postgres.ColumnList{}
	)

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

		//Columns
		Cell:             CellColumn,
		Created:          CreatedColumn,
		ManuallySelected: ManuallySelectedColumn,
		NoteAudioVersion: NoteAudioVersionColumn,
		NoteAudioUUID:    NoteAudioUUIDColumn,
		Position:         PositionColumn,

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