- Add Rooms, Tasks, TaskCompletions Drift tables with schema v2 migration - Create RoomsDao with CRUD, watchAll, watchWithStats, cascade delete, reorder - Create TasksDao with CRUD, watchInRoom (sorted by due), completeTask, overdue detection - Implement calculateNextDueDate and catchUpToPresent pure scheduling functions - Define IntervalType enum (8 types), EffortLevel enum, FrequencyInterval model - Add formatRelativeDate German formatter and curatedRoomIcons icon list - Enable PRAGMA foreign_keys in beforeOpen migration strategy - All 30 unit tests passing (17 scheduling + 6 rooms DAO + 7 tasks DAO) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
26 lines
864 B
Dart
26 lines
864 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'rooms_dao.dart';
|
|
|
|
// ignore_for_file: type=lint
|
|
mixin _$RoomsDaoMixin on DatabaseAccessor<AppDatabase> {
|
|
$RoomsTable get rooms => attachedDatabase.rooms;
|
|
$TasksTable get tasks => attachedDatabase.tasks;
|
|
$TaskCompletionsTable get taskCompletions => attachedDatabase.taskCompletions;
|
|
RoomsDaoManager get managers => RoomsDaoManager(this);
|
|
}
|
|
|
|
class RoomsDaoManager {
|
|
final _$RoomsDaoMixin _db;
|
|
RoomsDaoManager(this._db);
|
|
$$RoomsTableTableManager get rooms =>
|
|
$$RoomsTableTableManager(_db.attachedDatabase, _db.rooms);
|
|
$$TasksTableTableManager get tasks =>
|
|
$$TasksTableTableManager(_db.attachedDatabase, _db.tasks);
|
|
$$TaskCompletionsTableTableManager get taskCompletions =>
|
|
$$TaskCompletionsTableTableManager(
|
|
_db.attachedDatabase,
|
|
_db.taskCompletions,
|
|
);
|
|
}
|