mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	* feat: memories sync * Update mobile/lib/infrastructure/repositories/sync_stream.repository.dart Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update mobile/lib/infrastructure/repositories/sync_stream.repository.dart Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * show sync information * tests and pr feedback * pr feedback --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
		
			
				
	
	
		
			18 lines
		
	
	
		
			645 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			645 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'package:drift/drift.dart';
 | 
						|
import 'package:immich_mobile/infrastructure/entities/memory.entity.dart';
 | 
						|
import 'package:immich_mobile/infrastructure/entities/remote_asset.entity.dart';
 | 
						|
import 'package:immich_mobile/infrastructure/utils/drift_default.mixin.dart';
 | 
						|
 | 
						|
class MemoryAssetEntity extends Table with DriftDefaultsMixin {
 | 
						|
  const MemoryAssetEntity();
 | 
						|
 | 
						|
  TextColumn get assetId =>
 | 
						|
      text().references(RemoteAssetEntity, #id, onDelete: KeyAction.cascade)();
 | 
						|
 | 
						|
  TextColumn get memoryId =>
 | 
						|
      text().references(MemoryEntity, #id, onDelete: KeyAction.cascade)();
 | 
						|
 | 
						|
  @override
 | 
						|
  Set<Column> get primaryKey => {assetId, memoryId};
 | 
						|
}
 |