This commit is contained in:
Phuoc Nguyen
2025-10-10 16:38:07 +07:00
parent e5b247d622
commit b94c158004
177 changed files with 25080 additions and 152 deletions

View File

@@ -0,0 +1,28 @@
/// Storage-related constants for Hive database
class StorageConstants {
StorageConstants._();
// Hive Box Names
static const String productsBox = 'products';
static const String categoriesBox = 'categories';
static const String cartBox = 'cart';
static const String settingsBox = 'settings';
static const String transactionsBox = 'transactions';
// Hive Type IDs
static const int productTypeId = 0;
static const int categoryTypeId = 1;
static const int cartItemTypeId = 2;
static const int transactionTypeId = 3;
static const int appSettingsTypeId = 4;
// Storage Keys
static const String settingsKey = 'app_settings';
static const String themeKey = 'theme_mode';
static const String languageKey = 'language';
static const String currencyKey = 'currency';
static const String taxRateKey = 'tax_rate';
static const String storeNameKey = 'store_name';
static const String lastSyncKey = 'last_sync';
static const String firstLaunchKey = 'first_launch';
}