Added methods for inserting games and groups into the db

This commit is contained in:
2025-11-12 12:04:33 +01:00
parent b6700bafd9
commit d07943add9
5 changed files with 58 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ import 'package:drift/drift.dart';
class GameTable extends Table {
TextColumn get id => text()();
TextColumn get name => text()();
// todo: winner id needs to be deleted when corresponding player gets deleted
TextColumn get winnerId => text().nullable()();
@override