created tables
This commit is contained in:
11
lib/data/tables/result_win_table.dart
Normal file
11
lib/data/tables/result_win_table.dart
Normal 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};
|
||||
}
|
||||
Reference in New Issue
Block a user