From 0f987f4c7adbd5328288049380bebf5e0e01cb15 Mon Sep 17 00:00:00 2001 From: gelbeinhalb Date: Mon, 12 Jan 2026 11:34:02 +0100 Subject: [PATCH] move match below ids --- lib/data/db/tables/match_table.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/data/db/tables/match_table.dart b/lib/data/db/tables/match_table.dart index c71f8bd..5deb5c5 100644 --- a/lib/data/db/tables/match_table.dart +++ b/lib/data/db/tables/match_table.dart @@ -4,14 +4,14 @@ import 'package:game_tracker/data/db/tables/group_table.dart'; class MatchTable extends Table { TextColumn get id => text()(); - TextColumn get name => text().nullable()(); TextColumn get gameId => text().references(GameTable, #id, onDelete: KeyAction.cascade)(); TextColumn get groupId => text().references(GroupTable, #id, onDelete: KeyAction.cascade).nullable()(); // Nullable if not part of a group + TextColumn get name => text().nullable()(); TextColumn get notes => text().nullable()(); DateTimeColumn get createdAt => dateTime()(); @override Set> get primaryKey => {id}; -} +} \ No newline at end of file