mirror of
https://github.com/immich-app/immich.git
synced 2025-11-02 02:27:09 -05:00
* feat: sync AuthUserV1 * migration * chore: fix analyze * fix user updatedAt check * fix: auth user sync query * generate sql * bump schema version and update migration --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Jason Rasmussen <jason@rasm.me> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
36 lines
802 B
Dart
36 lines
802 B
Dart
import 'package:immich_mobile/domain/models/user.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,
|
|
);
|
|
}
|