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,12 @@
import 'package:drift/drift.dart';
import 'match_table.dart';
import 'user_table.dart';
class ResultScoreTable extends Table {
TextColumn get matchId => text().references(MatchTable, #id)();
TextColumn get userId => text().references(UserTable, #id)();
IntColumn get score => integer()();
@override
Set<Column<Object>> get primaryKey => {matchId, userId};
}