mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 18:47:09 -04:00 
			
		
		
		
	* feat(mobile): remote asset & exif sync * add visibility and update constraints * chore: generate drifts * update ids to be strings * clear remote entities on logout * reset sqlite button --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
		
			
				
	
	
		
			19 lines
		
	
	
		
			639 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			639 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:drift/drift.dart';
 | |
| import 'package:immich_mobile/infrastructure/entities/user.entity.dart';
 | |
| import 'package:immich_mobile/infrastructure/utils/drift_default.mixin.dart';
 | |
| 
 | |
| class PartnerEntity extends Table with DriftDefaultsMixin {
 | |
|   const PartnerEntity();
 | |
| 
 | |
|   TextColumn get sharedById =>
 | |
|       text().references(UserEntity, #id, onDelete: KeyAction.cascade)();
 | |
| 
 | |
|   TextColumn get sharedWithId =>
 | |
|       text().references(UserEntity, #id, onDelete: KeyAction.cascade)();
 | |
| 
 | |
|   BoolColumn get inTimeline => boolean().withDefault(const Constant(false))();
 | |
| 
 | |
|   @override
 | |
|   Set<Column> get primaryKey => {sharedById, sharedWithId};
 | |
| }
 |