mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	* refactor(mobile): entities * store entity * refactor: models * remove domain * save all * bad refactor
		
			
				
	
	
		
			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;
 | 
						|
}
 |