Move sessions to db table instead of JWTs
This commit is contained in:
@@ -27,13 +27,13 @@ struct CreatePlayers: AsyncMigration {
|
||||
.field("free_mana", .int, .required)
|
||||
.field("paid_mana", .int, .required)
|
||||
.field("enable_auto_3x", .bool, .required)
|
||||
.field("account_id", .int, .required)
|
||||
.field("account_id", .int, .required, .references("accounts", "id"))
|
||||
.field("tutorial_step", .int, .required)
|
||||
.field("tutorial_skip_flag", .int, .required)
|
||||
.create()
|
||||
}
|
||||
|
||||
func revert(on database: any Database) async throws {
|
||||
|
||||
try await database.schema("players").delete()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user