This commit is contained in:
shenlong-tanwen
2024-04-25 00:53:18 +05:30
parent 4ef7eb56a3
commit 11cef4ec9a
305 changed files with 47185 additions and 4 deletions
@@ -0,0 +1,14 @@
import 'package:drift/drift.dart';
import 'package:immich_mobile/domain/models/log.model.dart';
class Logs extends Table {
const Logs();
IntColumn get id => integer().autoIncrement()();
TextColumn get content => text()();
IntColumn get level => intEnum<LogLevel>()();
DateTimeColumn get createdAt => dateTime().withDefault(currentDateAndTime)();
TextColumn get logger => text().nullable()();
TextColumn get error => text().nullable()();
TextColumn get stack => text().nullable()();
}