mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			659 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			659 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 StackEntity extends Table with DriftDefaultsMixin {
 | 
						|
  const StackEntity();
 | 
						|
 | 
						|
  TextColumn get id => text()();
 | 
						|
 | 
						|
  DateTimeColumn get createdAt => dateTime().withDefault(currentDateAndTime)();
 | 
						|
 | 
						|
  DateTimeColumn get updatedAt => dateTime().withDefault(currentDateAndTime)();
 | 
						|
 | 
						|
  TextColumn get ownerId => text().references(UserEntity, #id, onDelete: KeyAction.cascade)();
 | 
						|
 | 
						|
  TextColumn get primaryAssetId => text()();
 | 
						|
 | 
						|
  @override
 | 
						|
  Set<Column> get primaryKey => {id};
 | 
						|
}
 |