You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-07-06 06:07:29 +02:00
19 lines
639 B
Dart
19 lines
639 B
Dart
![]() |
import 'package:drift/drift.dart';
|
||
|
import 'package:immich_mobile/infrastructure/entities/user.entity.dart';
|
||
|
import 'package:immich_mobile/infrastructure/utils/drift_default.mixin.dart';
|
||
|
|
||
|
class PartnerEntity extends Table with DriftDefaultsMixin {
|
||
|
const PartnerEntity();
|
||
|
|
||
|
BlobColumn get sharedById =>
|
||
|
blob().references(UserEntity, #id, onDelete: KeyAction.cascade)();
|
||
|
|
||
|
BlobColumn get sharedWithId =>
|
||
|
blob().references(UserEntity, #id, onDelete: KeyAction.cascade)();
|
||
|
|
||
|
BoolColumn get inTimeline => boolean().withDefault(const Constant(false))();
|
||
|
|
||
|
@override
|
||
|
Set<Column> get primaryKey => {sharedById, sharedWithId};
|
||
|
}
|