From b4e0ed76dd951bdcfc7abb7eb00d8bf918435b1a Mon Sep 17 00:00:00 2001 From: Hexagon Date: Wed, 27 Dec 2023 15:14:20 -0300 Subject: [PATCH] postgres: change the default schema from public to alter_pangya --- database/Dockerfile | 4 +- database/database-setup.sql | 2 + .../jooq/{Public.kt => AlterPangya.kt} | 30 +++---- .../game/persistence/jooq/DefaultCatalog.kt | 6 +- .../game/persistence/jooq/tables/Account.kt | 30 +++---- .../persistence/jooq/tables/Achievement.kt | 21 ++--- .../jooq/tables/AchievementMilestone.kt | 25 +++--- .../jooq/tables/FlywaySchemaHistory.kt | 37 ++++---- .../jooq/tables/PlayerAchievement.kt | 26 +++--- .../jooq/tables/PlayerAchievementMilestone.kt | 35 ++++---- .../persistence/jooq/tables/PlayerCaddie.kt | 27 +++--- .../jooq/tables/PlayerCharacter.kt | 41 +++++---- .../jooq/tables/PlayerEquipment.kt | 31 ++++--- .../jooq/tables/PlayerInventoryCard.kt | 26 +++--- .../jooq/tables/PlayerInventoryItem.kt | 32 +++---- .../jooq/tables/PlayerStatistics.kt | 87 ++++++++++--------- .../jooq/tables/references/Tables.kt | 24 ++--- jooq.xml | 2 +- 18 files changed, 261 insertions(+), 225 deletions(-) create mode 100644 database/database-setup.sql rename game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/{Public.kt => AlterPangya.kt} (76%) diff --git a/database/Dockerfile b/database/Dockerfile index 9188951..4005d00 100644 --- a/database/Dockerfile +++ b/database/Dockerfile @@ -2,4 +2,6 @@ FROM postgres:15 ENV POSTGRES_USER=alter_pangya ENV POSTGRES_PASSWORD=alter_pangya -ENV POSTGRES_DB=alter_pangya \ No newline at end of file +ENV POSTGRES_DB=alter_pangya + +COPY database-setup.sql /docker-entrypoint-initdb.d/ \ No newline at end of file diff --git a/database/database-setup.sql b/database/database-setup.sql new file mode 100644 index 0000000..ef963a5 --- /dev/null +++ b/database/database-setup.sql @@ -0,0 +1,2 @@ +CREATE SCHEMA alter_pangya; +ALTER DATABASE alter_pangya SET SEARCH_PATH to alter_pangya; \ No newline at end of file diff --git a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/Public.kt b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/AlterPangya.kt similarity index 76% rename from game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/Public.kt rename to game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/AlterPangya.kt index 32b3c5b..fefe013 100644 --- a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/Public.kt +++ b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/AlterPangya.kt @@ -28,72 +28,72 @@ import work.fking.pangya.game.persistence.jooq.tables.PlayerStatistics * This class is generated by jOOQ. */ @Suppress("UNCHECKED_CAST") -open class Public : SchemaImpl("public", DefaultCatalog.DEFAULT_CATALOG) { +open class AlterPangya : SchemaImpl("alter_pangya", DefaultCatalog.DEFAULT_CATALOG) { public companion object { /** - * The reference instance of public + * The reference instance of alter_pangya */ - val PUBLIC: Public = Public() + val ALTER_PANGYA: AlterPangya = AlterPangya() } /** - * The table public.account. + * The table alter_pangya.account. */ val ACCOUNT: Account get() = Account.ACCOUNT /** - * The table public.achievement. + * The table alter_pangya.achievement. */ val ACHIEVEMENT: Achievement get() = Achievement.ACHIEVEMENT /** - * The table public.achievement_milestone. + * The table alter_pangya.achievement_milestone. */ val ACHIEVEMENT_MILESTONE: AchievementMilestone get() = AchievementMilestone.ACHIEVEMENT_MILESTONE /** - * The table public.flyway_schema_history. + * The table alter_pangya.flyway_schema_history. */ val FLYWAY_SCHEMA_HISTORY: FlywaySchemaHistory get() = FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY /** - * The table public.player_achievement. + * The table alter_pangya.player_achievement. */ val PLAYER_ACHIEVEMENT: PlayerAchievement get() = PlayerAchievement.PLAYER_ACHIEVEMENT /** - * The table public.player_achievement_milestone. + * The table alter_pangya.player_achievement_milestone. */ val PLAYER_ACHIEVEMENT_MILESTONE: PlayerAchievementMilestone get() = PlayerAchievementMilestone.PLAYER_ACHIEVEMENT_MILESTONE /** - * The table public.player_caddie. + * The table alter_pangya.player_caddie. */ val PLAYER_CADDIE: PlayerCaddie get() = PlayerCaddie.PLAYER_CADDIE /** - * The table public.player_character. + * The table alter_pangya.player_character. */ val PLAYER_CHARACTER: PlayerCharacter get() = PlayerCharacter.PLAYER_CHARACTER /** - * The table public.player_equipment. + * The table alter_pangya.player_equipment. */ val PLAYER_EQUIPMENT: PlayerEquipment get() = PlayerEquipment.PLAYER_EQUIPMENT /** - * The table public.player_inventory_card. + * The table alter_pangya.player_inventory_card. */ val PLAYER_INVENTORY_CARD: PlayerInventoryCard get() = PlayerInventoryCard.PLAYER_INVENTORY_CARD /** - * The table public.player_inventory_item. + * The table alter_pangya.player_inventory_item. */ val PLAYER_INVENTORY_ITEM: PlayerInventoryItem get() = PlayerInventoryItem.PLAYER_INVENTORY_ITEM /** - * The table public.player_statistics. + * The table alter_pangya.player_statistics. */ val PLAYER_STATISTICS: PlayerStatistics get() = PlayerStatistics.PLAYER_STATISTICS diff --git a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/DefaultCatalog.kt b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/DefaultCatalog.kt index a363fa7..0b313c7 100644 --- a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/DefaultCatalog.kt +++ b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/DefaultCatalog.kt @@ -25,12 +25,12 @@ open class DefaultCatalog : CatalogImpl("") { } /** - * The schema public. + * The schema alter_pangya. */ - val PUBLIC: Public get(): Public = Public.PUBLIC + val ALTER_PANGYA: AlterPangya get(): AlterPangya = AlterPangya.ALTER_PANGYA override fun getSchemas(): List = listOf( - Public.PUBLIC + AlterPangya.ALTER_PANGYA ) /** diff --git a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/Account.kt b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/Account.kt index 3cc9951..a301116 100644 --- a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/Account.kt +++ b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/Account.kt @@ -28,7 +28,7 @@ import org.jooq.impl.Internal import org.jooq.impl.SQLDataType import org.jooq.impl.TableImpl -import work.fking.pangya.game.persistence.jooq.Public +import work.fking.pangya.game.persistence.jooq.AlterPangya import work.fking.pangya.game.persistence.jooq.indexes.IDX__ACCOUNT_NICKNAME import work.fking.pangya.game.persistence.jooq.indexes.IDX__ACCOUNT_USERNAME import work.fking.pangya.game.persistence.jooq.indexes.IDX__ACCOUNT_UUID @@ -48,7 +48,7 @@ open class Account( parameters: Array?>? ): TableImpl( alias, - Public.PUBLIC, + AlterPangya.ALTER_PANGYA, child, path, aliased, @@ -59,7 +59,7 @@ open class Account( companion object { /** - * The reference instance of public.account + * The reference instance of alter_pangya.account */ val ACCOUNT: Account = Account() } @@ -70,42 +70,42 @@ open class Account( override fun getRecordType(): Class = AccountRecord::class.java /** - * The column public.account.uid. + * The column alter_pangya.account.uid. */ val UID: TableField = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false).identity(true), this, "") /** - * The column public.account.uuid. + * The column alter_pangya.account.uuid. */ val UUID: TableField = createField(DSL.name("uuid"), SQLDataType.UUID.nullable(false), this, "") /** - * The column public.account.username. + * The column alter_pangya.account.username. */ val USERNAME: TableField = createField(DSL.name("username"), SQLDataType.CLOB.nullable(false), this, "") /** - * The column public.account.nickname. + * The column alter_pangya.account.nickname. */ val NICKNAME: TableField = createField(DSL.name("nickname"), SQLDataType.CLOB, this, "") /** - * The column public.account.password. + * The column alter_pangya.account.password. */ val PASSWORD: TableField = createField(DSL.name("password"), SQLDataType.BLOB.nullable(false), this, "") /** - * The column public.account.pang_balance. + * The column alter_pangya.account.pang_balance. */ val PANG_BALANCE: TableField = createField(DSL.name("pang_balance"), SQLDataType.BIGINT.nullable(false), this, "") /** - * The column public.account.cookie_balance. + * The column alter_pangya.account.cookie_balance. */ val COOKIE_BALANCE: TableField = createField(DSL.name("cookie_balance"), SQLDataType.BIGINT.nullable(false), this, "") /** - * The column public.account.created_at. + * The column alter_pangya.account.created_at. */ val CREATED_AT: TableField = createField(DSL.name("created_at"), SQLDataType.TIMESTAMPWITHTIMEZONE(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMPWITHTIMEZONE)), this, "") @@ -113,22 +113,22 @@ open class Account( private constructor(alias: Name, aliased: Table?, parameters: Array?>?): this(alias, null, null, aliased, parameters) /** - * Create an aliased public.account table reference + * Create an aliased alter_pangya.account table reference */ constructor(alias: String): this(DSL.name(alias)) /** - * Create an aliased public.account table reference + * Create an aliased alter_pangya.account table reference */ constructor(alias: Name): this(alias, null) /** - * Create a public.account table reference + * Create a alter_pangya.account table reference */ constructor(): this(DSL.name("account"), null) constructor(child: Table, key: ForeignKey): this(Internal.createPathAlias(child, key), child, key, ACCOUNT, null) - override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC + override fun getSchema(): Schema? = if (aliased()) null else AlterPangya.ALTER_PANGYA override fun getIndexes(): List = listOf(IDX__ACCOUNT_NICKNAME, IDX__ACCOUNT_USERNAME, IDX__ACCOUNT_UUID) override fun getIdentity(): Identity = super.getIdentity() as Identity override fun getPrimaryKey(): UniqueKey = ACCOUNT_PKEY diff --git a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/Achievement.kt b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/Achievement.kt index bf063ff..46d0878 100644 --- a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/Achievement.kt +++ b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/Achievement.kt @@ -23,7 +23,7 @@ import org.jooq.impl.Internal import org.jooq.impl.SQLDataType import org.jooq.impl.TableImpl -import work.fking.pangya.game.persistence.jooq.Public +import work.fking.pangya.game.persistence.jooq.AlterPangya import work.fking.pangya.game.persistence.jooq.keys.ACHIEVEMENT_PKEY import work.fking.pangya.game.persistence.jooq.tables.records.AchievementRecord @@ -40,7 +40,7 @@ open class Achievement( parameters: Array?>? ): TableImpl( alias, - Public.PUBLIC, + AlterPangya.ALTER_PANGYA, child, path, aliased, @@ -51,7 +51,7 @@ open class Achievement( companion object { /** - * The reference instance of public.achievement + * The reference instance of alter_pangya.achievement */ val ACHIEVEMENT: Achievement = Achievement() } @@ -62,17 +62,18 @@ open class Achievement( override fun getRecordType(): Class = AchievementRecord::class.java /** - * The column public.achievement.iff_id. + * The column alter_pangya.achievement.iff_id. */ val IFF_ID: TableField = createField(DSL.name("iff_id"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.achievement.completed_with_milestone. + * The column + * alter_pangya.achievement.completed_with_milestone. */ val COMPLETED_WITH_MILESTONE: TableField = createField(DSL.name("completed_with_milestone"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.achievement.category. + * The column alter_pangya.achievement.category. */ val CATEGORY: TableField = createField(DSL.name("category"), SQLDataType.INTEGER.nullable(false), this, "") @@ -80,22 +81,22 @@ open class Achievement( private constructor(alias: Name, aliased: Table?, parameters: Array?>?): this(alias, null, null, aliased, parameters) /** - * Create an aliased public.achievement table reference + * Create an aliased alter_pangya.achievement table reference */ constructor(alias: String): this(DSL.name(alias)) /** - * Create an aliased public.achievement table reference + * Create an aliased alter_pangya.achievement table reference */ constructor(alias: Name): this(alias, null) /** - * Create a public.achievement table reference + * Create a alter_pangya.achievement table reference */ constructor(): this(DSL.name("achievement"), null) constructor(child: Table, key: ForeignKey): this(Internal.createPathAlias(child, key), child, key, ACHIEVEMENT, null) - override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC + override fun getSchema(): Schema? = if (aliased()) null else AlterPangya.ALTER_PANGYA override fun getPrimaryKey(): UniqueKey = ACHIEVEMENT_PKEY override fun `as`(alias: String): Achievement = Achievement(DSL.name(alias), this) override fun `as`(alias: Name): Achievement = Achievement(alias, this) diff --git a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/AchievementMilestone.kt b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/AchievementMilestone.kt index ab31d52..b3b6dce 100644 --- a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/AchievementMilestone.kt +++ b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/AchievementMilestone.kt @@ -25,7 +25,7 @@ import org.jooq.impl.Internal import org.jooq.impl.SQLDataType import org.jooq.impl.TableImpl -import work.fking.pangya.game.persistence.jooq.Public +import work.fking.pangya.game.persistence.jooq.AlterPangya import work.fking.pangya.game.persistence.jooq.keys.ACHIEVEMENT_MILESTONE_PKEY import work.fking.pangya.game.persistence.jooq.keys.ACHIEVEMENT_MILESTONE__FK__ACHIEVEMENT_MILESTONE import work.fking.pangya.game.persistence.jooq.tables.records.AchievementMilestoneRecord @@ -43,7 +43,7 @@ open class AchievementMilestone( parameters: Array?>? ): TableImpl( alias, - Public.PUBLIC, + AlterPangya.ALTER_PANGYA, child, path, aliased, @@ -54,7 +54,8 @@ open class AchievementMilestone( companion object { /** - * The reference instance of public.achievement_milestone + * The reference instance of + * alter_pangya.achievement_milestone */ val ACHIEVEMENT_MILESTONE: AchievementMilestone = AchievementMilestone() } @@ -65,17 +66,18 @@ open class AchievementMilestone( override fun getRecordType(): Class = AchievementMilestoneRecord::class.java /** - * The column public.achievement_milestone.iff_id. + * The column alter_pangya.achievement_milestone.iff_id. */ val IFF_ID: TableField = createField(DSL.name("iff_id"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.achievement_milestone.achievement_iff_id. + * The column + * alter_pangya.achievement_milestone.achievement_iff_id. */ val ACHIEVEMENT_IFF_ID: TableField = createField(DSL.name("achievement_iff_id"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.achievement_milestone.name. + * The column alter_pangya.achievement_milestone.name. */ val NAME: TableField = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "") @@ -83,31 +85,32 @@ open class AchievementMilestone( private constructor(alias: Name, aliased: Table?, parameters: Array?>?): this(alias, null, null, aliased, parameters) /** - * Create an aliased public.achievement_milestone table + * Create an aliased alter_pangya.achievement_milestone table * reference */ constructor(alias: String): this(DSL.name(alias)) /** - * Create an aliased public.achievement_milestone table + * Create an aliased alter_pangya.achievement_milestone table * reference */ constructor(alias: Name): this(alias, null) /** - * Create a public.achievement_milestone table reference + * Create a alter_pangya.achievement_milestone table reference */ constructor(): this(DSL.name("achievement_milestone"), null) constructor(child: Table, key: ForeignKey): this(Internal.createPathAlias(child, key), child, key, ACHIEVEMENT_MILESTONE, null) - override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC + override fun getSchema(): Schema? = if (aliased()) null else AlterPangya.ALTER_PANGYA override fun getPrimaryKey(): UniqueKey = ACHIEVEMENT_MILESTONE_PKEY override fun getReferences(): List> = listOf(ACHIEVEMENT_MILESTONE__FK__ACHIEVEMENT_MILESTONE) private lateinit var _achievement: Achievement /** - * Get the implicit join path to the public.achievement table. + * Get the implicit join path to the alter_pangya.achievement + * table. */ fun achievement(): Achievement { if (!this::_achievement.isInitialized) diff --git a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/FlywaySchemaHistory.kt b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/FlywaySchemaHistory.kt index 16c0b60..4652760 100644 --- a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/FlywaySchemaHistory.kt +++ b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/FlywaySchemaHistory.kt @@ -27,7 +27,7 @@ import org.jooq.impl.Internal import org.jooq.impl.SQLDataType import org.jooq.impl.TableImpl -import work.fking.pangya.game.persistence.jooq.Public +import work.fking.pangya.game.persistence.jooq.AlterPangya import work.fking.pangya.game.persistence.jooq.indexes.FLYWAY_SCHEMA_HISTORY_S_IDX import work.fking.pangya.game.persistence.jooq.keys.FLYWAY_SCHEMA_HISTORY_PK import work.fking.pangya.game.persistence.jooq.tables.records.FlywaySchemaHistoryRecord @@ -45,7 +45,7 @@ open class FlywaySchemaHistory( parameters: Array?>? ): TableImpl( alias, - Public.PUBLIC, + AlterPangya.ALTER_PANGYA, child, path, aliased, @@ -56,7 +56,8 @@ open class FlywaySchemaHistory( companion object { /** - * The reference instance of public.flyway_schema_history + * The reference instance of + * alter_pangya.flyway_schema_history */ val FLYWAY_SCHEMA_HISTORY: FlywaySchemaHistory = FlywaySchemaHistory() } @@ -67,52 +68,54 @@ open class FlywaySchemaHistory( override fun getRecordType(): Class = FlywaySchemaHistoryRecord::class.java /** - * The column public.flyway_schema_history.installed_rank. + * The column + * alter_pangya.flyway_schema_history.installed_rank. */ val INSTALLED_RANK: TableField = createField(DSL.name("installed_rank"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.flyway_schema_history.version. + * The column alter_pangya.flyway_schema_history.version. */ val VERSION: TableField = createField(DSL.name("version"), SQLDataType.VARCHAR(50), this, "") /** - * The column public.flyway_schema_history.description. + * The column alter_pangya.flyway_schema_history.description. */ val DESCRIPTION: TableField = createField(DSL.name("description"), SQLDataType.VARCHAR(200).nullable(false), this, "") /** - * The column public.flyway_schema_history.type. + * The column alter_pangya.flyway_schema_history.type. */ val TYPE: TableField = createField(DSL.name("type"), SQLDataType.VARCHAR(20).nullable(false), this, "") /** - * The column public.flyway_schema_history.script. + * The column alter_pangya.flyway_schema_history.script. */ val SCRIPT: TableField = createField(DSL.name("script"), SQLDataType.VARCHAR(1000).nullable(false), this, "") /** - * The column public.flyway_schema_history.checksum. + * The column alter_pangya.flyway_schema_history.checksum. */ val CHECKSUM: TableField = createField(DSL.name("checksum"), SQLDataType.INTEGER, this, "") /** - * The column public.flyway_schema_history.installed_by. + * The column alter_pangya.flyway_schema_history.installed_by. */ val INSTALLED_BY: TableField = createField(DSL.name("installed_by"), SQLDataType.VARCHAR(100).nullable(false), this, "") /** - * The column public.flyway_schema_history.installed_on. + * The column alter_pangya.flyway_schema_history.installed_on. */ val INSTALLED_ON: TableField = createField(DSL.name("installed_on"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "") /** - * The column public.flyway_schema_history.execution_time. + * The column + * alter_pangya.flyway_schema_history.execution_time. */ val EXECUTION_TIME: TableField = createField(DSL.name("execution_time"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.flyway_schema_history.success. + * The column alter_pangya.flyway_schema_history.success. */ val SUCCESS: TableField = createField(DSL.name("success"), SQLDataType.BOOLEAN.nullable(false), this, "") @@ -120,24 +123,24 @@ open class FlywaySchemaHistory( private constructor(alias: Name, aliased: Table?, parameters: Array?>?): this(alias, null, null, aliased, parameters) /** - * Create an aliased public.flyway_schema_history table + * Create an aliased alter_pangya.flyway_schema_history table * reference */ constructor(alias: String): this(DSL.name(alias)) /** - * Create an aliased public.flyway_schema_history table + * Create an aliased alter_pangya.flyway_schema_history table * reference */ constructor(alias: Name): this(alias, null) /** - * Create a public.flyway_schema_history table reference + * Create a alter_pangya.flyway_schema_history table reference */ constructor(): this(DSL.name("flyway_schema_history"), null) constructor(child: Table, key: ForeignKey): this(Internal.createPathAlias(child, key), child, key, FLYWAY_SCHEMA_HISTORY, null) - override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC + override fun getSchema(): Schema? = if (aliased()) null else AlterPangya.ALTER_PANGYA override fun getIndexes(): List = listOf(FLYWAY_SCHEMA_HISTORY_S_IDX) override fun getPrimaryKey(): UniqueKey = FLYWAY_SCHEMA_HISTORY_PK override fun `as`(alias: String): FlywaySchemaHistory = FlywaySchemaHistory(DSL.name(alias), this) diff --git a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerAchievement.kt b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerAchievement.kt index bef4c1f..746f678 100644 --- a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerAchievement.kt +++ b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerAchievement.kt @@ -27,7 +27,7 @@ import org.jooq.impl.Internal import org.jooq.impl.SQLDataType import org.jooq.impl.TableImpl -import work.fking.pangya.game.persistence.jooq.Public +import work.fking.pangya.game.persistence.jooq.AlterPangya import work.fking.pangya.game.persistence.jooq.indexes.IDX_PLAYER_ACHIEVEMENT import work.fking.pangya.game.persistence.jooq.keys.PLAYER_ACHIEVEMENT_PKEY import work.fking.pangya.game.persistence.jooq.keys.PLAYER_ACHIEVEMENT__FK_PLAYER_ACHIEVEMENT__ACCOUNT @@ -46,7 +46,7 @@ open class PlayerAchievement( parameters: Array?>? ): TableImpl( alias, - Public.PUBLIC, + AlterPangya.ALTER_PANGYA, child, path, aliased, @@ -57,7 +57,8 @@ open class PlayerAchievement( companion object { /** - * The reference instance of public.player_achievement + * The reference instance of + * alter_pangya.player_achievement */ val PLAYER_ACHIEVEMENT: PlayerAchievement = PlayerAchievement() } @@ -68,17 +69,17 @@ open class PlayerAchievement( override fun getRecordType(): Class = PlayerAchievementRecord::class.java /** - * The column public.player_achievement.uid. + * The column alter_pangya.player_achievement.uid. */ val UID: TableField = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false).identity(true), this, "") /** - * The column public.player_achievement.account_uid. + * The column alter_pangya.player_achievement.account_uid. */ val ACCOUNT_UID: TableField = createField(DSL.name("account_uid"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_achievement.iff_id. + * The column alter_pangya.player_achievement.iff_id. */ val IFF_ID: TableField = createField(DSL.name("iff_id"), SQLDataType.INTEGER.nullable(false), this, "") @@ -86,22 +87,24 @@ open class PlayerAchievement( private constructor(alias: Name, aliased: Table?, parameters: Array?>?): this(alias, null, null, aliased, parameters) /** - * Create an aliased public.player_achievement table reference + * Create an aliased alter_pangya.player_achievement table + * reference */ constructor(alias: String): this(DSL.name(alias)) /** - * Create an aliased public.player_achievement table reference + * Create an aliased alter_pangya.player_achievement table + * reference */ constructor(alias: Name): this(alias, null) /** - * Create a public.player_achievement table reference + * Create a alter_pangya.player_achievement table reference */ constructor(): this(DSL.name("player_achievement"), null) constructor(child: Table, key: ForeignKey): this(Internal.createPathAlias(child, key), child, key, PLAYER_ACHIEVEMENT, null) - override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC + override fun getSchema(): Schema? = if (aliased()) null else AlterPangya.ALTER_PANGYA override fun getIndexes(): List = listOf(IDX_PLAYER_ACHIEVEMENT) override fun getIdentity(): Identity = super.getIdentity() as Identity override fun getPrimaryKey(): UniqueKey = PLAYER_ACHIEVEMENT_PKEY @@ -110,7 +113,8 @@ open class PlayerAchievement( private lateinit var _account: Account /** - * Get the implicit join path to the public.account table. + * Get the implicit join path to the alter_pangya.account + * table. */ fun account(): Account { if (!this::_account.isInitialized) diff --git a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerAchievementMilestone.kt b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerAchievementMilestone.kt index 068f844..5e2cc48 100644 --- a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerAchievementMilestone.kt +++ b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerAchievementMilestone.kt @@ -28,7 +28,7 @@ import org.jooq.impl.Internal import org.jooq.impl.SQLDataType import org.jooq.impl.TableImpl -import work.fking.pangya.game.persistence.jooq.Public +import work.fking.pangya.game.persistence.jooq.AlterPangya import work.fking.pangya.game.persistence.jooq.indexes.IDX_PLAYER_ACHIEVEMENT_MILESTONE import work.fking.pangya.game.persistence.jooq.keys.PLAYER_ACHIEVEMENT_MILESTONE_PKEY import work.fking.pangya.game.persistence.jooq.keys.PLAYER_ACHIEVEMENT_MILESTONE__FK_PLAYER_ACHIEVEMENT_MILESTONE__PLAYER_ACHIEVEMENT @@ -47,7 +47,7 @@ open class PlayerAchievementMilestone( parameters: Array?>? ): TableImpl( alias, - Public.PUBLIC, + AlterPangya.ALTER_PANGYA, child, path, aliased, @@ -59,7 +59,7 @@ open class PlayerAchievementMilestone( /** * The reference instance of - * public.player_achievement_milestone + * alter_pangya.player_achievement_milestone */ val PLAYER_ACHIEVEMENT_MILESTONE: PlayerAchievementMilestone = PlayerAchievementMilestone() } @@ -70,28 +70,30 @@ open class PlayerAchievementMilestone( override fun getRecordType(): Class = PlayerAchievementMilestoneRecord::class.java /** - * The column public.player_achievement_milestone.uid. + * The column alter_pangya.player_achievement_milestone.uid. */ val UID: TableField = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false).identity(true), this, "") /** * The column - * public.player_achievement_milestone.player_achievement_uid. + * alter_pangya.player_achievement_milestone.player_achievement_uid. */ val PLAYER_ACHIEVEMENT_UID: TableField = createField(DSL.name("player_achievement_uid"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_achievement_milestone.iff_id. + * The column alter_pangya.player_achievement_milestone.iff_id. */ val IFF_ID: TableField = createField(DSL.name("iff_id"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_achievement_milestone.progress. + * The column + * alter_pangya.player_achievement_milestone.progress. */ val PROGRESS: TableField = createField(DSL.name("progress"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, "") /** - * The column public.player_achievement_milestone.completed_at. + * The column + * alter_pangya.player_achievement_milestone.completed_at. */ val COMPLETED_AT: TableField = createField(DSL.name("completed_at"), SQLDataType.TIMESTAMPWITHTIMEZONE(6), this, "") @@ -99,24 +101,25 @@ open class PlayerAchievementMilestone( private constructor(alias: Name, aliased: Table?, parameters: Array?>?): this(alias, null, null, aliased, parameters) /** - * Create an aliased public.player_achievement_milestone table - * reference + * Create an aliased alter_pangya.player_achievement_milestone + * table reference */ constructor(alias: String): this(DSL.name(alias)) /** - * Create an aliased public.player_achievement_milestone table - * reference + * Create an aliased alter_pangya.player_achievement_milestone + * table reference */ constructor(alias: Name): this(alias, null) /** - * Create a public.player_achievement_milestone table reference + * Create a alter_pangya.player_achievement_milestone table + * reference */ constructor(): this(DSL.name("player_achievement_milestone"), null) constructor(child: Table, key: ForeignKey): this(Internal.createPathAlias(child, key), child, key, PLAYER_ACHIEVEMENT_MILESTONE, null) - override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC + override fun getSchema(): Schema? = if (aliased()) null else AlterPangya.ALTER_PANGYA override fun getIndexes(): List = listOf(IDX_PLAYER_ACHIEVEMENT_MILESTONE) override fun getIdentity(): Identity = super.getIdentity() as Identity override fun getPrimaryKey(): UniqueKey = PLAYER_ACHIEVEMENT_MILESTONE_PKEY @@ -125,8 +128,8 @@ open class PlayerAchievementMilestone( private lateinit var _playerAchievement: PlayerAchievement /** - * Get the implicit join path to the public.player_achievement - * table. + * Get the implicit join path to the + * alter_pangya.player_achievement table. */ fun playerAchievement(): PlayerAchievement { if (!this::_playerAchievement.isInitialized) diff --git a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerCaddie.kt b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerCaddie.kt index 6c4e2d8..aa4bc23 100644 --- a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerCaddie.kt +++ b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerCaddie.kt @@ -27,7 +27,7 @@ import org.jooq.impl.Internal import org.jooq.impl.SQLDataType import org.jooq.impl.TableImpl -import work.fking.pangya.game.persistence.jooq.Public +import work.fking.pangya.game.persistence.jooq.AlterPangya import work.fking.pangya.game.persistence.jooq.indexes.IDX_PLAYER_CADDIE import work.fking.pangya.game.persistence.jooq.keys.PLAYER_CADDIE_PKEY import work.fking.pangya.game.persistence.jooq.keys.PLAYER_CADDIE__FK_PLAYER_CADDIE__ACCOUNT @@ -46,7 +46,7 @@ open class PlayerCaddie( parameters: Array?>? ): TableImpl( alias, - Public.PUBLIC, + AlterPangya.ALTER_PANGYA, child, path, aliased, @@ -57,7 +57,7 @@ open class PlayerCaddie( companion object { /** - * The reference instance of public.player_caddie + * The reference instance of alter_pangya.player_caddie */ val PLAYER_CADDIE: PlayerCaddie = PlayerCaddie() } @@ -68,27 +68,27 @@ open class PlayerCaddie( override fun getRecordType(): Class = PlayerCaddieRecord::class.java /** - * The column public.player_caddie.uid. + * The column alter_pangya.player_caddie.uid. */ val UID: TableField = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false).identity(true), this, "") /** - * The column public.player_caddie.account_uid. + * The column alter_pangya.player_caddie.account_uid. */ val ACCOUNT_UID: TableField = createField(DSL.name("account_uid"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_caddie.iff_id. + * The column alter_pangya.player_caddie.iff_id. */ val IFF_ID: TableField = createField(DSL.name("iff_id"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_caddie.level. + * The column alter_pangya.player_caddie.level. */ val LEVEL: TableField = createField(DSL.name("level"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_caddie.experience. + * The column alter_pangya.player_caddie.experience. */ val EXPERIENCE: TableField = createField(DSL.name("experience"), SQLDataType.INTEGER.nullable(false), this, "") @@ -96,22 +96,22 @@ open class PlayerCaddie( private constructor(alias: Name, aliased: Table?, parameters: Array?>?): this(alias, null, null, aliased, parameters) /** - * Create an aliased public.player_caddie table reference + * Create an aliased alter_pangya.player_caddie table reference */ constructor(alias: String): this(DSL.name(alias)) /** - * Create an aliased public.player_caddie table reference + * Create an aliased alter_pangya.player_caddie table reference */ constructor(alias: Name): this(alias, null) /** - * Create a public.player_caddie table reference + * Create a alter_pangya.player_caddie table reference */ constructor(): this(DSL.name("player_caddie"), null) constructor(child: Table, key: ForeignKey): this(Internal.createPathAlias(child, key), child, key, PLAYER_CADDIE, null) - override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC + override fun getSchema(): Schema? = if (aliased()) null else AlterPangya.ALTER_PANGYA override fun getIndexes(): List = listOf(IDX_PLAYER_CADDIE) override fun getIdentity(): Identity = super.getIdentity() as Identity override fun getPrimaryKey(): UniqueKey = PLAYER_CADDIE_PKEY @@ -120,7 +120,8 @@ open class PlayerCaddie( private lateinit var _account: Account /** - * Get the implicit join path to the public.account table. + * Get the implicit join path to the alter_pangya.account + * table. */ fun account(): Account { if (!this::_account.isInitialized) diff --git a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerCharacter.kt b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerCharacter.kt index 28c6c06..d490897 100644 --- a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerCharacter.kt +++ b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerCharacter.kt @@ -28,7 +28,7 @@ import org.jooq.impl.SQLDataType import org.jooq.impl.TableImpl import org.jooq.jackson.extensions.converters.JSONtoJacksonConverter -import work.fking.pangya.game.persistence.jooq.Public +import work.fking.pangya.game.persistence.jooq.AlterPangya import work.fking.pangya.game.persistence.jooq.indexes.IDX_PLAYER_CHARACTER import work.fking.pangya.game.persistence.jooq.keys.PLAYER_CHARACTER_PKEY import work.fking.pangya.game.persistence.jooq.keys.PLAYER_CHARACTER__FK_PLAYER_CHARACTER__ACCOUNT @@ -47,7 +47,7 @@ open class PlayerCharacter( parameters: Array?>? ): TableImpl( alias, - Public.PUBLIC, + AlterPangya.ALTER_PANGYA, child, path, aliased, @@ -58,7 +58,7 @@ open class PlayerCharacter( companion object { /** - * The reference instance of public.player_character + * The reference instance of alter_pangya.player_character */ val PLAYER_CHARACTER: PlayerCharacter = PlayerCharacter() } @@ -69,57 +69,57 @@ open class PlayerCharacter( override fun getRecordType(): Class = PlayerCharacterRecord::class.java /** - * The column public.player_character.uid. + * The column alter_pangya.player_character.uid. */ val UID: TableField = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false).identity(true), this, "") /** - * The column public.player_character.account_uid. + * The column alter_pangya.player_character.account_uid. */ val ACCOUNT_UID: TableField = createField(DSL.name("account_uid"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_character.iff_id. + * The column alter_pangya.player_character.iff_id. */ val IFF_ID: TableField = createField(DSL.name("iff_id"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_character.hair_color. + * The column alter_pangya.player_character.hair_color. */ val HAIR_COLOR: TableField = createField(DSL.name("hair_color"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_character.part_iff_ids. + * The column alter_pangya.player_character.part_iff_ids. */ val PART_IFF_IDS: TableField = createField(DSL.name("part_iff_ids"), SQLDataType.JSON.nullable(false), this, "", JSONtoJacksonConverter(IntArray::class.java)) /** - * The column public.player_character.part_uids. + * The column alter_pangya.player_character.part_uids. */ val PART_UIDS: TableField = createField(DSL.name("part_uids"), SQLDataType.JSON.nullable(false), this, "", JSONtoJacksonConverter(IntArray::class.java)) /** - * The column public.player_character.aux_parts. + * The column alter_pangya.player_character.aux_parts. */ val AUX_PARTS: TableField = createField(DSL.name("aux_parts"), SQLDataType.JSON.nullable(false), this, "", JSONtoJacksonConverter(IntArray::class.java)) /** - * The column public.player_character.cutin_iff_id. + * The column alter_pangya.player_character.cutin_iff_id. */ val CUTIN_IFF_ID: TableField = createField(DSL.name("cutin_iff_id"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_character.stats. + * The column alter_pangya.player_character.stats. */ val STATS: TableField = createField(DSL.name("stats"), SQLDataType.JSON.nullable(false), this, "", JSONtoJacksonConverter(IntArray::class.java)) /** - * The column public.player_character.mastery. + * The column alter_pangya.player_character.mastery. */ val MASTERY: TableField = createField(DSL.name("mastery"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_character.cards. + * The column alter_pangya.player_character.cards. */ val CARDS: TableField = createField(DSL.name("cards"), SQLDataType.JSON.nullable(false), this, "", JSONtoJacksonConverter(IntArray::class.java)) @@ -127,22 +127,24 @@ open class PlayerCharacter( private constructor(alias: Name, aliased: Table?, parameters: Array?>?): this(alias, null, null, aliased, parameters) /** - * Create an aliased public.player_character table reference + * Create an aliased alter_pangya.player_character table + * reference */ constructor(alias: String): this(DSL.name(alias)) /** - * Create an aliased public.player_character table reference + * Create an aliased alter_pangya.player_character table + * reference */ constructor(alias: Name): this(alias, null) /** - * Create a public.player_character table reference + * Create a alter_pangya.player_character table reference */ constructor(): this(DSL.name("player_character"), null) constructor(child: Table, key: ForeignKey): this(Internal.createPathAlias(child, key), child, key, PLAYER_CHARACTER, null) - override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC + override fun getSchema(): Schema? = if (aliased()) null else AlterPangya.ALTER_PANGYA override fun getIndexes(): List = listOf(IDX_PLAYER_CHARACTER) override fun getIdentity(): Identity = super.getIdentity() as Identity override fun getPrimaryKey(): UniqueKey = PLAYER_CHARACTER_PKEY @@ -151,7 +153,8 @@ open class PlayerCharacter( private lateinit var _account: Account /** - * Get the implicit join path to the public.account table. + * Get the implicit join path to the alter_pangya.account + * table. */ fun account(): Account { if (!this::_account.isInitialized) diff --git a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerEquipment.kt b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerEquipment.kt index 275900f..88e35cc 100644 --- a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerEquipment.kt +++ b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerEquipment.kt @@ -26,7 +26,7 @@ import org.jooq.impl.SQLDataType import org.jooq.impl.TableImpl import org.jooq.jackson.extensions.converters.JSONtoJacksonConverter -import work.fking.pangya.game.persistence.jooq.Public +import work.fking.pangya.game.persistence.jooq.AlterPangya import work.fking.pangya.game.persistence.jooq.keys.PLAYER_EQUIPMENT_PKEY import work.fking.pangya.game.persistence.jooq.keys.PLAYER_EQUIPMENT__FK_PLAYER_STATISTICS__ACCOUNT import work.fking.pangya.game.persistence.jooq.tables.records.PlayerEquipmentRecord @@ -44,7 +44,7 @@ open class PlayerEquipment( parameters: Array?>? ): TableImpl( alias, - Public.PUBLIC, + AlterPangya.ALTER_PANGYA, child, path, aliased, @@ -55,7 +55,7 @@ open class PlayerEquipment( companion object { /** - * The reference instance of public.player_equipment + * The reference instance of alter_pangya.player_equipment */ val PLAYER_EQUIPMENT: PlayerEquipment = PlayerEquipment() } @@ -66,32 +66,32 @@ open class PlayerEquipment( override fun getRecordType(): Class = PlayerEquipmentRecord::class.java /** - * The column public.player_equipment.account_uid. + * The column alter_pangya.player_equipment.account_uid. */ val ACCOUNT_UID: TableField = createField(DSL.name("account_uid"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_equipment.item_iff_ids. + * The column alter_pangya.player_equipment.item_iff_ids. */ val ITEM_IFF_IDS: TableField = createField(DSL.name("item_iff_ids"), SQLDataType.JSON.nullable(false), this, "", JSONtoJacksonConverter(IntArray::class.java)) /** - * The column public.player_equipment.character_uid. + * The column alter_pangya.player_equipment.character_uid. */ val CHARACTER_UID: TableField = createField(DSL.name("character_uid"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_equipment.caddie_uid. + * The column alter_pangya.player_equipment.caddie_uid. */ val CADDIE_UID: TableField = createField(DSL.name("caddie_uid"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_equipment.club_set_uid. + * The column alter_pangya.player_equipment.club_set_uid. */ val CLUB_SET_UID: TableField = createField(DSL.name("club_set_uid"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_equipment.comet_iff_id. + * The column alter_pangya.player_equipment.comet_iff_id. */ val COMET_IFF_ID: TableField = createField(DSL.name("comet_iff_id"), SQLDataType.INTEGER.nullable(false), this, "") @@ -99,29 +99,32 @@ open class PlayerEquipment( private constructor(alias: Name, aliased: Table?, parameters: Array?>?): this(alias, null, null, aliased, parameters) /** - * Create an aliased public.player_equipment table reference + * Create an aliased alter_pangya.player_equipment table + * reference */ constructor(alias: String): this(DSL.name(alias)) /** - * Create an aliased public.player_equipment table reference + * Create an aliased alter_pangya.player_equipment table + * reference */ constructor(alias: Name): this(alias, null) /** - * Create a public.player_equipment table reference + * Create a alter_pangya.player_equipment table reference */ constructor(): this(DSL.name("player_equipment"), null) constructor(child: Table, key: ForeignKey): this(Internal.createPathAlias(child, key), child, key, PLAYER_EQUIPMENT, null) - override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC + override fun getSchema(): Schema? = if (aliased()) null else AlterPangya.ALTER_PANGYA override fun getPrimaryKey(): UniqueKey = PLAYER_EQUIPMENT_PKEY override fun getReferences(): List> = listOf(PLAYER_EQUIPMENT__FK_PLAYER_STATISTICS__ACCOUNT) private lateinit var _account: Account /** - * Get the implicit join path to the public.account table. + * Get the implicit join path to the alter_pangya.account + * table. */ fun account(): Account { if (!this::_account.isInitialized) diff --git a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerInventoryCard.kt b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerInventoryCard.kt index 218ec69..d28db9e 100644 --- a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerInventoryCard.kt +++ b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerInventoryCard.kt @@ -26,7 +26,7 @@ import org.jooq.impl.Internal import org.jooq.impl.SQLDataType import org.jooq.impl.TableImpl -import work.fking.pangya.game.persistence.jooq.Public +import work.fking.pangya.game.persistence.jooq.AlterPangya import work.fking.pangya.game.persistence.jooq.keys.PLAYER_INVENTORY_CARD_PKEY import work.fking.pangya.game.persistence.jooq.keys.PLAYER_INVENTORY_CARD__FK_PLAYER_INVENTORY_ITEM__ACCOUNT import work.fking.pangya.game.persistence.jooq.tables.records.PlayerInventoryCardRecord @@ -44,7 +44,7 @@ open class PlayerInventoryCard( parameters: Array?>? ): TableImpl( alias, - Public.PUBLIC, + AlterPangya.ALTER_PANGYA, child, path, aliased, @@ -55,7 +55,8 @@ open class PlayerInventoryCard( companion object { /** - * The reference instance of public.player_inventory_card + * The reference instance of + * alter_pangya.player_inventory_card */ val PLAYER_INVENTORY_CARD: PlayerInventoryCard = PlayerInventoryCard() } @@ -66,22 +67,22 @@ open class PlayerInventoryCard( override fun getRecordType(): Class = PlayerInventoryCardRecord::class.java /** - * The column public.player_inventory_card.uid. + * The column alter_pangya.player_inventory_card.uid. */ val UID: TableField = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false).identity(true), this, "") /** - * The column public.player_inventory_card.account_uid. + * The column alter_pangya.player_inventory_card.account_uid. */ val ACCOUNT_UID: TableField = createField(DSL.name("account_uid"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_inventory_card.iff_id. + * The column alter_pangya.player_inventory_card.iff_id. */ val IFF_ID: TableField = createField(DSL.name("iff_id"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_inventory_card.quantity. + * The column alter_pangya.player_inventory_card.quantity. */ val QUANTITY: TableField = createField(DSL.name("quantity"), SQLDataType.INTEGER, this, "") @@ -89,24 +90,24 @@ open class PlayerInventoryCard( private constructor(alias: Name, aliased: Table?, parameters: Array?>?): this(alias, null, null, aliased, parameters) /** - * Create an aliased public.player_inventory_card table + * Create an aliased alter_pangya.player_inventory_card table * reference */ constructor(alias: String): this(DSL.name(alias)) /** - * Create an aliased public.player_inventory_card table + * Create an aliased alter_pangya.player_inventory_card table * reference */ constructor(alias: Name): this(alias, null) /** - * Create a public.player_inventory_card table reference + * Create a alter_pangya.player_inventory_card table reference */ constructor(): this(DSL.name("player_inventory_card"), null) constructor(child: Table, key: ForeignKey): this(Internal.createPathAlias(child, key), child, key, PLAYER_INVENTORY_CARD, null) - override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC + override fun getSchema(): Schema? = if (aliased()) null else AlterPangya.ALTER_PANGYA override fun getIdentity(): Identity = super.getIdentity() as Identity override fun getPrimaryKey(): UniqueKey = PLAYER_INVENTORY_CARD_PKEY override fun getReferences(): List> = listOf(PLAYER_INVENTORY_CARD__FK_PLAYER_INVENTORY_ITEM__ACCOUNT) @@ -114,7 +115,8 @@ open class PlayerInventoryCard( private lateinit var _account: Account /** - * Get the implicit join path to the public.account table. + * Get the implicit join path to the alter_pangya.account + * table. */ fun account(): Account { if (!this::_account.isInitialized) diff --git a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerInventoryItem.kt b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerInventoryItem.kt index 7977718..2cc7c00 100644 --- a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerInventoryItem.kt +++ b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerInventoryItem.kt @@ -27,7 +27,7 @@ import org.jooq.impl.SQLDataType import org.jooq.impl.TableImpl import org.jooq.jackson.extensions.converters.JSONtoJacksonConverter -import work.fking.pangya.game.persistence.jooq.Public +import work.fking.pangya.game.persistence.jooq.AlterPangya import work.fking.pangya.game.persistence.jooq.keys.PLAYER_INVENTORY_ITEM_PKEY import work.fking.pangya.game.persistence.jooq.keys.PLAYER_INVENTORY_ITEM__FK_PLAYER_INVENTORY_ITEM__ACCOUNT import work.fking.pangya.game.persistence.jooq.tables.records.PlayerInventoryItemRecord @@ -47,7 +47,7 @@ open class PlayerInventoryItem( parameters: Array?>? ): TableImpl( alias, - Public.PUBLIC, + AlterPangya.ALTER_PANGYA, child, path, aliased, @@ -58,7 +58,8 @@ open class PlayerInventoryItem( companion object { /** - * The reference instance of public.player_inventory_item + * The reference instance of + * alter_pangya.player_inventory_item */ val PLAYER_INVENTORY_ITEM: PlayerInventoryItem = PlayerInventoryItem() } @@ -69,37 +70,37 @@ open class PlayerInventoryItem( override fun getRecordType(): Class = PlayerInventoryItemRecord::class.java /** - * The column public.player_inventory_item.uid. + * The column alter_pangya.player_inventory_item.uid. */ val UID: TableField = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false).identity(true), this, "") /** - * The column public.player_inventory_item.account_uid. + * The column alter_pangya.player_inventory_item.account_uid. */ val ACCOUNT_UID: TableField = createField(DSL.name("account_uid"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_inventory_item.iff_id. + * The column alter_pangya.player_inventory_item.iff_id. */ val IFF_ID: TableField = createField(DSL.name("iff_id"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_inventory_item.quantity. + * The column alter_pangya.player_inventory_item.quantity. */ val QUANTITY: TableField = createField(DSL.name("quantity"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, "") /** - * The column public.player_inventory_item.stats. + * The column alter_pangya.player_inventory_item.stats. */ val STATS: TableField = createField(DSL.name("stats"), SQLDataType.JSON, this, "", JSONtoJacksonConverter(IntArray::class.java)) /** - * The column public.player_inventory_item.ucc. + * The column alter_pangya.player_inventory_item.ucc. */ val UCC: TableField = createField(DSL.name("ucc"), SQLDataType.JSON, this, "", JSONtoJacksonConverter(ItemUcc::class.java)) /** - * The column public.player_inventory_item.club_workshop. + * The column alter_pangya.player_inventory_item.club_workshop. */ val CLUB_WORKSHOP: TableField = createField(DSL.name("club_workshop"), SQLDataType.JSON, this, "", JSONtoJacksonConverter(ItemClubWorkshop::class.java)) @@ -107,24 +108,24 @@ open class PlayerInventoryItem( private constructor(alias: Name, aliased: Table?, parameters: Array?>?): this(alias, null, null, aliased, parameters) /** - * Create an aliased public.player_inventory_item table + * Create an aliased alter_pangya.player_inventory_item table * reference */ constructor(alias: String): this(DSL.name(alias)) /** - * Create an aliased public.player_inventory_item table + * Create an aliased alter_pangya.player_inventory_item table * reference */ constructor(alias: Name): this(alias, null) /** - * Create a public.player_inventory_item table reference + * Create a alter_pangya.player_inventory_item table reference */ constructor(): this(DSL.name("player_inventory_item"), null) constructor(child: Table, key: ForeignKey): this(Internal.createPathAlias(child, key), child, key, PLAYER_INVENTORY_ITEM, null) - override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC + override fun getSchema(): Schema? = if (aliased()) null else AlterPangya.ALTER_PANGYA override fun getIdentity(): Identity = super.getIdentity() as Identity override fun getPrimaryKey(): UniqueKey = PLAYER_INVENTORY_ITEM_PKEY override fun getReferences(): List> = listOf(PLAYER_INVENTORY_ITEM__FK_PLAYER_INVENTORY_ITEM__ACCOUNT) @@ -132,7 +133,8 @@ open class PlayerInventoryItem( private lateinit var _account: Account /** - * Get the implicit join path to the public.account table. + * Get the implicit join path to the alter_pangya.account + * table. */ fun account(): Account { if (!this::_account.isInitialized) diff --git a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerStatistics.kt b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerStatistics.kt index c5c168b..c0b10a7 100644 --- a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerStatistics.kt +++ b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/PlayerStatistics.kt @@ -20,7 +20,7 @@ import org.jooq.impl.Internal import org.jooq.impl.SQLDataType import org.jooq.impl.TableImpl -import work.fking.pangya.game.persistence.jooq.Public +import work.fking.pangya.game.persistence.jooq.AlterPangya import work.fking.pangya.game.persistence.jooq.keys.PLAYER_STATISTICS_PKEY import work.fking.pangya.game.persistence.jooq.keys.PLAYER_STATISTICS__FK_PLAYER_STATISTICS__ACCOUNT import work.fking.pangya.game.persistence.jooq.tables.records.PlayerStatisticsRecord @@ -38,7 +38,7 @@ open class PlayerStatistics( parameters: Array?>? ): TableImpl( alias, - Public.PUBLIC, + AlterPangya.ALTER_PANGYA, child, path, aliased, @@ -49,7 +49,7 @@ open class PlayerStatistics( companion object { /** - * The reference instance of public.player_statistics + * The reference instance of alter_pangya.player_statistics */ val PLAYER_STATISTICS: PlayerStatistics = PlayerStatistics() } @@ -60,163 +60,167 @@ open class PlayerStatistics( override fun getRecordType(): Class = PlayerStatisticsRecord::class.java /** - * The column public.player_statistics.account_uid. + * The column alter_pangya.player_statistics.account_uid. */ val ACCOUNT_UID: TableField = createField(DSL.name("account_uid"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.total_shots. + * The column alter_pangya.player_statistics.total_shots. */ val TOTAL_SHOTS: TableField = createField(DSL.name("total_shots"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.total_putts. + * The column alter_pangya.player_statistics.total_putts. */ val TOTAL_PUTTS: TableField = createField(DSL.name("total_putts"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.playtime_seconds. + * The column alter_pangya.player_statistics.playtime_seconds. */ val PLAYTIME_SECONDS: TableField = createField(DSL.name("playtime_seconds"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.shot_time_seconds. + * The column alter_pangya.player_statistics.shot_time_seconds. */ val SHOT_TIME_SECONDS: TableField = createField(DSL.name("shot_time_seconds"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.longest_drive. + * The column alter_pangya.player_statistics.longest_drive. */ val LONGEST_DRIVE: TableField = createField(DSL.name("longest_drive"), SQLDataType.REAL.nullable(false), this, "") /** - * The column public.player_statistics.pangya_shots. + * The column alter_pangya.player_statistics.pangya_shots. */ val PANGYA_SHOTS: TableField = createField(DSL.name("pangya_shots"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.timeouts. + * The column alter_pangya.player_statistics.timeouts. */ val TIMEOUTS: TableField = createField(DSL.name("timeouts"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.oob_shots. + * The column alter_pangya.player_statistics.oob_shots. */ val OOB_SHOTS: TableField = createField(DSL.name("oob_shots"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.total_distance. + * The column alter_pangya.player_statistics.total_distance. */ val TOTAL_DISTANCE: TableField = createField(DSL.name("total_distance"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.total_holes. + * The column alter_pangya.player_statistics.total_holes. */ val TOTAL_HOLES: TableField = createField(DSL.name("total_holes"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.unfinished_holes. + * The column alter_pangya.player_statistics.unfinished_holes. */ val UNFINISHED_HOLES: TableField = createField(DSL.name("unfinished_holes"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.hole_in_ones. + * The column alter_pangya.player_statistics.hole_in_ones. */ val HOLE_IN_ONES: TableField = createField(DSL.name("hole_in_ones"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.bunker_shots. + * The column alter_pangya.player_statistics.bunker_shots. */ val BUNKER_SHOTS: TableField = createField(DSL.name("bunker_shots"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.fairway_shots. + * The column alter_pangya.player_statistics.fairway_shots. */ val FAIRWAY_SHOTS: TableField = createField(DSL.name("fairway_shots"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.albatross. + * The column alter_pangya.player_statistics.albatross. */ val ALBATROSS: TableField = createField(DSL.name("albatross"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.successful_putts. + * The column alter_pangya.player_statistics.successful_putts. */ val SUCCESSFUL_PUTTS: TableField = createField(DSL.name("successful_putts"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.longest_putt. + * The column alter_pangya.player_statistics.longest_putt. */ val LONGEST_PUTT: TableField = createField(DSL.name("longest_putt"), SQLDataType.REAL.nullable(false), this, "") /** - * The column public.player_statistics.longest_chip_in. + * The column alter_pangya.player_statistics.longest_chip_in. */ val LONGEST_CHIP_IN: TableField = createField(DSL.name("longest_chip_in"), SQLDataType.REAL.nullable(false), this, "") /** - * The column public.player_statistics.experience. + * The column alter_pangya.player_statistics.experience. */ val EXPERIENCE: TableField = createField(DSL.name("experience"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.level. + * The column alter_pangya.player_statistics.level. */ val LEVEL: TableField = createField(DSL.name("level"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.pang_earned. + * The column alter_pangya.player_statistics.pang_earned. */ val PANG_EARNED: TableField = createField(DSL.name("pang_earned"), SQLDataType.BIGINT.nullable(false), this, "") /** - * The column public.player_statistics.total_score. + * The column alter_pangya.player_statistics.total_score. */ val TOTAL_SCORE: TableField = createField(DSL.name("total_score"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.games_played. + * The column alter_pangya.player_statistics.games_played. */ val GAMES_PLAYED: TableField = createField(DSL.name("games_played"), SQLDataType.INTEGER.nullable(false), this, "") /** * The column - * public.player_statistics.game_combo_current_streak. + * alter_pangya.player_statistics.game_combo_current_streak. */ val GAME_COMBO_CURRENT_STREAK: TableField = createField(DSL.name("game_combo_current_streak"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.game_combo_best_streak. + * The column + * alter_pangya.player_statistics.game_combo_best_streak. */ val GAME_COMBO_BEST_STREAK: TableField = createField(DSL.name("game_combo_best_streak"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.games_quit. + * The column alter_pangya.player_statistics.games_quit. */ val GAMES_QUIT: TableField = createField(DSL.name("games_quit"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.pang_won_in_battle. + * The column + * alter_pangya.player_statistics.pang_won_in_battle. */ val PANG_WON_IN_BATTLE: TableField = createField(DSL.name("pang_won_in_battle"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.pang_battle_wins. + * The column alter_pangya.player_statistics.pang_battle_wins. */ val PANG_BATTLE_WINS: TableField = createField(DSL.name("pang_battle_wins"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.pang_battle_losses. + * The column + * alter_pangya.player_statistics.pang_battle_losses. */ val PANG_BATTLE_LOSSES: TableField = createField(DSL.name("pang_battle_losses"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.pang_battle_all_ins. + * The column + * alter_pangya.player_statistics.pang_battle_all_ins. */ val PANG_BATTLE_ALL_INS: TableField = createField(DSL.name("pang_battle_all_ins"), SQLDataType.INTEGER.nullable(false), this, "") /** - * The column public.player_statistics.pang_battle_combo. + * The column alter_pangya.player_statistics.pang_battle_combo. */ val PANG_BATTLE_COMBO: TableField = createField(DSL.name("pang_battle_combo"), SQLDataType.INTEGER.nullable(false), this, "") @@ -224,29 +228,32 @@ open class PlayerStatistics( private constructor(alias: Name, aliased: Table?, parameters: Array?>?): this(alias, null, null, aliased, parameters) /** - * Create an aliased public.player_statistics table reference + * Create an aliased alter_pangya.player_statistics table + * reference */ constructor(alias: String): this(DSL.name(alias)) /** - * Create an aliased public.player_statistics table reference + * Create an aliased alter_pangya.player_statistics table + * reference */ constructor(alias: Name): this(alias, null) /** - * Create a public.player_statistics table reference + * Create a alter_pangya.player_statistics table reference */ constructor(): this(DSL.name("player_statistics"), null) constructor(child: Table, key: ForeignKey): this(Internal.createPathAlias(child, key), child, key, PLAYER_STATISTICS, null) - override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC + override fun getSchema(): Schema? = if (aliased()) null else AlterPangya.ALTER_PANGYA override fun getPrimaryKey(): UniqueKey = PLAYER_STATISTICS_PKEY override fun getReferences(): List> = listOf(PLAYER_STATISTICS__FK_PLAYER_STATISTICS__ACCOUNT) private lateinit var _account: Account /** - * Get the implicit join path to the public.account table. + * Get the implicit join path to the alter_pangya.account + * table. */ fun account(): Account { if (!this::_account.isInitialized) diff --git a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/references/Tables.kt b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/references/Tables.kt index f4c3709..795b8a1 100644 --- a/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/references/Tables.kt +++ b/game-server/src/main/kotlin/work/fking/pangya/game/persistence/jooq/tables/references/Tables.kt @@ -20,61 +20,61 @@ import work.fking.pangya.game.persistence.jooq.tables.PlayerStatistics /** - * The table public.account. + * The table alter_pangya.account. */ val ACCOUNT: Account = Account.ACCOUNT /** - * The table public.achievement. + * The table alter_pangya.achievement. */ val ACHIEVEMENT: Achievement = Achievement.ACHIEVEMENT /** - * The table public.achievement_milestone. + * The table alter_pangya.achievement_milestone. */ val ACHIEVEMENT_MILESTONE: AchievementMilestone = AchievementMilestone.ACHIEVEMENT_MILESTONE /** - * The table public.flyway_schema_history. + * The table alter_pangya.flyway_schema_history. */ val FLYWAY_SCHEMA_HISTORY: FlywaySchemaHistory = FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY /** - * The table public.player_achievement. + * The table alter_pangya.player_achievement. */ val PLAYER_ACHIEVEMENT: PlayerAchievement = PlayerAchievement.PLAYER_ACHIEVEMENT /** - * The table public.player_achievement_milestone. + * The table alter_pangya.player_achievement_milestone. */ val PLAYER_ACHIEVEMENT_MILESTONE: PlayerAchievementMilestone = PlayerAchievementMilestone.PLAYER_ACHIEVEMENT_MILESTONE /** - * The table public.player_caddie. + * The table alter_pangya.player_caddie. */ val PLAYER_CADDIE: PlayerCaddie = PlayerCaddie.PLAYER_CADDIE /** - * The table public.player_character. + * The table alter_pangya.player_character. */ val PLAYER_CHARACTER: PlayerCharacter = PlayerCharacter.PLAYER_CHARACTER /** - * The table public.player_equipment. + * The table alter_pangya.player_equipment. */ val PLAYER_EQUIPMENT: PlayerEquipment = PlayerEquipment.PLAYER_EQUIPMENT /** - * The table public.player_inventory_card. + * The table alter_pangya.player_inventory_card. */ val PLAYER_INVENTORY_CARD: PlayerInventoryCard = PlayerInventoryCard.PLAYER_INVENTORY_CARD /** - * The table public.player_inventory_item. + * The table alter_pangya.player_inventory_item. */ val PLAYER_INVENTORY_ITEM: PlayerInventoryItem = PlayerInventoryItem.PLAYER_INVENTORY_ITEM /** - * The table public.player_statistics. + * The table alter_pangya.player_statistics. */ val PLAYER_STATISTICS: PlayerStatistics = PlayerStatistics.PLAYER_STATISTICS diff --git a/jooq.xml b/jooq.xml index 076dc46..08f5b39 100644 --- a/jooq.xml +++ b/jooq.xml @@ -4,7 +4,7 @@ org.jooq.codegen.KotlinGenerator org.jooq.meta.postgres.PostgresDatabase - public + alter_pangya work.fking.pangya.game.player.ItemUcc