add soft delete parameter

This commit is contained in:
gelbeinhalb
2026-04-19 12:39:14 +02:00
parent 36fda30f27
commit 8bd53a69c3
8 changed files with 8 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ class PlayerMatchTable extends Table {
TextColumn get matchId =>
text().references(MatchTable, #id, onDelete: KeyAction.cascade)();
TextColumn get teamId => text().references(TeamTable, #id).nullable()();
BoolColumn get deleted => boolean().withDefault(const Constant(false))();
@override
Set<Column<Object>> get primaryKey => {playerId, matchId};