update database
This commit is contained in:
@@ -79,41 +79,77 @@ class HiveTypeIds {
|
||||
HiveTypeIds._();
|
||||
|
||||
// Core Models (0-9)
|
||||
static const int user = 0;
|
||||
static const int product = 1;
|
||||
static const int cartItem = 2;
|
||||
static const int order = 3;
|
||||
static const int project = 4;
|
||||
static const int loyaltyTransaction = 5;
|
||||
static const int userModel = 0;
|
||||
static const int userSessionModel = 1;
|
||||
static const int productModel = 2;
|
||||
static const int stockLevelModel = 3;
|
||||
static const int cartModel = 4;
|
||||
static const int cartItemModel = 5;
|
||||
static const int orderModel = 6;
|
||||
static const int orderItemModel = 7;
|
||||
static const int invoiceModel = 8;
|
||||
static const int paymentLineModel = 9;
|
||||
|
||||
// Extended Models (10-19)
|
||||
static const int orderItem = 10;
|
||||
static const int address = 11;
|
||||
static const int category = 12;
|
||||
static const int reward = 13;
|
||||
static const int gift = 14;
|
||||
static const int notification = 15;
|
||||
static const int quote = 16;
|
||||
static const int payment = 17;
|
||||
static const int promotion = 18;
|
||||
static const int referral = 19;
|
||||
// Loyalty Models (10-19)
|
||||
static const int loyaltyPointEntryModel = 10;
|
||||
static const int giftCatalogModel = 11;
|
||||
static const int redeemedGiftModel = 12;
|
||||
static const int pointsRecordModel = 13;
|
||||
|
||||
// Enums (20-29)
|
||||
static const int memberTier = 20;
|
||||
static const int userType = 21;
|
||||
static const int orderStatus = 22;
|
||||
static const int projectStatus = 23;
|
||||
static const int projectType = 24;
|
||||
static const int transactionType = 25;
|
||||
static const int giftStatus = 26;
|
||||
static const int paymentStatus = 27;
|
||||
static const int notificationType = 28;
|
||||
static const int paymentMethod = 29;
|
||||
// Project & Quote Models (14-17)
|
||||
static const int projectSubmissionModel = 14;
|
||||
static const int designRequestModel = 15;
|
||||
static const int quoteModel = 16;
|
||||
static const int quoteItemModel = 17;
|
||||
|
||||
// Cache & Sync Models (30-39)
|
||||
static const int cachedData = 30;
|
||||
static const int syncState = 31;
|
||||
static const int offlineRequest = 32;
|
||||
// Chat Models (18-19)
|
||||
static const int chatRoomModel = 18;
|
||||
static const int messageModel = 19;
|
||||
|
||||
// Extended Models (20-29)
|
||||
static const int notificationModel = 20;
|
||||
static const int showroomModel = 21;
|
||||
static const int showroomProductModel = 22;
|
||||
static const int paymentReminderModel = 23;
|
||||
static const int auditLogModel = 24;
|
||||
static const int memberCardModel = 25;
|
||||
static const int promotionModel = 26;
|
||||
static const int categoryModel = 27;
|
||||
|
||||
// Enums (30-59)
|
||||
static const int userRole = 30;
|
||||
static const int userStatus = 31;
|
||||
static const int loyaltyTier = 32;
|
||||
static const int orderStatus = 33;
|
||||
static const int invoiceType = 34;
|
||||
static const int invoiceStatus = 35;
|
||||
static const int paymentMethod = 36;
|
||||
static const int paymentStatus = 37;
|
||||
static const int entryType = 38;
|
||||
static const int entrySource = 39;
|
||||
static const int complaintStatus = 40;
|
||||
static const int giftCategory = 41;
|
||||
static const int giftStatus = 42;
|
||||
static const int pointsStatus = 43;
|
||||
static const int projectType = 44;
|
||||
static const int submissionStatus = 45;
|
||||
static const int designStatus = 46;
|
||||
static const int quoteStatus = 47;
|
||||
static const int roomType = 48;
|
||||
static const int contentType = 49;
|
||||
static const int reminderType = 50;
|
||||
static const int notificationType = 51;
|
||||
|
||||
// Aliases for backward compatibility and clarity
|
||||
static const int memberTier = loyaltyTier; // Alias for loyaltyTier
|
||||
static const int userType = userRole; // Alias for userRole
|
||||
static const int projectStatus = submissionStatus; // Alias for submissionStatus
|
||||
static const int transactionType = entryType; // Alias for entryType
|
||||
|
||||
// Cache & Sync Models (60-69)
|
||||
static const int cachedData = 60;
|
||||
static const int syncState = 61;
|
||||
static const int offlineRequest = 62;
|
||||
}
|
||||
|
||||
/// Hive Storage Keys
|
||||
|
||||
@@ -8,7 +8,7 @@ part of 'cached_data.dart';
|
||||
|
||||
class CachedDataAdapter extends TypeAdapter<CachedData> {
|
||||
@override
|
||||
final typeId = 30;
|
||||
final typeId = 60;
|
||||
|
||||
@override
|
||||
CachedData read(BinaryReader reader) {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user