mirror of
https://github.com/immich-app/immich.git
synced 2025-07-07 10:14:08 -04:00
* feat(mobile): add album asset sync * add SyncAlbumToAssetDeleteV1 to openapi-spec * update delete queries to use where in statements * clear remote album when clear remote data * fix: bad merge * fix: bad merge * fix: _SyncAckV1 return type --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: wuzihao051119 <wuzihao051119@outlook.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
21 lines
718 B
Dart
21 lines
718 B
Dart
import 'package:drift/drift.dart';
|
|
import 'package:immich_mobile/domain/models/album/local_album.model.dart';
|
|
import 'package:immich_mobile/infrastructure/utils/drift_default.mixin.dart';
|
|
|
|
class LocalAlbumEntity extends Table with DriftDefaultsMixin {
|
|
const LocalAlbumEntity();
|
|
|
|
TextColumn get id => text()();
|
|
TextColumn get name => text()();
|
|
DateTimeColumn get updatedAt => dateTime().withDefault(currentDateAndTime)();
|
|
IntColumn get backupSelection => intEnum<BackupSelection>()();
|
|
BoolColumn get isIosSharedAlbum =>
|
|
boolean().withDefault(const Constant(false))();
|
|
|
|
// Used for mark & sweep
|
|
BoolColumn get marker_ => boolean().nullable()();
|
|
|
|
@override
|
|
Set<Column> get primaryKey => {id};
|
|
}
|