mirror of
https://github.com/immich-app/immich.git
synced 2024-12-26 10:50:29 +02:00
15 lines
404 B
Dart
15 lines
404 B
Dart
|
import 'package:immich_mobile/shared/models/device_asset.dart';
|
||
|
import 'package:immich_mobile/utils/hash.dart';
|
||
|
import 'package:isar/isar.dart';
|
||
|
|
||
|
part 'ios_device_asset.g.dart';
|
||
|
|
||
|
@Collection()
|
||
|
class IOSDeviceAsset extends DeviceAsset {
|
||
|
IOSDeviceAsset({required this.id, required super.hash});
|
||
|
|
||
|
@Index(replace: true, unique: true, type: IndexType.hash)
|
||
|
String id;
|
||
|
Id get isarId => fastHash(id);
|
||
|
}
|