mirror of
https://github.com/immich-app/immich.git
synced 2025-06-15 11:34:34 -04:00
refactor: move common overrides to mixin
This commit is contained in:
parent
aa32bed6b3
commit
df65f70773
@ -15,10 +15,4 @@ class PartnerEntity extends Table with DriftDefaultsMixin {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Set<Column> get primaryKey => {sharedById, sharedWithId};
|
Set<Column> get primaryKey => {sharedById, sharedWithId};
|
||||||
|
|
||||||
@override
|
|
||||||
bool get isStrict => true;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool get withoutRowId => true;
|
|
||||||
}
|
}
|
||||||
|
@ -90,10 +90,4 @@ class UserEntity extends Table with DriftDefaultsMixin {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Set<Column> get primaryKey => {id};
|
Set<Column> get primaryKey => {id};
|
||||||
|
|
||||||
@override
|
|
||||||
bool get isStrict => true;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool get withoutRowId => true;
|
|
||||||
}
|
}
|
||||||
|
@ -12,12 +12,6 @@ class UserMetadataEntity extends Table with DriftDefaultsMixin {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Set<Column> get primaryKey => {userId};
|
Set<Column> get primaryKey => {userId};
|
||||||
|
|
||||||
@override
|
|
||||||
bool get isStrict => true;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool get withoutRowId => true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
final JsonTypeConverter2<UserPreferences, String, Object?>
|
final JsonTypeConverter2<UserPreferences, String, Object?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user