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