mirror of
https://github.com/immich-app/immich.git
synced 2026-04-16 07:31:55 -04:00
* refactor: yank old timeline # Conflicts: # mobile/lib/presentation/pages/editing/drift_edit.page.dart # mobile/lib/providers/websocket.provider.dart # mobile/lib/routing/router.dart * more cleanup * remove native code * chore: bump sqlite-data version * remove old background tasks from BGTaskSchedulerPermittedIdentifiers * rebase --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
20 lines
703 B
Dart
20 lines
703 B
Dart
import 'package:drift/drift.dart' hide Index;
|
|
import 'package:immich_mobile/domain/models/user.model.dart';
|
|
import 'package:immich_mobile/infrastructure/utils/drift_default.mixin.dart';
|
|
|
|
class UserEntity extends Table with DriftDefaultsMixin {
|
|
const UserEntity();
|
|
|
|
TextColumn get id => text()();
|
|
TextColumn get name => text()();
|
|
TextColumn get email => text()();
|
|
|
|
// Profile image
|
|
BoolColumn get hasProfileImage => boolean().withDefault(const Constant(false))();
|
|
DateTimeColumn get profileChangedAt => dateTime().withDefault(currentDateAndTime)();
|
|
IntColumn get avatarColor => intEnum<AvatarColor>().withDefault(const Constant(0))();
|
|
|
|
@override
|
|
Set<Column> get primaryKey => {id};
|
|
}
|