mirror of
https://github.com/immich-app/immich.git
synced 2025-06-23 15:30:51 -04:00
13 lines
544 B
Dart
13 lines
544 B
Dart
import 'package:drift/drift.dart';
|
|
import 'package:immich_mobile/domain/models/asset/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()();
|
|
}
|