mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-13 06:12:13 -06:00
feat: Add hive type adapters to api models, migrate to freezed
This commit is contained in:
15
lib/core/database/tables/user_settings.dart
Normal file
15
lib/core/database/tables/user_settings.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:paperless_api/paperless_api.dart';
|
||||
import 'package:paperless_mobile/core/config/hive/hive_config.dart';
|
||||
|
||||
part 'user_settings.g.dart';
|
||||
|
||||
@HiveType(typeId: HiveTypeIds.userSettings)
|
||||
class UserSettings with HiveObjectMixin {
|
||||
@HiveField(0)
|
||||
bool isBiometricAuthenticationEnabled;
|
||||
|
||||
UserSettings({
|
||||
this.isBiometricAuthenticationEnabled = false,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user