// // 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/go-jet/jet/v2/postgres" ) var RobotFriendRequests = newRobotFriendRequestsTable("backend", "robot_friend_requests", "") type robotFriendRequestsTable struct { postgres.Table // Columns ID postgres.ColumnString RequesterID postgres.ColumnString GameID postgres.ColumnString Seat postgres.ColumnInteger RobotID postgres.ColumnString DisplayName postgres.ColumnString CreatedAt postgres.ColumnTimestampz AllColumns postgres.ColumnList MutableColumns postgres.ColumnList DefaultColumns postgres.ColumnList } type RobotFriendRequestsTable struct { robotFriendRequestsTable EXCLUDED robotFriendRequestsTable } // AS creates new RobotFriendRequestsTable with assigned alias func (a RobotFriendRequestsTable) AS(alias string) *RobotFriendRequestsTable { return newRobotFriendRequestsTable(a.SchemaName(), a.TableName(), alias) } // Schema creates new RobotFriendRequestsTable with assigned schema name func (a RobotFriendRequestsTable) FromSchema(schemaName string) *RobotFriendRequestsTable { return newRobotFriendRequestsTable(schemaName, a.TableName(), a.Alias()) } // WithPrefix creates new RobotFriendRequestsTable with assigned table prefix func (a RobotFriendRequestsTable) WithPrefix(prefix string) *RobotFriendRequestsTable { return newRobotFriendRequestsTable(a.SchemaName(), prefix+a.TableName(), a.TableName()) } // WithSuffix creates new RobotFriendRequestsTable with assigned table suffix func (a RobotFriendRequestsTable) WithSuffix(suffix string) *RobotFriendRequestsTable { return newRobotFriendRequestsTable(a.SchemaName(), a.TableName()+suffix, a.TableName()) } func newRobotFriendRequestsTable(schemaName, tableName, alias string) *RobotFriendRequestsTable { return &RobotFriendRequestsTable{ robotFriendRequestsTable: newRobotFriendRequestsTableImpl(schemaName, tableName, alias), EXCLUDED: newRobotFriendRequestsTableImpl("", "excluded", ""), } } func newRobotFriendRequestsTableImpl(schemaName, tableName, alias string) robotFriendRequestsTable { var ( IDColumn = postgres.StringColumn("id") RequesterIDColumn = postgres.StringColumn("requester_id") GameIDColumn = postgres.StringColumn("game_id") SeatColumn = postgres.IntegerColumn("seat") RobotIDColumn = postgres.StringColumn("robot_id") DisplayNameColumn = postgres.StringColumn("display_name") CreatedAtColumn = postgres.TimestampzColumn("created_at") allColumns = postgres.ColumnList{IDColumn, RequesterIDColumn, GameIDColumn, SeatColumn, RobotIDColumn, DisplayNameColumn, CreatedAtColumn} mutableColumns = postgres.ColumnList{RequesterIDColumn, GameIDColumn, SeatColumn, RobotIDColumn, DisplayNameColumn, CreatedAtColumn} defaultColumns = postgres.ColumnList{CreatedAtColumn} ) return robotFriendRequestsTable{ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...), //Columns ID: IDColumn, RequesterID: RequesterIDColumn, GameID: GameIDColumn, Seat: SeatColumn, RobotID: RobotIDColumn, DisplayName: DisplayNameColumn, CreatedAt: CreatedAtColumn, AllColumns: allColumns, MutableColumns: mutableColumns, DefaultColumns: defaultColumns, } }