WIP: Neue Datenbank Struktur #156

Draft
gelbeinhalb wants to merge 11 commits from feature/88-neue-datenbank-struktur into development
Showing only changes of commit 0f987f4c7a - Show all commits

View File

@@ -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<Column<Object>> get primaryKey => {id};
}
}