mirror of
https://github.com/immich-app/immich.git
synced 2025-06-16 03:54:44 -04:00
* add width and height to sqlite entities * sync width & height from platform --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
13 lines
549 B
Dart
13 lines
549 B
Dart
import 'package:drift/drift.dart';
|
|
import 'package:immich_mobile/domain/models/asset/base_asset.model.dart';
|
|
|
|
mixin AssetEntityMixin on Table {
|
|
TextColumn get name => text()();
|
|
IntColumn get type => intEnum<AssetType>()();
|
|
DateTimeColumn get createdAt => dateTime().withDefault(currentDateAndTime)();
|
|
DateTimeColumn get updatedAt => dateTime().withDefault(currentDateAndTime)();
|
|
IntColumn get width => integer().nullable()();
|
|
IntColumn get height => integer().nullable()();
|
|
IntColumn get durationInSeconds => integer().nullable()();
|
|
}
|