Added database functionality + tests

This commit is contained in:
2026-04-19 22:49:06 +02:00
parent 36fda30f27
commit a1398623b0
5 changed files with 484 additions and 104 deletions

View File

@@ -2,9 +2,10 @@ import 'package:drift/drift.dart';
class PlayerTable extends Table {
TextColumn get id => text()();
TextColumn get name => text()();
TextColumn get description => text()();
DateTimeColumn get createdAt => dateTime()();
TextColumn get name => text()();
IntColumn get nameCount => integer().withDefault(const Constant(0))();
TextColumn get description => text()();
@override
Set<Column<Object>> get primaryKey => {id};