mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 20:36:48 +01:00
5f47cf604a
* chore(mobile): remove exclude album selection mechanism * code generator * code generator
21 lines
405 B
Dart
21 lines
405 B
Dart
import 'package:immich_mobile/utils/hash.dart';
|
|
import 'package:isar/isar.dart';
|
|
|
|
part 'backup_album.entity.g.dart';
|
|
|
|
@Collection(inheritance: false)
|
|
class BackupAlbum {
|
|
String id;
|
|
DateTime lastBackup;
|
|
@Enumerated(EnumType.ordinal)
|
|
BackupSelection selection;
|
|
|
|
BackupAlbum(this.id, this.lastBackup, this.selection);
|
|
|
|
Id get isarId => fastHash(id);
|
|
}
|
|
|
|
enum BackupSelection {
|
|
none,
|
|
select,
|
|
}
|