mirror of
https://github.com/immich-app/immich.git
synced 2025-12-18 17:23:16 +03:00
15 lines
532 B
Dart
15 lines
532 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()();
|
|
|
|
TextColumn get eTag => text().nullable()();
|
|
|
|
@override
|
|
Set<Column> get primaryKey => {assetId};
|
|
}
|