ConanServerManager/lib/credentials.dart
2023-11-08 15:20:40 -07:00

24 lines
462 B
Dart

import 'package:hive/hive.dart';
part 'credentials.g.dart';
@HiveType(typeId: 1)
class Credentials {
@HiveField(0, defaultValue: "")
String username;
@HiveField(1, defaultValue: "")
String password;
@HiveField(2, defaultValue: "")
String secret;
@HiveField(3, defaultValue: false)
bool has_2fa = false;
Credentials(
{required this.username,
required this.password,
required this.secret,
required this.has_2fa});
}