mirror of
https://github.com/immich-app/immich.git
synced 2024-12-21 01:39:59 +02:00
05cf5d57a9
* feature(mobile): no longer wait for background backup in settings migrate all Hive boxes required for the backup process to Isar * add final modifier
23 lines
415 B
Dart
23 lines
415 B
Dart
import 'package:immich_mobile/utils/hash.dart';
|
|
import 'package:isar/isar.dart';
|
|
|
|
part 'backup_album.model.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,
|
|
exclude;
|
|
}
|