You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-08-07 23:03:36 +02:00
18 lines
664 B
Dart
18 lines
664 B
Dart
![]() |
import 'package:drift/drift.dart';
|
||
|
import 'package:immich_mobile/infrastructure/entities/remote_album.entity.dart';
|
||
|
import 'package:immich_mobile/infrastructure/entities/remote_asset.entity.dart';
|
||
|
import 'package:immich_mobile/infrastructure/utils/drift_default.mixin.dart';
|
||
|
|
||
|
class RemoteAlbumAssetEntity extends Table with DriftDefaultsMixin {
|
||
|
const RemoteAlbumAssetEntity();
|
||
|
|
||
|
TextColumn get assetId =>
|
||
|
text().references(RemoteAssetEntity, #id, onDelete: KeyAction.cascade)();
|
||
|
|
||
|
TextColumn get albumId =>
|
||
|
text().references(RemoteAlbumEntity, #id, onDelete: KeyAction.cascade)();
|
||
|
|
||
|
@override
|
||
|
Set<Column> get primaryKey => {assetId, albumId};
|
||
|
}
|