// // 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/sqlite" ) var Follower = newFollowerTable("", "follower", "") type followerTable struct { sqlite.Table // Columns ID sqlite.ColumnInteger Avatar sqlite.ColumnString Nickname sqlite.ColumnString SecUID sqlite.ColumnString ShortID sqlite.ColumnString UID sqlite.ColumnString UniqueID sqlite.ColumnString ExpertUID sqlite.ColumnString Followed sqlite.ColumnInteger CreatedAt sqlite.ColumnInteger AllColumns sqlite.ColumnList MutableColumns sqlite.ColumnList } type FollowerTable struct { followerTable EXCLUDED followerTable } // AS creates new FollowerTable with assigned alias func (a FollowerTable) AS(alias string) *FollowerTable { return newFollowerTable(a.SchemaName(), a.TableName(), alias) } // Schema creates new FollowerTable with assigned schema name func (a FollowerTable) FromSchema(schemaName string) *FollowerTable { return newFollowerTable(schemaName, a.TableName(), a.Alias()) } // WithPrefix creates new FollowerTable with assigned table prefix func (a FollowerTable) WithPrefix(prefix string) *FollowerTable { return newFollowerTable(a.SchemaName(), prefix+a.TableName(), a.TableName()) } // WithSuffix creates new FollowerTable with assigned table suffix func (a FollowerTable) WithSuffix(suffix string) *FollowerTable { return newFollowerTable(a.SchemaName(), a.TableName()+suffix, a.TableName()) } func newFollowerTable(schemaName, tableName, alias string) *FollowerTable { return &FollowerTable{ followerTable: newFollowerTableImpl(schemaName, tableName, alias), EXCLUDED: newFollowerTableImpl("", "excluded", ""), } } func newFollowerTableImpl(schemaName, tableName, alias string) followerTable { var ( IDColumn = sqlite.IntegerColumn("id") AvatarColumn = sqlite.StringColumn("avatar") NicknameColumn = sqlite.StringColumn("nickname") SecUIDColumn = sqlite.StringColumn("sec_uid") ShortIDColumn = sqlite.StringColumn("short_id") UIDColumn = sqlite.StringColumn("uid") UniqueIDColumn = sqlite.StringColumn("unique_id") ExpertUIDColumn = sqlite.StringColumn("expert_uid") FollowedColumn = sqlite.IntegerColumn("followed") CreatedAtColumn = sqlite.IntegerColumn("created_at") allColumns = sqlite.ColumnList{IDColumn, AvatarColumn, NicknameColumn, SecUIDColumn, ShortIDColumn, UIDColumn, UniqueIDColumn, ExpertUIDColumn, FollowedColumn, CreatedAtColumn} mutableColumns = sqlite.ColumnList{AvatarColumn, NicknameColumn, SecUIDColumn, ShortIDColumn, UIDColumn, UniqueIDColumn, ExpertUIDColumn, FollowedColumn, CreatedAtColumn} ) return followerTable{ Table: sqlite.NewTable(schemaName, tableName, alias, allColumns...), //Columns ID: IDColumn, Avatar: AvatarColumn, Nickname: NicknameColumn, SecUID: SecUIDColumn, ShortID: ShortIDColumn, UID: UIDColumn, UniqueID: UniqueIDColumn, ExpertUID: ExpertUIDColumn, Followed: FollowedColumn, CreatedAt: CreatedAtColumn, AllColumns: allColumns, MutableColumns: mutableColumns, } }