Implemented uuid for all dtos

This commit is contained in:
2025-11-18 20:07:53 +01:00
parent fde5344244
commit 282841ecf1
5 changed files with 14 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
import 'package:game_tracker/data/dto/group.dart';
import 'package:game_tracker/data/dto/player.dart';
import 'package:uuid/uuid.dart';
class Game {
final String id;
@@ -9,12 +10,12 @@ class Game {
final String winner;
Game({
String? id,
required this.name,
this.players,
this.group,
this.winner = '',
required this.id,
required this.name,
});
}) : id = id ?? const Uuid().v4();
@override
String toString() {