29 lines
1000 B
Dart
29 lines
1000 B
Dart
/// 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';
|
|
}
|