mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
* 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>
37 lines
843 B
Dart
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,
|
|
);
|
|
}
|