mirror of
https://github.com/immich-app/immich.git
synced 2025-08-11 09:16:31 -04:00
* fix user icons in album view * revert updateUsersV1 change * fix: UserDto merge issues * fix: update user entity * revert what I thought were merge issues turns out drift cant figure out when it needs to gen a file... * fix removed line * handle defaults for older servers * feat: checkpoint migrations * fix: use parenthesis instead of brackets * Update 1753800911775-ProfileImageCheckpointRemoval.ts * fix: sync stream updateUsersV1
37 lines
873 B
Dart
37 lines
873 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),
|
|
profileChangedAt: DateTime(2021),
|
|
avatarColor: AvatarColor.green,
|
|
);
|
|
|
|
static final user1 = UserDto(
|
|
id: "user1",
|
|
email: "user1@test.com",
|
|
name: "user1",
|
|
isAdmin: false,
|
|
updatedAt: DateTime(2022),
|
|
profileChangedAt: DateTime(2022),
|
|
avatarColor: AvatarColor.red,
|
|
);
|
|
|
|
static final user2 = UserDto(
|
|
id: "user2",
|
|
email: "user2@test.com",
|
|
name: "user2",
|
|
isAdmin: false,
|
|
updatedAt: DateTime(2023),
|
|
profileChangedAt: DateTime(2023),
|
|
avatarColor: AvatarColor.primary,
|
|
);
|
|
}
|