2025-08-22 01:28:50 +05:30
|
|
|
import 'package:drift/drift.dart';
|
|
|
|
|
import 'package:immich_mobile/infrastructure/utils/drift_default.mixin.dart';
|
2025-02-20 00:35:24 +05:30
|
|
|
import 'package:isar/isar.dart';
|
|
|
|
|
|
|
|
|
|
part 'store.entity.g.dart';
|
|
|
|
|
|
|
|
|
|
/// Internal class for `Store`, do not use elsewhere.
|
|
|
|
|
@Collection(inheritance: false)
|
|
|
|
|
class StoreValue {
|
|
|
|
|
final Id id;
|
|
|
|
|
final int? intValue;
|
|
|
|
|
final String? strValue;
|
2025-03-02 18:00:48 +05:30
|
|
|
|
|
|
|
|
const StoreValue(this.id, {this.intValue, this.strValue});
|
2025-02-20 00:35:24 +05:30
|
|
|
}
|
2025-08-22 01:28:50 +05:30
|
|
|
|
|
|
|
|
class StoreEntity extends Table with DriftDefaultsMixin {
|
|
|
|
|
IntColumn get id => integer()();
|
|
|
|
|
|
|
|
|
|
TextColumn get stringValue => text().nullable()();
|
|
|
|
|
IntColumn get intValue => integer().nullable()();
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Set<Column> get primaryKey => {id};
|
|
|
|
|
}
|