immich/mobile/test/fixtures/user.stub.dart
shenlong 5a456ef277
feat(mobile): sqlite (#16861)
* refactor: user entity

* chore: rebase fixes

* refactor: remove int user Id

* refactor: migrate store userId from int to string

* refactor: rename uid to id

* feat: drift

* pr feedback

* refactor: move common overrides to mixin

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
2025-04-02 08:58:17 -05:00

37 lines
843 B
Dart

import 'package:immich_mobile/domain/models/user.model.dart';
import 'package:immich_mobile/domain/models/user_metadata.model.dart';
abstract final class UserStub {
const UserStub._();
static final admin = UserDto(
id: "admin",
email: "admin@test.com",
name: "admin",
isAdmin: true,
updatedAt: DateTime(2021),
profileImagePath: null,
avatarColor: AvatarColor.green,
);
static final user1 = UserDto(
id: "user1",
email: "user1@test.com",
name: "user1",
isAdmin: false,
updatedAt: DateTime(2022),
profileImagePath: null,
avatarColor: AvatarColor.red,
);
static final user2 = UserDto(
id: "user2",
email: "user2@test.com",
name: "user2",
isAdmin: false,
updatedAt: DateTime(2023),
profileImagePath: null,
avatarColor: AvatarColor.primary,
);
}