add createdAt column to game, group and player tables and DAOs

This commit is contained in:
2025-11-18 23:47:45 +01:00
parent 8cc898cad6
commit 2ee8edcf9b
6 changed files with 46 additions and 11 deletions

View File

@@ -6,6 +6,7 @@ class GameTable extends Table {
TextColumn get name => text()();
TextColumn get winnerId =>
text().references(PlayerTable, #id, onDelete: KeyAction.cascade)();
DateTimeColumn get createdAt => dateTime()();
@override
Set<Column<Object>> get primaryKey => {id};