Neue Datenbank Struktur #156

Open
gelbeinhalb wants to merge 88 commits from feature/88-neue-datenbank-struktur into development
Showing only changes of commit 40e970a5dc - Show all commits

View File

@@ -12,6 +12,7 @@ class Match {
final Group? group; final Group? group;
final List<Player>? players; final List<Player>? players;
final String? notes; final String? notes;
Player? winner;
Review

Notes optional

Notes optional
Review

Dachte leerer String

Dachte leerer String
Review

s.o.

s.o.
Match({ Match({
String? id, String? id,
@@ -21,12 +22,13 @@ class Match {
this.group, this.group,
this.players, this.players,
this.notes, this.notes,
this.winner,
}) : id = id ?? const Uuid().v4(), }) : id = id ?? const Uuid().v4(),
createdAt = createdAt ?? clock.now(); createdAt = createdAt ?? clock.now();
@override @override
String toString() { String toString() {
return 'Match{id: $id, name: $name, game: $game, group: $group, players: $players, notes: $notes}'; return 'Match{id: $id, name: $name, game: $game, group: $group, players: $players, notes: $notes, winner: $winner}';
} }
/// Creates a Match instance from a JSON object. /// Creates a Match instance from a JSON object.