created tables

This commit is contained in:
2025-06-28 10:21:21 +02:00
parent 7000429856
commit ff2b91e77e
11 changed files with 84 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import 'package:drift/drift.dart';
import 'match_table.dart';
import 'user_table.dart';
class ResultWinTable extends Table {
TextColumn get matchId => text().references(MatchTable, #id)();
TextColumn get winnerId => text().references(UserTable, #id)();
@override
Set<Column<Object>> get primaryKey => {matchId, winnerId};
}