refactor: move common overrides to mixin

This commit is contained in:
shenlong-tanwen 2025-03-29 11:47:25 +05:30
parent aa32bed6b3
commit df65f70773
3 changed files with 0 additions and 18 deletions

View File

@ -15,10 +15,4 @@ class PartnerEntity extends Table with DriftDefaultsMixin {
@override
Set<Column> get primaryKey => {sharedById, sharedWithId};
@override
bool get isStrict => true;
@override
bool get withoutRowId => true;
}

View File

@ -90,10 +90,4 @@ class UserEntity extends Table with DriftDefaultsMixin {
@override
Set<Column> get primaryKey => {id};
@override
bool get isStrict => true;
@override
bool get withoutRowId => true;
}

View File

@ -12,12 +12,6 @@ class UserMetadataEntity extends Table with DriftDefaultsMixin {
@override
Set<Column> get primaryKey => {userId};
@override
bool get isStrict => true;
@override
bool get withoutRowId => true;
}
final JsonTypeConverter2<UserPreferences, String, Object?>