feat: full local assets / album sync
This commit is contained in:
@@ -1,11 +1,21 @@
|
||||
import 'package:drift/drift.dart';
|
||||
import 'package:immich_mobile/domain/entities/asset.entity.dart';
|
||||
|
||||
class LocalAlbum extends Table {
|
||||
const LocalAlbum();
|
||||
class Album extends Table {
|
||||
const Album();
|
||||
|
||||
IntColumn get id => integer().autoIncrement()();
|
||||
TextColumn get localId => text().unique()();
|
||||
TextColumn get name => text()();
|
||||
DateTimeColumn get modifiedTime =>
|
||||
dateTime().withDefault(currentDateAndTime)();
|
||||
|
||||
IntColumn get thumbnailAssetId => integer()
|
||||
.references(Asset, #id, onDelete: KeyAction.setNull)
|
||||
.nullable()();
|
||||
|
||||
// Local only
|
||||
TextColumn get localId => text().nullable().unique()();
|
||||
|
||||
// Remote only
|
||||
TextColumn get remoteId => text().nullable().unique()();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user