mirror of
https://github.com/immich-app/immich.git
synced 2026-02-04 08:49:01 +03:00
* fix: slow hash reconcilation * tests for reconcileHashesFromCloudId * paginate cloud id fetch in migrate cloud id * pr review * skip cloudId sync --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
22 lines
819 B
Dart
22 lines
819 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';
|
|
|
|
@TableIndex.sql('CREATE INDEX IF NOT EXISTS idx_remote_asset_cloud_id ON remote_asset_cloud_id_entity (cloud_id)')
|
|
class RemoteAssetCloudIdEntity extends Table with DriftDefaultsMixin {
|
|
TextColumn get assetId => text().references(RemoteAssetEntity, #id, onDelete: KeyAction.cascade)();
|
|
|
|
TextColumn get cloudId => text().nullable()();
|
|
|
|
DateTimeColumn get createdAt => dateTime().nullable()();
|
|
|
|
DateTimeColumn get adjustmentTime => dateTime().nullable()();
|
|
|
|
RealColumn get latitude => real().nullable()();
|
|
|
|
RealColumn get longitude => real().nullable()();
|
|
|
|
@override
|
|
Set<Column> get primaryKey => {assetId};
|
|
}
|