mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 10:37:11 -04:00 
			
		
		
		
	Revert "chore(mobile): remove exclude album mechanism for backup (#10552)" This reverts commit 5f47cf604ad6719f70a0e98d34de85510d4758f3.
		
			
				
	
	
		
			23 lines
		
	
	
		
			416 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			416 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,
 | |
|   exclude;
 | |
| }
 |