Added database functionality + tests
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user