You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-07-07 06:16:05 +02:00
11 lines
450 B
Dart
11 lines
450 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 durationInSeconds => integer().nullable()();
|
||
|
}
|