mirror of
https://github.com/immich-app/immich.git
synced 2026-09-30 21:28:12 +08:00
* chore(mobile): enable dead code CI * Restore accidentally removed test and set mise default
17 lines
757 B
Dart
17 lines
757 B
Dart
// ignore_for_file: unused-code
|
|
|
|
import 'package:drift/drift.dart';
|
|
import 'package:immich_mobile/data/db/util/datetime_clamp_type.dart';
|
|
import 'package:immich_mobile/data/db/util/defaults_mixin.dart';
|
|
import 'package:immich_mobile/domain/models/asset/base_asset.model.dart';
|
|
|
|
mixin AssetEntityMixin on DriftDefaultsMixin {
|
|
TextColumn get name => text()();
|
|
IntColumn get type => intEnum<AssetType>()();
|
|
DateTimeColumn get createdAt => customType(clampedDateTime).withDefault(currentDateAndTime)();
|
|
DateTimeColumn get updatedAt => customType(clampedDateTime).withDefault(currentDateAndTime)();
|
|
IntColumn get width => integer().nullable()();
|
|
IntColumn get height => integer().nullable()();
|
|
IntColumn get durationMs => integer().nullable()();
|
|
}
|