80 lines
1.5 KiB
Dart
80 lines
1.5 KiB
Dart
import 'package:flutter_passvault/modelclasses/jsomdata.dart';
|
|
import 'package:hive/hive.dart';
|
|
|
|
part 'store_credential_model.g.dart';
|
|
|
|
@HiveType(typeId: 0)
|
|
class Storedcredential extends HiveObject implements JsonData {
|
|
@override
|
|
@HiveField(0)
|
|
int id;
|
|
@override
|
|
@HiveField(1)
|
|
String name;
|
|
@override
|
|
@HiveField(2)
|
|
String username;
|
|
@override
|
|
@HiveField(3)
|
|
String password;
|
|
@override
|
|
@HiveField(4)
|
|
String detail;
|
|
@override
|
|
@HiveField(5)
|
|
int createdBy;
|
|
@override
|
|
@HiveField(6)
|
|
int modifiedBy;
|
|
@override
|
|
@HiveField(7)
|
|
DateTime createdAt;
|
|
@override
|
|
@HiveField(8)
|
|
DateTime updatedAt;
|
|
|
|
@HiveField(9)
|
|
bool isOfflinecreated;
|
|
|
|
@HiveField(10)
|
|
bool isOfflineupdate;
|
|
|
|
@HiveField(11)
|
|
bool isOfflinedelete;
|
|
|
|
@HiveField(12)
|
|
bool isOfflineshare;
|
|
|
|
@HiveField(13)
|
|
bool issync;
|
|
|
|
@HiveField(14)
|
|
int uid;
|
|
|
|
@HiveField(15)
|
|
List<int> sharedUserIds;
|
|
|
|
@HiveField(16)
|
|
// ignore: non_constant_identifier_names
|
|
List<int>? DeletedUserIds;
|
|
|
|
Storedcredential(
|
|
{required this.id,
|
|
required this.name,
|
|
required this.username,
|
|
required this.password,
|
|
required this.detail,
|
|
required this.createdBy,
|
|
required this.modifiedBy,
|
|
required this.createdAt,
|
|
required this.updatedAt,
|
|
required this.isOfflinecreated,
|
|
required this.isOfflineupdate,
|
|
required this.isOfflinedelete,
|
|
required this.isOfflineshare,
|
|
required this.issync,
|
|
required this.uid,
|
|
required this.sharedUserIds,
|
|
required this.DeletedUserIds});
|
|
}
|