Added Database, Tables & DAOs
This commit is contained in:
8
lib/data/db/tables/players_table.dart
Normal file
8
lib/data/db/tables/players_table.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
import 'package:cabo_counter/data/db/tables/game_session_table.dart';
|
||||
import 'package:drift/drift.dart';
|
||||
|
||||
class PlayersTable extends Table {
|
||||
TextColumn get id =>
|
||||
text().references(GameSessionTable, #id, onDelete: KeyAction.cascade)();
|
||||
TextColumn get name => text()();
|
||||
}
|
||||
Reference in New Issue
Block a user