Refactor TeamTable to introduce default values for color and deleted, and make address column nullable.

Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
2025-11-11 18:44:25 +01:00
parent 58618a3991
commit 36691c6fea
+3 -3
View File
@@ -31,10 +31,10 @@ import org.jetbrains.exposed.v1.jdbc.select
object TeamTable : IntIdTable("Team", "TeamID") {
val kuerzel = varchar("TeamKuerzel", 10)
val color = char("TeamColor", 1)
val color = char("TeamColor", 1).default("8")
val name = varchar("TeamName", 16)
val deleted = bool("TeamDeleted")
val address = text("Address")
val deleted = bool("TeamDeleted").default(false)
val address = text("Address").nullable()
val port = ushort("Port")
}