mirror of
https://github.com/immich-app/immich.git
synced 2025-11-11 00:56:54 -05:00
13 lines
485 B
Dart
13 lines
485 B
Dart
import 'package:drift/drift.dart';
|
|
import 'package:immich_mobile/infrastructure/entities/remote_asset.entity.dart';
|
|
import 'package:immich_mobile/infrastructure/utils/drift_default.mixin.dart';
|
|
|
|
class RemoteAssetCloudIdEntity extends Table with DriftDefaultsMixin {
|
|
TextColumn get assetId => text().references(RemoteAssetEntity, #id, onDelete: KeyAction.cascade)();
|
|
|
|
TextColumn get cloudId => text().unique().nullable()();
|
|
|
|
@override
|
|
Set<Column> get primaryKey => {assetId};
|
|
}
|