more fixes

This commit is contained in:
shenlong-tanwen
2025-09-05 01:28:14 +05:30
parent 9cf5d83707
commit e2c87c2042
13 changed files with 123 additions and 744 deletions
@@ -19,6 +19,7 @@ ON remote_asset_entity (owner_id, library_id, checksum)
WHERE (library_id IS NOT NULL);
''')
@TableIndex.sql('CREATE INDEX IF NOT EXISTS idx_remote_asset_checksum ON remote_asset_entity (checksum)')
@TableIndex.sql('CREATE INDEX IF NOT EXISTS idx_remote_asset_cloud_id ON remote_asset_entity (cloud_id);')
class RemoteAssetEntity extends Table with DriftDefaultsMixin, AssetEntityMixin {
const RemoteAssetEntity();
@@ -44,6 +45,8 @@ class RemoteAssetEntity extends Table with DriftDefaultsMixin, AssetEntityMixin
TextColumn get libraryId => text().nullable()();
TextColumn get cloudId => text().nullable()();
@override
Set<Column> get primaryKey => {id};
}