created tables
This commit is contained in:
12
lib/data/tables/result_placement_table.dart
Normal file
12
lib/data/tables/result_placement_table.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
import 'package:drift/drift.dart';
|
||||
import 'match_table.dart';
|
||||
import 'user_table.dart';
|
||||
|
||||
class ResultPlacementTable extends Table {
|
||||
TextColumn get matchId => text().references(MatchTable, #id)();
|
||||
TextColumn get userId => text().references(UserTable, #id)();
|
||||
IntColumn get placement => integer()();
|
||||
|
||||
@override
|
||||
Set<Column<Object>> get primaryKey => {matchId, userId};
|
||||
}
|
||||
Reference in New Issue
Block a user