mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
15 lines
565 B
Dart
15 lines
565 B
Dart
import 'package:drift/drift.dart';
|
|
import 'package:immich_data/db/table/memory.dart';
|
|
import 'package:immich_data/db/table/remote_asset.dart';
|
|
import 'package:immich_data/db/util/defaults_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};
|
|
}
|