diff --git a/accounting/__pycache__/__init__.cpython-311.pyc b/accounting/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index a3bd12c..0000000 Binary files a/accounting/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/accounting/__pycache__/admin.cpython-311.pyc b/accounting/__pycache__/admin.cpython-311.pyc deleted file mode 100644 index 6acedcb..0000000 Binary files a/accounting/__pycache__/admin.cpython-311.pyc and /dev/null differ diff --git a/accounting/__pycache__/apps.cpython-311.pyc b/accounting/__pycache__/apps.cpython-311.pyc deleted file mode 100644 index f7a4f42..0000000 Binary files a/accounting/__pycache__/apps.cpython-311.pyc and /dev/null differ diff --git a/accounting/__pycache__/forms.cpython-311.pyc b/accounting/__pycache__/forms.cpython-311.pyc deleted file mode 100644 index 30491c1..0000000 Binary files a/accounting/__pycache__/forms.cpython-311.pyc and /dev/null differ diff --git a/accounting/__pycache__/models.cpython-311.pyc b/accounting/__pycache__/models.cpython-311.pyc deleted file mode 100644 index 8b3540f..0000000 Binary files a/accounting/__pycache__/models.cpython-311.pyc and /dev/null differ diff --git a/accounting/__pycache__/signals.cpython-311.pyc b/accounting/__pycache__/signals.cpython-311.pyc deleted file mode 100644 index 9452ace..0000000 Binary files a/accounting/__pycache__/signals.cpython-311.pyc and /dev/null differ diff --git a/accounting/__pycache__/urls.cpython-311.pyc b/accounting/__pycache__/urls.cpython-311.pyc deleted file mode 100644 index 2953fcd..0000000 Binary files a/accounting/__pycache__/urls.cpython-311.pyc and /dev/null differ diff --git a/accounting/__pycache__/views.cpython-311.pyc b/accounting/__pycache__/views.cpython-311.pyc deleted file mode 100644 index d619044..0000000 Binary files a/accounting/__pycache__/views.cpython-311.pyc and /dev/null differ diff --git a/accounting/management/__pycache__/__init__.cpython-311.pyc b/accounting/management/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 1901e74..0000000 Binary files a/accounting/management/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/accounting/migrations/__pycache__/0001_initial.cpython-311.pyc b/accounting/migrations/__pycache__/0001_initial.cpython-311.pyc deleted file mode 100644 index 6fd60ef..0000000 Binary files a/accounting/migrations/__pycache__/0001_initial.cpython-311.pyc and /dev/null differ diff --git a/accounting/migrations/__pycache__/__init__.cpython-311.pyc b/accounting/migrations/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index d94ad5b..0000000 Binary files a/accounting/migrations/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/config/__pycache__/__init__.cpython-311.pyc b/config/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 423a636..0000000 Binary files a/config/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/config/__pycache__/settings.cpython-311.pyc b/config/__pycache__/settings.cpython-311.pyc deleted file mode 100644 index d5408c1..0000000 Binary files a/config/__pycache__/settings.cpython-311.pyc and /dev/null differ diff --git a/config/__pycache__/urls.cpython-311.pyc b/config/__pycache__/urls.cpython-311.pyc deleted file mode 100644 index 3849c1c..0000000 Binary files a/config/__pycache__/urls.cpython-311.pyc and /dev/null differ diff --git a/config/__pycache__/wsgi.cpython-311.pyc b/config/__pycache__/wsgi.cpython-311.pyc deleted file mode 100644 index 51042d5..0000000 Binary files a/config/__pycache__/wsgi.cpython-311.pyc and /dev/null differ diff --git a/config/wsgi.py b/config/wsgi.py index feef8fc..98aa4bc 100644 --- a/config/wsgi.py +++ b/config/wsgi.py @@ -22,19 +22,14 @@ except ImportError: os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings') -# Patch for WeasyPrint libraries -try: - import ctypes - import ctypes.util - for lib in ['gobject-2.0', 'pango-1.0', 'cairo', 'harfbuzz', 'fontconfig']: - path = ctypes.util.find_library(lib) +# Patch for WeasyPrint libraries (libgobject-2.0, pango, cairo, etc.) +for lib_name in ['gobject-2.0', 'pango-1.0', 'cairo', 'harfbuzz', 'fontconfig']: + try: + path = ctypes.util.find_library(lib_name) if path: - try: - ctypes.CDLL(path) - except OSError: - pass -except Exception: - pass + ctypes.CDLL(path) + except Exception: + pass from django.core.wsgi import get_wsgi_application diff --git a/core/__pycache__/__init__.cpython-311.pyc b/core/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 74b1112..0000000 Binary files a/core/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/core/__pycache__/admin.cpython-311.pyc b/core/__pycache__/admin.cpython-311.pyc deleted file mode 100644 index 262dcde..0000000 Binary files a/core/__pycache__/admin.cpython-311.pyc and /dev/null differ diff --git a/core/__pycache__/apps.cpython-311.pyc b/core/__pycache__/apps.cpython-311.pyc deleted file mode 100644 index ed8da76..0000000 Binary files a/core/__pycache__/apps.cpython-311.pyc and /dev/null differ diff --git a/core/__pycache__/context_processors.cpython-311.pyc b/core/__pycache__/context_processors.cpython-311.pyc deleted file mode 100644 index 43aa9a8..0000000 Binary files a/core/__pycache__/context_processors.cpython-311.pyc and /dev/null differ diff --git a/core/__pycache__/forms.cpython-311.pyc b/core/__pycache__/forms.cpython-311.pyc deleted file mode 100644 index 7c18c37..0000000 Binary files a/core/__pycache__/forms.cpython-311.pyc and /dev/null differ diff --git a/core/__pycache__/forms_import.cpython-311.pyc b/core/__pycache__/forms_import.cpython-311.pyc deleted file mode 100644 index 2f953e9..0000000 Binary files a/core/__pycache__/forms_import.cpython-311.pyc and /dev/null differ diff --git a/core/__pycache__/helpers.cpython-311.pyc b/core/__pycache__/helpers.cpython-311.pyc deleted file mode 100644 index 0185b30..0000000 Binary files a/core/__pycache__/helpers.cpython-311.pyc and /dev/null differ diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc deleted file mode 100644 index c269e3d..0000000 Binary files a/core/__pycache__/models.cpython-311.pyc and /dev/null differ diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc deleted file mode 100644 index ef3970e..0000000 Binary files a/core/__pycache__/urls.cpython-311.pyc and /dev/null differ diff --git a/core/__pycache__/utils.cpython-311.pyc b/core/__pycache__/utils.cpython-311.pyc deleted file mode 100644 index 673ef22..0000000 Binary files a/core/__pycache__/utils.cpython-311.pyc and /dev/null differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc deleted file mode 100644 index 4e9bdf3..0000000 Binary files a/core/__pycache__/views.cpython-311.pyc and /dev/null differ diff --git a/core/__pycache__/views_import.cpython-311.pyc b/core/__pycache__/views_import.cpython-311.pyc deleted file mode 100644 index 55bc085..0000000 Binary files a/core/__pycache__/views_import.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0001_initial.cpython-311.pyc b/core/migrations/__pycache__/0001_initial.cpython-311.pyc deleted file mode 100644 index c78be3d..0000000 Binary files a/core/migrations/__pycache__/0001_initial.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0002_systemsetting.cpython-311.pyc b/core/migrations/__pycache__/0002_systemsetting.cpython-311.pyc deleted file mode 100644 index 1c9f1b7..0000000 Binary files a/core/migrations/__pycache__/0002_systemsetting.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0003_remove_systemsetting_logo_url_systemsetting_logo_and_more.cpython-311.pyc b/core/migrations/__pycache__/0003_remove_systemsetting_logo_url_systemsetting_logo_and_more.cpython-311.pyc deleted file mode 100644 index b43ca66..0000000 Binary files a/core/migrations/__pycache__/0003_remove_systemsetting_logo_url_systemsetting_logo_and_more.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0004_unit_product_unit.cpython-311.pyc b/core/migrations/__pycache__/0004_unit_product_unit.cpython-311.pyc deleted file mode 100644 index b80601f..0000000 Binary files a/core/migrations/__pycache__/0004_unit_product_unit.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0005_product_cost_price_product_is_active_and_more.cpython-311.pyc b/core/migrations/__pycache__/0005_product_cost_price_product_is_active_and_more.cpython-311.pyc deleted file mode 100644 index c5a7875..0000000 Binary files a/core/migrations/__pycache__/0005_product_cost_price_product_is_active_and_more.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0006_purchase_balance_due_purchase_due_date_and_more.cpython-311.pyc b/core/migrations/__pycache__/0006_purchase_balance_due_purchase_due_date_and_more.cpython-311.pyc deleted file mode 100644 index f09ea95..0000000 Binary files a/core/migrations/__pycache__/0006_purchase_balance_due_purchase_due_date_and_more.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0007_sale_balance_due_sale_due_date_sale_invoice_number_and_more.cpython-311.pyc b/core/migrations/__pycache__/0007_sale_balance_due_sale_due_date_sale_invoice_number_and_more.cpython-311.pyc deleted file mode 100644 index f1d228d..0000000 Binary files a/core/migrations/__pycache__/0007_sale_balance_due_sale_due_date_sale_invoice_number_and_more.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0008_quotation_sale_quotation_quotationitem.cpython-311.pyc b/core/migrations/__pycache__/0008_quotation_sale_quotation_quotationitem.cpython-311.pyc deleted file mode 100644 index b628003..0000000 Binary files a/core/migrations/__pycache__/0008_quotation_sale_quotation_quotationitem.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0009_purchasereturn_purchasereturnitem_salereturn_and_more.cpython-311.pyc b/core/migrations/__pycache__/0009_purchasereturn_purchasereturnitem_salereturn_and_more.cpython-311.pyc deleted file mode 100644 index 40e202f..0000000 Binary files a/core/migrations/__pycache__/0009_purchasereturn_purchasereturnitem_salereturn_and_more.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0010_purchase_created_by_purchasepayment_created_by_and_more.cpython-311.pyc b/core/migrations/__pycache__/0010_purchase_created_by_purchasepayment_created_by_and_more.cpython-311.pyc deleted file mode 100644 index 44cd063..0000000 Binary files a/core/migrations/__pycache__/0010_purchase_created_by_purchasepayment_created_by_and_more.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0011_paymentmethod_purchasepayment_payment_method_name_and_more.cpython-311.pyc b/core/migrations/__pycache__/0011_paymentmethod_purchasepayment_payment_method_name_and_more.cpython-311.pyc deleted file mode 100644 index 58d28f2..0000000 Binary files a/core/migrations/__pycache__/0011_paymentmethod_purchasepayment_payment_method_name_and_more.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0012_systemsetting_decimal_places.cpython-311.pyc b/core/migrations/__pycache__/0012_systemsetting_decimal_places.cpython-311.pyc deleted file mode 100644 index 4e228af..0000000 Binary files a/core/migrations/__pycache__/0012_systemsetting_decimal_places.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0013_heldsale.cpython-311.pyc b/core/migrations/__pycache__/0013_heldsale.cpython-311.pyc deleted file mode 100644 index 6e6f10f..0000000 Binary files a/core/migrations/__pycache__/0013_heldsale.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0014_loyaltytier_customer_loyalty_points_and_more.cpython-311.pyc b/core/migrations/__pycache__/0014_loyaltytier_customer_loyalty_points_and_more.cpython-311.pyc deleted file mode 100644 index 43af3a2..0000000 Binary files a/core/migrations/__pycache__/0014_loyaltytier_customer_loyalty_points_and_more.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0015_userprofile.cpython-311.pyc b/core/migrations/__pycache__/0015_userprofile.cpython-311.pyc deleted file mode 100644 index b53d0c3..0000000 Binary files a/core/migrations/__pycache__/0015_userprofile.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0016_expensecategory_expense.cpython-311.pyc b/core/migrations/__pycache__/0016_expensecategory_expense.cpython-311.pyc deleted file mode 100644 index 4a3e0c7..0000000 Binary files a/core/migrations/__pycache__/0016_expensecategory_expense.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0017_expensecategory_accounting_account.cpython-311.pyc b/core/migrations/__pycache__/0017_expensecategory_accounting_account.cpython-311.pyc deleted file mode 100644 index 3709cf9..0000000 Binary files a/core/migrations/__pycache__/0017_expensecategory_accounting_account.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0018_systemsetting_wablas_enabled_and_more.cpython-311.pyc b/core/migrations/__pycache__/0018_systemsetting_wablas_enabled_and_more.cpython-311.pyc deleted file mode 100644 index d5542d8..0000000 Binary files a/core/migrations/__pycache__/0018_systemsetting_wablas_enabled_and_more.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0019_systemsetting_wablas_secret_key.cpython-311.pyc b/core/migrations/__pycache__/0019_systemsetting_wablas_secret_key.cpython-311.pyc deleted file mode 100644 index 5071d30..0000000 Binary files a/core/migrations/__pycache__/0019_systemsetting_wablas_secret_key.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0020_product_expiry_date_product_has_expiry_and_more.cpython-311.pyc b/core/migrations/__pycache__/0020_product_expiry_date_product_has_expiry_and_more.cpython-311.pyc deleted file mode 100644 index 3026924..0000000 Binary files a/core/migrations/__pycache__/0020_product_expiry_date_product_has_expiry_and_more.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0021_product_min_stock_level.cpython-311.pyc b/core/migrations/__pycache__/0021_product_min_stock_level.cpython-311.pyc deleted file mode 100644 index 64c5b46..0000000 Binary files a/core/migrations/__pycache__/0021_product_min_stock_level.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0022_alter_product_min_stock_level_and_more.cpython-311.pyc b/core/migrations/__pycache__/0022_alter_product_min_stock_level_and_more.cpython-311.pyc deleted file mode 100644 index c6ec414..0000000 Binary files a/core/migrations/__pycache__/0022_alter_product_min_stock_level_and_more.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0023_alter_product_min_stock_level_and_more.cpython-311.pyc b/core/migrations/__pycache__/0023_alter_product_min_stock_level_and_more.cpython-311.pyc deleted file mode 100644 index 26d8ee4..0000000 Binary files a/core/migrations/__pycache__/0023_alter_product_min_stock_level_and_more.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0024_device.cpython-311.pyc b/core/migrations/__pycache__/0024_device.cpython-311.pyc deleted file mode 100644 index d4cf2e1..0000000 Binary files a/core/migrations/__pycache__/0024_device.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0025_sale_subtotal_sale_vat_amount.cpython-311.pyc b/core/migrations/__pycache__/0025_sale_subtotal_sale_vat_amount.cpython-311.pyc deleted file mode 100644 index 75a16e0..0000000 Binary files a/core/migrations/__pycache__/0025_sale_subtotal_sale_vat_amount.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0026_purchaseorder_purchase_purchase_order_and_more.cpython-311.pyc b/core/migrations/__pycache__/0026_purchaseorder_purchase_purchase_order_and_more.cpython-311.pyc deleted file mode 100644 index c056e18..0000000 Binary files a/core/migrations/__pycache__/0026_purchaseorder_purchase_purchase_order_and_more.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0027_alter_device_device_type_cashiercounterregistry.cpython-311.pyc b/core/migrations/__pycache__/0027_alter_device_device_type_cashiercounterregistry.cpython-311.pyc deleted file mode 100644 index 27d6ffb..0000000 Binary files a/core/migrations/__pycache__/0027_alter_device_device_type_cashiercounterregistry.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0028_cashiersession.cpython-311.pyc b/core/migrations/__pycache__/0028_cashiersession.cpython-311.pyc deleted file mode 100644 index a2bff5d..0000000 Binary files a/core/migrations/__pycache__/0028_cashiersession.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0029_systemsetting_allow_zero_stock_sales.cpython-311.pyc b/core/migrations/__pycache__/0029_systemsetting_allow_zero_stock_sales.cpython-311.pyc deleted file mode 100644 index e04dc0a..0000000 Binary files a/core/migrations/__pycache__/0029_systemsetting_allow_zero_stock_sales.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0030_salepayment_created_at_purchasepayment_created_at.cpython-311.pyc b/core/migrations/__pycache__/0030_salepayment_created_at_purchasepayment_created_at.cpython-311.pyc deleted file mode 100644 index 0b0e56f..0000000 Binary files a/core/migrations/__pycache__/0030_salepayment_created_at_purchasepayment_created_at.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0031_create_superuser.cpython-311.pyc b/core/migrations/__pycache__/0031_create_superuser.cpython-311.pyc deleted file mode 100644 index 0d5bf84..0000000 Binary files a/core/migrations/__pycache__/0031_create_superuser.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0032_product_is_service.cpython-311.pyc b/core/migrations/__pycache__/0032_product_is_service.cpython-311.pyc deleted file mode 100644 index 552e2fb..0000000 Binary files a/core/migrations/__pycache__/0032_product_is_service.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0033_auto_add_is_service.cpython-311.pyc b/core/migrations/__pycache__/0033_auto_add_is_service.cpython-311.pyc deleted file mode 100644 index 12fd64b..0000000 Binary files a/core/migrations/__pycache__/0033_auto_add_is_service.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0034_systemsetting_favicon.cpython-311.pyc b/core/migrations/__pycache__/0034_systemsetting_favicon.cpython-311.pyc deleted file mode 100644 index 33d3b18..0000000 Binary files a/core/migrations/__pycache__/0034_systemsetting_favicon.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/0035_remove_heldsale_customer_remove_heldsale_notes_and_more.cpython-311.pyc b/core/migrations/__pycache__/0035_remove_heldsale_customer_remove_heldsale_notes_and_more.cpython-311.pyc deleted file mode 100644 index 43d20d4..0000000 Binary files a/core/migrations/__pycache__/0035_remove_heldsale_customer_remove_heldsale_notes_and_more.cpython-311.pyc and /dev/null differ diff --git a/core/migrations/__pycache__/__init__.cpython-311.pyc b/core/migrations/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 9c833c8..0000000 Binary files a/core/migrations/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/hr/__pycache__/__init__.cpython-311.pyc b/hr/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 5adfd28..0000000 Binary files a/hr/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/hr/__pycache__/admin.cpython-311.pyc b/hr/__pycache__/admin.cpython-311.pyc deleted file mode 100644 index 76b352d..0000000 Binary files a/hr/__pycache__/admin.cpython-311.pyc and /dev/null differ diff --git a/hr/__pycache__/apps.cpython-311.pyc b/hr/__pycache__/apps.cpython-311.pyc deleted file mode 100644 index 658a5dc..0000000 Binary files a/hr/__pycache__/apps.cpython-311.pyc and /dev/null differ diff --git a/hr/__pycache__/forms.cpython-311.pyc b/hr/__pycache__/forms.cpython-311.pyc deleted file mode 100644 index 61b6823..0000000 Binary files a/hr/__pycache__/forms.cpython-311.pyc and /dev/null differ diff --git a/hr/__pycache__/models.cpython-311.pyc b/hr/__pycache__/models.cpython-311.pyc deleted file mode 100644 index 32b6730..0000000 Binary files a/hr/__pycache__/models.cpython-311.pyc and /dev/null differ diff --git a/hr/__pycache__/urls.cpython-311.pyc b/hr/__pycache__/urls.cpython-311.pyc deleted file mode 100644 index d9be205..0000000 Binary files a/hr/__pycache__/urls.cpython-311.pyc and /dev/null differ diff --git a/hr/__pycache__/views.cpython-311.pyc b/hr/__pycache__/views.cpython-311.pyc deleted file mode 100644 index 121ae91..0000000 Binary files a/hr/__pycache__/views.cpython-311.pyc and /dev/null differ diff --git a/hr/migrations/__pycache__/0001_initial.cpython-311.pyc b/hr/migrations/__pycache__/0001_initial.cpython-311.pyc deleted file mode 100644 index 1f03fbb..0000000 Binary files a/hr/migrations/__pycache__/0001_initial.cpython-311.pyc and /dev/null differ diff --git a/hr/migrations/__pycache__/0002_biometricdevice_attendance_device.cpython-311.pyc b/hr/migrations/__pycache__/0002_biometricdevice_attendance_device.cpython-311.pyc deleted file mode 100644 index 9d38cfb..0000000 Binary files a/hr/migrations/__pycache__/0002_biometricdevice_attendance_device.cpython-311.pyc and /dev/null differ diff --git a/hr/migrations/__pycache__/0003_employee_biometric_id_and_more.cpython-311.pyc b/hr/migrations/__pycache__/0003_employee_biometric_id_and_more.cpython-311.pyc deleted file mode 100644 index ae1a250..0000000 Binary files a/hr/migrations/__pycache__/0003_employee_biometric_id_and_more.cpython-311.pyc and /dev/null differ diff --git a/hr/migrations/__pycache__/__init__.cpython-311.pyc b/hr/migrations/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 65b896b..0000000 Binary files a/hr/migrations/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/manage.py b/manage.py index 2bfa9a1..df81532 100755 --- a/manage.py +++ b/manage.py @@ -16,19 +16,16 @@ def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings') - # Patch for WeasyPrint libraries - try: - import ctypes - import ctypes.util - for lib in ['gobject-2.0', 'pango-1.0', 'cairo', 'harfbuzz', 'fontconfig']: - path = ctypes.util.find_library(lib) + # Patch for WeasyPrint libraries (libgobject-2.0, pango, cairo, etc.) + import ctypes + import ctypes.util + for lib_name in ['gobject-2.0', 'pango-1.0', 'cairo', 'harfbuzz', 'fontconfig']: + try: + path = ctypes.util.find_library(lib_name) if path: - try: - ctypes.CDLL(path) - except OSError: - pass - except Exception: - pass + ctypes.CDLL(path) + except Exception: + pass try: from django.core.management import execute_from_command_line diff --git a/media/business_logos/albidar-logo.jpg b/media/business_logos/albidar-logo.jpg deleted file mode 100644 index b8e633a..0000000 Binary files a/media/business_logos/albidar-logo.jpg and /dev/null differ diff --git a/media/product_images/بيض.jfif b/media/product_images/بيض.jfif deleted file mode 100644 index bafeb76..0000000 Binary files a/media/product_images/بيض.jfif and /dev/null differ diff --git a/media/product_images/ةهمن.jfif b/media/product_images/ةهمن.jfif deleted file mode 100644 index 01da5c2..0000000 Binary files a/media/product_images/ةهمن.jfif and /dev/null differ diff --git a/media/product_images/ةهمن_et0OoKU.jfif b/media/product_images/ةهمن_et0OoKU.jfif deleted file mode 100644 index 01da5c2..0000000 Binary files a/media/product_images/ةهمن_et0OoKU.jfif and /dev/null differ diff --git a/media/product_images/ةهمن_r3GdN2u.jfif b/media/product_images/ةهمن_r3GdN2u.jfif deleted file mode 100644 index 01da5c2..0000000 Binary files a/media/product_images/ةهمن_r3GdN2u.jfif and /dev/null differ diff --git a/media/product_images/طماطم.jfif b/media/product_images/طماطم.jfif deleted file mode 100644 index c09d01a..0000000 Binary files a/media/product_images/طماطم.jfif and /dev/null differ diff --git a/media/profile_pics/meezan.png b/media/profile_pics/meezan.png deleted file mode 100644 index 3bd1e19..0000000 Binary files a/media/profile_pics/meezan.png and /dev/null differ diff --git a/media/temp_invoices/Invoice_18.pdf b/media/temp_invoices/Invoice_18.pdf deleted file mode 100644 index e5ccacd..0000000 Binary files a/media/temp_invoices/Invoice_18.pdf and /dev/null differ diff --git a/media/temp_invoices/invoice_26_1770793647.pdf b/media/temp_invoices/invoice_26_1770793647.pdf deleted file mode 100644 index 290bd05..0000000 Binary files a/media/temp_invoices/invoice_26_1770793647.pdf and /dev/null differ diff --git a/media/temp_invoices/invoice_26_1770794941.pdf b/media/temp_invoices/invoice_26_1770794941.pdf deleted file mode 100644 index e9e9cd8..0000000 Binary files a/media/temp_invoices/invoice_26_1770794941.pdf and /dev/null differ diff --git a/media/temp_invoices/invoice_26_1770795250.pdf b/media/temp_invoices/invoice_26_1770795250.pdf deleted file mode 100644 index 75605f2..0000000 Binary files a/media/temp_invoices/invoice_26_1770795250.pdf and /dev/null differ diff --git a/media/temp_invoices/invoice_26_1770795695.pdf b/media/temp_invoices/invoice_26_1770795695.pdf deleted file mode 100644 index 08cf6d9..0000000 Binary files a/media/temp_invoices/invoice_26_1770795695.pdf and /dev/null differ diff --git a/media/temp_invoices/invoice_26_1770797380.pdf b/media/temp_invoices/invoice_26_1770797380.pdf deleted file mode 100644 index 8748d1e..0000000 Binary files a/media/temp_invoices/invoice_26_1770797380.pdf and /dev/null differ diff --git a/media/temp_invoices/invoice_26_1770798382.pdf b/media/temp_invoices/invoice_26_1770798382.pdf deleted file mode 100644 index 867f2b8..0000000 Binary files a/media/temp_invoices/invoice_26_1770798382.pdf and /dev/null differ diff --git a/media/temp_invoices/invoice_26_1770798676.pdf b/media/temp_invoices/invoice_26_1770798676.pdf deleted file mode 100644 index d68ddef..0000000 Binary files a/media/temp_invoices/invoice_26_1770798676.pdf and /dev/null differ diff --git a/media/temp_invoices/invoice_26_1770802715.pdf b/media/temp_invoices/invoice_26_1770802715.pdf deleted file mode 100644 index 03493d0..0000000 Binary files a/media/temp_invoices/invoice_26_1770802715.pdf and /dev/null differ diff --git a/media/temp_invoices/invoice_26_1770802858.pdf b/media/temp_invoices/invoice_26_1770802858.pdf deleted file mode 100644 index a438d30..0000000 Binary files a/media/temp_invoices/invoice_26_1770802858.pdf and /dev/null differ diff --git a/media/temp_quotations/quotation_1_1770794329.pdf b/media/temp_quotations/quotation_1_1770794329.pdf deleted file mode 100644 index 3cd700e..0000000 Binary files a/media/temp_quotations/quotation_1_1770794329.pdf and /dev/null differ diff --git a/media/temp_quotations/quotation_1_1770797431.pdf b/media/temp_quotations/quotation_1_1770797431.pdf deleted file mode 100644 index 8427444..0000000 Binary files a/media/temp_quotations/quotation_1_1770797431.pdf and /dev/null differ diff --git a/staticfiles/@popperjs/core/LICENSE.md b/staticfiles/@popperjs/core/LICENSE.md deleted file mode 100644 index 0370c45..0000000 --- a/staticfiles/@popperjs/core/LICENSE.md +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2019 Federico Zivolo - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/staticfiles/@popperjs/core/README.md b/staticfiles/@popperjs/core/README.md deleted file mode 100644 index 53be7b9..0000000 --- a/staticfiles/@popperjs/core/README.md +++ /dev/null @@ -1,376 +0,0 @@ - -

- Popper -

- -
-

Tooltip & Popover Positioning Engine

-
- -

- - npm version - - - npm downloads per month (popper.js + @popperjs/core) - - - Rolling Versions - -

- -
- - -**Positioning tooltips and popovers is difficult. Popper is here to help!** - -Given an element, such as a button, and a tooltip element describing it, Popper -will automatically put the tooltip in the right place near the button. - -It will position _any_ UI element that "pops out" from the flow of your document -and floats near a target element. The most common example is a tooltip, but it -also includes popovers, drop-downs, and more. All of these can be generically -described as a "popper" element. - -## Demo - -[![Popper visualized](https://i.imgur.com/F7qWsmV.jpg)](https://popper.js.org) - -## Docs - -- [v2.x (latest)](https://popper.js.org/docs/v2/) -- [v1.x](https://popper.js.org/docs/v1/) - -We've created a -[Migration Guide](https://popper.js.org/docs/v2/migration-guide/) to help you -migrate from Popper 1 to Popper 2. - -To contribute to the Popper website and documentation, please visit the -[dedicated repository](https://github.com/popperjs/website). - -## Why not use pure CSS? - -- **Clipping and overflow issues**: Pure CSS poppers will not be prevented from - overflowing clipping boundaries, such as the viewport. It will get partially - cut off or overflows if it's near the edge since there is no dynamic - positioning logic. When using Popper, your popper will always be positioned in - the right place without needing manual adjustments. -- **No flipping**: CSS poppers will not flip to a different placement to fit - better in view if necessary. While you can manually adjust for the main axis - overflow, this feature cannot be achieved via CSS alone. Popper automatically - flips the tooltip to make it fit in view as best as possible for the user. -- **No virtual positioning**: CSS poppers cannot follow the mouse cursor or be - used as a context menu. Popper allows you to position your tooltip relative to - any coordinates you desire. -- **Slower development cycle**: When pure CSS is used to position popper - elements, the lack of dynamic positioning means they must be carefully placed - to consider overflow on all screen sizes. In reusable component libraries, - this means a developer can't just add the component anywhere on the page, - because these issues need to be considered and adjusted for every time. With - Popper, you can place your elements anywhere and they will be positioned - correctly, without needing to consider different screen sizes, layouts, etc. - This massively speeds up development time because this work is automatically - offloaded to Popper. -- **Lack of extensibility**: CSS poppers cannot be easily extended to fit any - arbitrary use case you may need to adjust for. Popper is built with - extensibility in mind. - -## Why Popper? - -With the CSS drawbacks out of the way, we now move on to Popper in the -JavaScript space itself. - -Naive JavaScript tooltip implementations usually have the following problems: - -- **Scrolling containers**: They don't ensure the tooltip stays with the - reference element while scrolling when inside any number of scrolling - containers. -- **DOM context**: They often require the tooltip move outside of its original - DOM context because they don't handle `offsetParent` contexts. -- **Compatibility**: Popper handles an incredible number of edge cases regarding - different browsers and environments (mobile viewports, RTL, scrollbars enabled - or disabled, etc.). Popper is a popular and well-maintained library, so you - can be confident positioning will work for your users on any device. -- **Configurability**: They often lack advanced configurability to suit any - possible use case. -- **Size**: They are usually relatively large in size, or require an ancient - jQuery dependency. -- **Performance**: They often have runtime performance issues and update the - tooltip position too slowly. - -**Popper solves all of these key problems in an elegant, performant manner.** It -is a lightweight ~3 kB library that aims to provide a reliable and extensible -positioning engine you can use to ensure all your popper elements are positioned -in the right place. - -When you start writing your own popper implementation, you'll quickly run into -all of the problems mentioned above. These widgets are incredibly common in our -UIs; we've done the hard work figuring this out so you don't need to spend hours -fixing and handling numerous edge cases that we already ran into while building -the library! - -Popper is used in popular libraries like Bootstrap, Foundation, Material UI, and -more. It's likely you've already used popper elements on the web positioned by -Popper at some point in the past few years. - -Since we write UIs using powerful abstraction libraries such as React or Angular -nowadays, you'll also be glad to know Popper can fully integrate with them and -be a good citizen together with your other components. Check out `react-popper` -for the official Popper wrapper for React. - -## Installation - -### 1. Package Manager - -```bash -# With npm -npm i @popperjs/core - -# With Yarn -yarn add @popperjs/core -``` - -### 2. CDN - -```html - - - - - -``` - -### 3. Direct Download? - -Managing dependencies by "directly downloading" them and placing them into your -source code is not recommended for a variety of reasons, including missing out -on feat/fix updates easily. Please use a versioning management system like a CDN -or npm/Yarn. - -## Usage - -The most straightforward way to get started is to import Popper from the `unpkg` -CDN, which includes all of its features. You can call the `Popper.createPopper` -constructor to create new popper instances. - -Here is a complete example: - -```html - -Popper example - - - - - - - - -``` - -Visit the [tutorial](https://popper.js.org/docs/v2/tutorial/) for an example of -how to build your own tooltip from scratch using Popper. - -### Module bundlers - -You can import the `createPopper` constructor from the fully-featured file: - -```js -import { createPopper } from '@popperjs/core'; - -const button = document.querySelector('#button'); -const tooltip = document.querySelector('#tooltip'); - -// Pass the button, the tooltip, and some options, and Popper will do the -// magic positioning for you: -createPopper(button, tooltip, { - placement: 'right', -}); -``` - -All the modifiers listed in the docs menu will be enabled and "just work", so -you don't need to think about setting Popper up. The size of Popper including -all of its features is about 5 kB minzipped, but it may grow a bit in the -future. - -#### Popper Lite (tree-shaking) - -If bundle size is important, you'll want to take advantage of tree-shaking. The -library is built in a modular way to allow to import only the parts you really -need. - -```js -import { createPopperLite as createPopper } from '@popperjs/core'; -``` - -The Lite version includes the most necessary modifiers that will compute the -offsets of the popper, compute and add the positioning styles, and add event -listeners. This is close in bundle size to pure CSS tooltip libraries, and -behaves somewhat similarly. - -However, this does not include the features that makes Popper truly useful. - -The two most useful modifiers not included in Lite are `preventOverflow` and -`flip`: - -```js -import { - createPopperLite as createPopper, - preventOverflow, - flip, -} from '@popperjs/core'; - -const button = document.querySelector('#button'); -const tooltip = document.querySelector('#tooltip'); - -createPopper(button, tooltip, { - modifiers: [preventOverflow, flip], -}); -``` - -As you make more poppers, you may be finding yourself needing other modifiers -provided by the library. - -See [tree-shaking](https://popper.js.org/docs/v2/performance/#tree-shaking) for more -information. - -## Distribution targets - -Popper is distributed in 3 different versions, in 3 different file formats. - -The 3 file formats are: - -- `esm` (works with `import` syntax — **recommended**) -- `umd` (works with ` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Page not found · GitHub · GitHub - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - -
- Skip to content - - - - - - - - - - - -
-
- - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - -
- - - - - -
- - - - - - - - - -
-
- - - -
-
- -
-
- 404 “This is not the web page you are looking for” - - - - - - - - - - - - -
-
- -
-
- -
- - -
-
- -
- -
- -
- - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - diff --git a/staticfiles/fonts/Cairo-Regular.ttf b/staticfiles/fonts/Cairo-Regular.ttf deleted file mode 100644 index 70e0122..0000000 --- a/staticfiles/fonts/Cairo-Regular.ttf +++ /dev/null @@ -1,1449 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Page not found · GitHub · GitHub - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - -
- Skip to content - - - - - - - - - - - -
-
- - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - -
- - - - - -
- - - - - - - - - -
-
- - - -
-
- -
-
- 404 “This is not the web page you are looking for” - - - - - - - - - - - - -
-
- -
-
- -
- - -
-
- -
- -
- -
- - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - diff --git a/staticfiles/js/JsBarcode.all.min.js b/staticfiles/js/JsBarcode.all.min.js deleted file mode 100644 index d9e864c..0000000 --- a/staticfiles/js/JsBarcode.all.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! JsBarcode v3.11.5 | (c) Johan Lindell | MIT license */ -!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=15)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e,this.text=n.text||e,this.options=n}},function(t,e,n){"use strict";var r;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var i=e.SET_A=0,a=e.SET_B=1,u=e.SET_C=2,f=(e.SHIFT=98,e.START_A=103),c=e.START_B=104,s=e.START_C=105;e.MODULO=103,e.STOP=106,e.FNC1=207,e.SET_BY_CODE=(o(r={},f,i),o(r,c,a),o(r,s,u),r),e.SWAP={101:i,100:a,99:u},e.A_START_CHAR=String.fromCharCode(208),e.B_START_CHAR=String.fromCharCode(209),e.C_START_CHAR=String.fromCharCode(210),e.A_CHARS="[\0-_È-Ï]",e.B_CHARS="[ -È-Ï]",e.C_CHARS="(Ï*[0-9]{2}Ï*)",e.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SIDE_BIN="101",e.MIDDLE_BIN="01010",e.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},e.EAN2_STRUCTURE=["LL","LG","GL","GG"],e.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],e.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2);e.default=function(t,e,n){var o=t.split("").map((function(t,n){return r.BINARIES[e[n]]})).map((function(e,n){return e?e[t[n]]:""}));if(n){var i=t.length-1;o=o.map((function(t,e){return e=200){i=t.shift()-105;var a=u.SWAP[i];void 0!==a?o=e.next(t,n+1,a):(r!==u.SET_A&&r!==u.SET_B||i!==u.SHIFT||(t[0]=r===u.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),o=e.next(t,n+1,r))}else i=e.correctIndex(t,r),o=e.next(t,n+1,r);var f=i*n;return{result:e.getBar(i)+o.result,checksum:f+o.checksum}}}]),e}(a.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mod10=function(t){for(var e=0,n=0;n10*n.width?10*n.width:n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(t,e){return this.text.substr(t,e)}},{key:"leftEncode",value:function(t,e){return(0,i.default)(t,e)}},{key:"rightText",value:function(t,e){return this.text.substr(t,e)}},{key:"rightEncode",value:function(t,e){return(0,i.default)(t,e)}},{key:"encodeGuarded",value:function(){var t={fontSize:this.fontSize},e={height:this.guardHeight};return[{data:o.SIDE_BIN,options:e},{data:this.leftEncode(),text:this.leftText(),options:t},{data:o.MIDDLE_BIN,options:e},{data:this.rightEncode(),text:this.rightText(),options:t},{data:o.SIDE_BIN,options:e}]}},{key:"encodeFlat",value:function(){return{data:[o.SIDE_BIN,this.leftEncode(),o.MIDDLE_BIN,this.rightEncode(),o.SIDE_BIN].join(""),text:this.text}}}]),e}(a(n(0)).default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n10*n.width?r.fontSize=10*n.width:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==u(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=(0,o.default)(this.data.substr(0,6),"LLLLLL"),t+="01010",t+=(0,o.default)(this.data.substr(6,6),"RRRRRR"),{data:t+="101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101"+(0,o.default)(this.data[0],"L"),options:{height:this.guardHeight}}),t.push({data:(0,o.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),t.push({data:"01010",options:{height:this.guardHeight}}),t.push({data:(0,o.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),t.push({data:(0,o.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),t}}]),e}(i(n(0)).default);function u(t){var e,n=0;for(e=1;e<11;e+=2)n+=parseInt(t[e]);for(e=0;e<11;e+=2)n+=3*parseInt(t[e]);return(10-n%10)%10}e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function u(t,e,n){if(n.displayValue&&ee&&(e=t[n].height);return e},e.getEncodingHeight=a,e.getBarcodePadding=u,e.calculateEncodingAttributes=function(t,e,n){for(var r=0;r=i(t);return e+String.fromCharCode(r?206:205)+u(t,r)}e.default=function(t){var e=void 0;if(a(t).length>=2)e=r.C_START_CHAR+f(t);else{var n=o(t)>i(t);e=(n?r.A_START_CHAR:r.B_START_CHAR)+u(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(t,e){return String.fromCharCode(203)+e}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n10*n.width?r.fontSize=10*n.width:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=this.encodeMiddleDigits(),{data:t+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101",options:{height:this.guardHeight}}),t.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),t.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),t}},{key:"encodeMiddleDigits",value:function(){var t=this.upcA[0],e=this.upcA[this.upcA.length-1],n=s[parseInt(e)][parseInt(t)];return(0,o.default)(this.middleDigits,n)}}]),e}(i.default);function p(t,e){for(var n=parseInt(t[t.length-1]),r=c[n],o="",i=0,u=0;u=3&&this.number<=131070}}]),e}(((r=i)&&r.__esModule?r:{default:r}).default);e.pharmacode=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.codabar=void 0;var r,o=function(){function t(t,e){for(var n=0;n0?(n=0,o.textAlign="left"):"right"==t.textAlign?(n=e.width-1,o.textAlign="right"):(n=e.width/2,o.textAlign="center"),o.fillText(e.text,n,r))}},{key:"moveCanvasDrawing",value:function(t){this.canvas.getContext("2d").translate(t.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),t}();e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n0&&(this.drawRect(a-e.width*i,r,e.width*i,e.height,t),i=0);i>0&&this.drawRect(a-e.width*(i-1),r,e.width*i,e.height,t)}},{key:"drawSVGText",value:function(t,e,n){var r,o,i=this.document.createElementNS(f,"text");e.displayValue&&(i.setAttribute("style","font:"+e.fontOptions+" "+e.fontSize+"px "+e.font),o="top"==e.textPosition?e.fontSize-e.textMargin:e.height+e.textMargin+e.fontSize,"left"==e.textAlign||n.barcodePadding>0?(r=0,i.setAttribute("text-anchor","start")):"right"==e.textAlign?(r=n.width-1,i.setAttribute("text-anchor","end")):(r=n.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",r),i.setAttribute("y",o),i.appendChild(this.document.createTextNode(n.text)),t.appendChild(i))}},{key:"setSvgAttributes",value:function(t,e){var n=this.svg;n.setAttribute("width",t+"px"),n.setAttribute("height",e+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+t+" "+e),n.setAttribute("xmlns",f),n.setAttribute("version","1.1"),n.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(t,e,n){var r=this.document.createElementNS(f,"g");return r.setAttribute("transform","translate("+t+", "+e+")"),n.appendChild(r),r}},{key:"setGroupOptions",value:function(t,e){t.setAttribute("style","fill:"+e.lineColor+";")}},{key:"drawRect",value:function(t,e,n,r,o){var i=this.document.createElementNS(f,"rect");return i.setAttribute("x",t),i.setAttribute("y",e),i.setAttribute("width",n),i.setAttribute("height",r),o.appendChild(i),i}}]),t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n= 0), - `created_at` datetime(6) NOT NULL, - `content_type_id` int(11) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `accounting_journalen_content_type_id_93a0cf24_fk_django_co` (`content_type_id`), - CONSTRAINT `accounting_journalen_content_type_id_93a0cf24_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `accounting_journalentry` --- - -LOCK TABLES `accounting_journalentry` WRITE; -/*!40000 ALTER TABLE `accounting_journalentry` DISABLE KEYS */; -INSERT INTO `accounting_journalentry` VALUES -(2,'2026-02-03','Sale Invoice #17','Sale #17',17,'2026-02-03 04:16:49.397681',8), -(4,'2026-02-03','Purchase Invoice #2','Purchase #2',2,'2026-02-03 04:17:33.077799',12), -(5,'2026-02-03','Payment for Purchase #2','PurchasePayment #2',2,'2026-02-03 04:17:33.099666',17), -(7,'2026-02-03','Sale Invoice #18','Sale #18',18,'2026-02-03 05:59:41.804161',8), -(8,'2026-02-03','Payment for Sale #18','SalePayment #5',5,'2026-02-03 05:59:41.823638',18), -(10,'2026-02-03','Sale Invoice #19','Sale #19',19,'2026-02-03 06:07:24.481047',8), -(11,'2026-02-03','Payment for Sale #19','SalePayment #6',6,'2026-02-03 06:07:24.491682',18), -(13,'2026-02-05','Sale Invoice #20','Sale #20',20,'2026-02-05 12:53:16.963921',8), -(15,'2026-02-05','Sale Invoice #21','Sale #21',21,'2026-02-05 13:09:39.149488',8), -(16,'2026-02-05','Payment for Sale #21','SalePayment #7',7,'2026-02-05 13:09:39.174460',18), -(17,'2026-02-06','Purchase Invoice #3','Purchase #3',3,'2026-02-06 05:52:34.612218',12), -(19,'2026-02-06','Sale Invoice #22','Sale #22',22,'2026-02-06 07:17:39.020197',8), -(20,'2026-02-06','Payment for Sale #22','SalePayment #8',8,'2026-02-06 07:17:39.063531',18), -(22,'2026-02-06','Sale Invoice #23','Sale #23',23,'2026-02-06 07:46:49.440656',8), -(23,'2026-02-06','Payment for Sale #23','SalePayment #9',9,'2026-02-06 07:46:49.467691',18), -(25,'2026-02-08','Expense: Salary','Expense #2',2,'2026-02-08 05:34:35.998613',31), -(26,'2026-02-10','Sale Invoice #24','Sale #24',24,'2026-02-10 03:04:16.023044',8), -(27,'2026-02-10','Payment for Sale #24','SalePayment #10',10,'2026-02-10 03:04:16.092749',18), -(28,'2026-02-10','Sale Invoice #25','Sale #25',25,'2026-02-10 03:08:51.914034',8), -(29,'2026-02-10','Payment for Sale #25','SalePayment #11',11,'2026-02-10 03:08:51.925347',18), -(31,'2026-02-10','Payment for Purchase #6','PurchasePayment #3',3,'2026-02-10 03:46:15.685209',17), -(32,'2026-02-10','Purchase Invoice #6','Purchase #6',6,'2026-02-10 03:46:15.708746',12), -(34,'2026-02-10','Sale Invoice #26','Sale #26',26,'2026-02-10 15:17:49.941248',8), -(35,'2026-02-10','Payment for Sale #26','SalePayment #12',12,'2026-02-10 15:17:50.196015',18), -(37,'2026-02-10','Purchase Invoice #8','Purchase #8',8,'2026-02-10 15:21:43.476820',12); -/*!40000 ALTER TABLE `accounting_journalentry` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `accounting_journalitem` --- - -DROP TABLE IF EXISTS `accounting_journalitem`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `accounting_journalitem` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `type` varchar(10) NOT NULL, - `amount` decimal(15,3) NOT NULL, - `notes` varchar(255) NOT NULL, - `account_id` bigint(20) NOT NULL, - `entry_id` bigint(20) NOT NULL, - PRIMARY KEY (`id`), - KEY `accounting_journalit_account_id_059cd84b_fk_accountin` (`account_id`), - KEY `accounting_journalit_entry_id_77fe1231_fk_accountin` (`entry_id`), - CONSTRAINT `accounting_journalit_account_id_059cd84b_fk_accountin` FOREIGN KEY (`account_id`) REFERENCES `accounting_account` (`id`), - CONSTRAINT `accounting_journalit_entry_id_77fe1231_fk_accountin` FOREIGN KEY (`entry_id`) REFERENCES `accounting_journalentry` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `accounting_journalitem` --- - -LOCK TABLES `accounting_journalitem` WRITE; -/*!40000 ALTER TABLE `accounting_journalitem` DISABLE KEYS */; -INSERT INTO `accounting_journalitem` VALUES -(3,'debit',7.500,'',3,2), -(4,'credit',7.500,'',9,2), -(7,'debit',122.000,'',4,4), -(8,'credit',122.000,'',5,4), -(9,'debit',22.000,'',5,5), -(10,'credit',22.000,'',1,5), -(13,'debit',55.000,'',3,7), -(14,'credit',55.000,'',9,7), -(15,'debit',55.000,'',1,8), -(16,'credit',55.000,'',3,8), -(19,'debit',2.500,'',3,10), -(20,'credit',2.500,'',9,10), -(21,'debit',2.500,'',1,11), -(22,'credit',2.500,'',3,11), -(25,'debit',1002.950,'',3,13), -(26,'credit',1002.950,'',9,13), -(29,'debit',1.523,'',3,15), -(30,'credit',1.523,'',9,15), -(31,'debit',1.523,'',1,16), -(32,'credit',1.523,'',3,16), -(33,'debit',100.000,'',4,17), -(34,'credit',100.000,'',5,17), -(37,'debit',3.885,'',3,19), -(38,'credit',3.885,'',9,19), -(39,'debit',3.885,'',1,20), -(40,'credit',3.885,'',3,20), -(43,'debit',1.523,'',3,22), -(44,'credit',1.523,'',9,22), -(45,'debit',1.523,'',1,23), -(46,'credit',1.523,'',3,23), -(47,'debit',1000.000,'',15,25), -(48,'credit',1000.000,'',1,25), -(49,'debit',2.500,'',3,26), -(50,'credit',2.500,'',9,26), -(51,'debit',2.500,'',1,27), -(52,'credit',2.500,'',3,27), -(53,'debit',2.500,'',3,28), -(54,'credit',2.500,'',9,28), -(55,'debit',2.500,'',1,29), -(56,'credit',2.500,'',3,29), -(59,'debit',1.000,'',5,31), -(60,'credit',1.000,'',1,31), -(61,'debit',1.000,'',4,32), -(62,'credit',1.000,'',5,32), -(65,'debit',26.250,'',3,34), -(66,'credit',26.250,'',9,34), -(67,'debit',26.250,'',1,35), -(68,'credit',26.250,'',3,35), -(71,'debit',25.000,'',4,37), -(72,'credit',25.000,'',5,37); -/*!40000 ALTER TABLE `accounting_journalitem` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `auth_group` --- - -DROP TABLE IF EXISTS `auth_group`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `auth_group` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(150) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `name` (`name`) -) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `auth_group` --- - -LOCK TABLES `auth_group` WRITE; -/*!40000 ALTER TABLE `auth_group` DISABLE KEYS */; -INSERT INTO `auth_group` VALUES -(3,'accountant'), -(1,'admin'), -(4,'cashier'), -(2,'manager'); -/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `auth_group_permissions` --- - -DROP TABLE IF EXISTS `auth_group_permissions`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `auth_group_permissions` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `group_id` int(11) NOT NULL, - `permission_id` int(11) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`), - KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`), - CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`), - CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `auth_group_permissions` --- - -LOCK TABLES `auth_group_permissions` WRITE; -/*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */; -/*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `auth_permission` --- - -DROP TABLE IF EXISTS `auth_permission`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `auth_permission` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL, - `content_type_id` int(11) NOT NULL, - `codename` varchar(100) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`), - CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=181 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `auth_permission` --- - -LOCK TABLES `auth_permission` WRITE; -/*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */; -INSERT INTO `auth_permission` VALUES -(1,'Can add log entry',1,'add_logentry'), -(2,'Can change log entry',1,'change_logentry'), -(3,'Can delete log entry',1,'delete_logentry'), -(4,'Can view log entry',1,'view_logentry'), -(5,'Can add permission',2,'add_permission'), -(6,'Can change permission',2,'change_permission'), -(7,'Can delete permission',2,'delete_permission'), -(8,'Can view permission',2,'view_permission'), -(9,'Can add group',3,'add_group'), -(10,'Can change group',3,'change_group'), -(11,'Can delete group',3,'delete_group'), -(12,'Can view group',3,'view_group'), -(13,'Can add user',4,'add_user'), -(14,'Can change user',4,'change_user'), -(15,'Can delete user',4,'delete_user'), -(16,'Can view user',4,'view_user'), -(17,'Can add content type',5,'add_contenttype'), -(18,'Can change content type',5,'change_contenttype'), -(19,'Can delete content type',5,'delete_contenttype'), -(20,'Can view content type',5,'view_contenttype'), -(21,'Can add session',6,'add_session'), -(22,'Can change session',6,'change_session'), -(23,'Can delete session',6,'delete_session'), -(24,'Can view session',6,'view_session'), -(25,'Can add sale item',7,'add_saleitem'), -(26,'Can change sale item',7,'change_saleitem'), -(27,'Can delete sale item',7,'delete_saleitem'), -(28,'Can view sale item',7,'view_saleitem'), -(29,'Can add sale',8,'add_sale'), -(30,'Can change sale',8,'change_sale'), -(31,'Can delete sale',8,'delete_sale'), -(32,'Can view sale',8,'view_sale'), -(33,'Can add customer',9,'add_customer'), -(34,'Can change customer',9,'change_customer'), -(35,'Can delete customer',9,'delete_customer'), -(36,'Can view customer',9,'view_customer'), -(37,'Can add product',10,'add_product'), -(38,'Can change product',10,'change_product'), -(39,'Can delete product',10,'delete_product'), -(40,'Can view product',10,'view_product'), -(41,'Can add category',11,'add_category'), -(42,'Can change category',11,'change_category'), -(43,'Can delete category',11,'delete_category'), -(44,'Can view category',11,'view_category'), -(45,'Can add purchase',12,'add_purchase'), -(46,'Can change purchase',12,'change_purchase'), -(47,'Can delete purchase',12,'delete_purchase'), -(48,'Can view purchase',12,'view_purchase'), -(49,'Can add supplier',13,'add_supplier'), -(50,'Can change supplier',13,'change_supplier'), -(51,'Can delete supplier',13,'delete_supplier'), -(52,'Can view supplier',13,'view_supplier'), -(53,'Can add system setting',14,'add_systemsetting'), -(54,'Can change system setting',14,'change_systemsetting'), -(55,'Can delete system setting',14,'delete_systemsetting'), -(56,'Can view system setting',14,'view_systemsetting'), -(57,'Can add unit',15,'add_unit'), -(58,'Can change unit',15,'change_unit'), -(59,'Can delete unit',15,'delete_unit'), -(60,'Can view unit',15,'view_unit'), -(61,'Can add purchase item',16,'add_purchaseitem'), -(62,'Can change purchase item',16,'change_purchaseitem'), -(63,'Can delete purchase item',16,'delete_purchaseitem'), -(64,'Can view purchase item',16,'view_purchaseitem'), -(65,'Can add purchase payment',17,'add_purchasepayment'), -(66,'Can change purchase payment',17,'change_purchasepayment'), -(67,'Can delete purchase payment',17,'delete_purchasepayment'), -(68,'Can view purchase payment',17,'view_purchasepayment'), -(69,'Can add sale payment',18,'add_salepayment'), -(70,'Can change sale payment',18,'change_salepayment'), -(71,'Can delete sale payment',18,'delete_salepayment'), -(72,'Can view sale payment',18,'view_salepayment'), -(73,'Can add quotation',19,'add_quotation'), -(74,'Can change quotation',19,'change_quotation'), -(75,'Can delete quotation',19,'delete_quotation'), -(76,'Can view quotation',19,'view_quotation'), -(77,'Can add quotation item',20,'add_quotationitem'), -(78,'Can change quotation item',20,'change_quotationitem'), -(79,'Can delete quotation item',20,'delete_quotationitem'), -(80,'Can view quotation item',20,'view_quotationitem'), -(81,'Can add sale return item',21,'add_salereturnitem'), -(82,'Can change sale return item',21,'change_salereturnitem'), -(83,'Can delete sale return item',21,'delete_salereturnitem'), -(84,'Can view sale return item',21,'view_salereturnitem'), -(85,'Can add purchase return item',22,'add_purchasereturnitem'), -(86,'Can change purchase return item',22,'change_purchasereturnitem'), -(87,'Can delete purchase return item',22,'delete_purchasereturnitem'), -(88,'Can view purchase return item',22,'view_purchasereturnitem'), -(89,'Can add purchase return',23,'add_purchasereturn'), -(90,'Can change purchase return',23,'change_purchasereturn'), -(91,'Can delete purchase return',23,'delete_purchasereturn'), -(92,'Can view purchase return',23,'view_purchasereturn'), -(93,'Can add sale return',24,'add_salereturn'), -(94,'Can change sale return',24,'change_salereturn'), -(95,'Can delete sale return',24,'delete_salereturn'), -(96,'Can view sale return',24,'view_salereturn'), -(97,'Can add payment method',25,'add_paymentmethod'), -(98,'Can change payment method',25,'change_paymentmethod'), -(99,'Can delete payment method',25,'delete_paymentmethod'), -(100,'Can view payment method',25,'view_paymentmethod'), -(101,'Can add held sale',26,'add_heldsale'), -(102,'Can change held sale',26,'change_heldsale'), -(103,'Can delete held sale',26,'delete_heldsale'), -(104,'Can view held sale',26,'view_heldsale'), -(105,'Can add loyalty tier',27,'add_loyaltytier'), -(106,'Can change loyalty tier',27,'change_loyaltytier'), -(107,'Can delete loyalty tier',27,'delete_loyaltytier'), -(108,'Can view loyalty tier',27,'view_loyaltytier'), -(109,'Can add loyalty transaction',28,'add_loyaltytransaction'), -(110,'Can change loyalty transaction',28,'change_loyaltytransaction'), -(111,'Can delete loyalty transaction',28,'delete_loyaltytransaction'), -(112,'Can view loyalty transaction',28,'view_loyaltytransaction'), -(113,'Can add user profile',29,'add_userprofile'), -(114,'Can change user profile',29,'change_userprofile'), -(115,'Can delete user profile',29,'delete_userprofile'), -(116,'Can view user profile',29,'view_userprofile'), -(117,'Can add expense category',30,'add_expensecategory'), -(118,'Can change expense category',30,'change_expensecategory'), -(119,'Can delete expense category',30,'delete_expensecategory'), -(120,'Can view expense category',30,'view_expensecategory'), -(121,'Can add expense',31,'add_expense'), -(122,'Can change expense',31,'change_expense'), -(123,'Can delete expense',31,'delete_expense'), -(124,'Can view expense',31,'view_expense'), -(125,'Can add account',32,'add_account'), -(126,'Can change account',32,'change_account'), -(127,'Can delete account',32,'delete_account'), -(128,'Can view account',32,'view_account'), -(129,'Can add journal item',33,'add_journalitem'), -(130,'Can change journal item',33,'change_journalitem'), -(131,'Can delete journal item',33,'delete_journalitem'), -(132,'Can view journal item',33,'view_journalitem'), -(133,'Can add journal entry',34,'add_journalentry'), -(134,'Can change journal entry',34,'change_journalentry'), -(135,'Can delete journal entry',34,'delete_journalentry'), -(136,'Can view journal entry',34,'view_journalentry'), -(137,'Can add device',35,'add_device'), -(138,'Can change device',35,'change_device'), -(139,'Can delete device',35,'delete_device'), -(140,'Can view device',35,'view_device'), -(141,'Can add leave request',36,'add_leaverequest'), -(142,'Can change leave request',36,'change_leaverequest'), -(143,'Can delete leave request',36,'delete_leaverequest'), -(144,'Can view leave request',36,'view_leaverequest'), -(145,'Can add department',37,'add_department'), -(146,'Can change department',37,'change_department'), -(147,'Can delete department',37,'delete_department'), -(148,'Can view department',37,'view_department'), -(149,'Can add employee',38,'add_employee'), -(150,'Can change employee',38,'change_employee'), -(151,'Can delete employee',38,'delete_employee'), -(152,'Can view employee',38,'view_employee'), -(153,'Can add job position',39,'add_jobposition'), -(154,'Can change job position',39,'change_jobposition'), -(155,'Can delete job position',39,'delete_jobposition'), -(156,'Can view job position',39,'view_jobposition'), -(157,'Can add attendance',40,'add_attendance'), -(158,'Can change attendance',40,'change_attendance'), -(159,'Can delete attendance',40,'delete_attendance'), -(160,'Can view attendance',40,'view_attendance'), -(161,'Can add biometric device',41,'add_biometricdevice'), -(162,'Can change biometric device',41,'change_biometricdevice'), -(163,'Can delete biometric device',41,'delete_biometricdevice'), -(164,'Can view biometric device',41,'view_biometricdevice'), -(165,'Can add purchase order',42,'add_purchaseorder'), -(166,'Can change purchase order',42,'change_purchaseorder'), -(167,'Can delete purchase order',42,'delete_purchaseorder'), -(168,'Can view purchase order',42,'view_purchaseorder'), -(169,'Can add purchase order item',43,'add_purchaseorderitem'), -(170,'Can change purchase order item',43,'change_purchaseorderitem'), -(171,'Can delete purchase order item',43,'delete_purchaseorderitem'), -(172,'Can view purchase order item',43,'view_purchaseorderitem'), -(173,'Can add Cashier Counter Registry',44,'add_cashiercounterregistry'), -(174,'Can change Cashier Counter Registry',44,'change_cashiercounterregistry'), -(175,'Can delete Cashier Counter Registry',44,'delete_cashiercounterregistry'), -(176,'Can view Cashier Counter Registry',44,'view_cashiercounterregistry'), -(177,'Can add cashier session',45,'add_cashiersession'), -(178,'Can change cashier session',45,'change_cashiersession'), -(179,'Can delete cashier session',45,'delete_cashiersession'), -(180,'Can view cashier session',45,'view_cashiersession'); -/*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `auth_user` --- - -DROP TABLE IF EXISTS `auth_user`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `auth_user` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `password` varchar(128) NOT NULL, - `last_login` datetime(6) DEFAULT NULL, - `is_superuser` tinyint(1) NOT NULL, - `username` varchar(150) NOT NULL, - `first_name` varchar(150) NOT NULL, - `last_name` varchar(150) NOT NULL, - `email` varchar(254) NOT NULL, - `is_staff` tinyint(1) NOT NULL, - `is_active` tinyint(1) NOT NULL, - `date_joined` datetime(6) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `username` (`username`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `auth_user` --- - -LOCK TABLES `auth_user` WRITE; -/*!40000 ALTER TABLE `auth_user` DISABLE KEYS */; -INSERT INTO `auth_user` VALUES -(1,'pbkdf2_sha256$1000000$q0WUfExOSfngHQWhUiSf8J$1HDj47RS3/NF1mvJ/ELkt06k43hRqxwu2dfcTT24O3E=','2026-02-10 06:04:53.713070',1,'admin','Moosa Ali','Al-Abri','aalabry@gmail.com',1,1,'2026-02-02 06:58:12.616144'), -(2,'pbkdf2_sha256$1000000$D2l0oUwMFQa8WYRoXqgtJC$fcZlzvv6geNXBeA2U9D05Mvz1GwLnDpbovQ4ykSO1OE=',NULL,0,'zaher','','','zaher@gmail.com',0,1,'2026-02-11 02:43:49.530998'); -/*!40000 ALTER TABLE `auth_user` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `auth_user_groups` --- - -DROP TABLE IF EXISTS `auth_user_groups`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `auth_user_groups` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `user_id` int(11) NOT NULL, - `group_id` int(11) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`), - KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`), - CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`), - CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `auth_user_groups` --- - -LOCK TABLES `auth_user_groups` WRITE; -/*!40000 ALTER TABLE `auth_user_groups` DISABLE KEYS */; -INSERT INTO `auth_user_groups` VALUES -(1,2,1); -/*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `auth_user_user_permissions` --- - -DROP TABLE IF EXISTS `auth_user_user_permissions`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `auth_user_user_permissions` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `user_id` int(11) NOT NULL, - `permission_id` int(11) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`), - KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`), - CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`), - CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `auth_user_user_permissions` --- - -LOCK TABLES `auth_user_user_permissions` WRITE; -/*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */; -/*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_cashiercounterregistry` --- - -DROP TABLE IF EXISTS `core_cashiercounterregistry`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_cashiercounterregistry` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `assigned_at` datetime(6) NOT NULL, - `cashier_id` int(11) NOT NULL, - `counter_id` bigint(20) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `cashier_id` (`cashier_id`), - KEY `core_cashiercounterr_counter_id_31c8f16f_fk_core_devi` (`counter_id`), - CONSTRAINT `core_cashiercounterr_counter_id_31c8f16f_fk_core_devi` FOREIGN KEY (`counter_id`) REFERENCES `core_device` (`id`), - CONSTRAINT `core_cashiercounterregistry_cashier_id_a7e6c6d5_fk_auth_user_id` FOREIGN KEY (`cashier_id`) REFERENCES `auth_user` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_cashiercounterregistry` --- - -LOCK TABLES `core_cashiercounterregistry` WRITE; -/*!40000 ALTER TABLE `core_cashiercounterregistry` DISABLE KEYS */; -INSERT INTO `core_cashiercounterregistry` VALUES -(1,'2026-02-06 07:16:54.349022',1,1); -/*!40000 ALTER TABLE `core_cashiercounterregistry` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_cashiersession` --- - -DROP TABLE IF EXISTS `core_cashiersession`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_cashiersession` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `start_time` datetime(6) NOT NULL, - `end_time` datetime(6) DEFAULT NULL, - `opening_balance` decimal(15,3) NOT NULL, - `closing_balance` decimal(15,3) DEFAULT NULL, - `status` varchar(20) NOT NULL, - `notes` longtext NOT NULL, - `counter_id` bigint(20) DEFAULT NULL, - `user_id` int(11) NOT NULL, - PRIMARY KEY (`id`), - KEY `core_cashiersession_counter_id_37347545_fk_core_device_id` (`counter_id`), - KEY `core_cashiersession_user_id_162d4b9a_fk_auth_user_id` (`user_id`), - CONSTRAINT `core_cashiersession_counter_id_37347545_fk_core_device_id` FOREIGN KEY (`counter_id`) REFERENCES `core_device` (`id`), - CONSTRAINT `core_cashiersession_user_id_162d4b9a_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_cashiersession` --- - -LOCK TABLES `core_cashiersession` WRITE; -/*!40000 ALTER TABLE `core_cashiersession` DISABLE KEYS */; -INSERT INTO `core_cashiersession` VALUES -(1,'2026-02-06 07:46:39.146930','2026-02-07 11:42:33.791612',0.000,NULL,'closed','',1,1), -(2,'2026-02-07 12:52:12.107810','2026-02-10 04:49:10.674247',0.000,NULL,'closed','',1,1), -(3,'2026-02-10 04:49:35.756519',NULL,0.000,NULL,'active','',1,1); -/*!40000 ALTER TABLE `core_cashiersession` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_category` --- - -DROP TABLE IF EXISTS `core_category`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_category` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `name_en` varchar(100) NOT NULL, - `name_ar` varchar(100) NOT NULL, - `slug` varchar(50) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `slug` (`slug`) -) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_category` --- - -LOCK TABLES `core_category` WRITE; -/*!40000 ALTER TABLE `core_category` DISABLE KEYS */; -INSERT INTO `core_category` VALUES -(1,'Electronics','إلكترونيات','electronics'), -(2,'Groceries','بقالة','groceries'), -(3,'Milk','حليب','milk'), -(4,'Spices','بهلارات','spices'); -/*!40000 ALTER TABLE `core_category` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_customer` --- - -DROP TABLE IF EXISTS `core_customer`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_customer` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `name` varchar(200) NOT NULL, - `phone` varchar(20) NOT NULL, - `email` varchar(254) NOT NULL, - `address` longtext NOT NULL, - `loyalty_points` decimal(15,2) NOT NULL, - `loyalty_tier_id` bigint(20) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `core_customer_loyalty_tier_id_9b2bc0c2_fk_core_loyaltytier_id` (`loyalty_tier_id`), - CONSTRAINT `core_customer_loyalty_tier_id_9b2bc0c2_fk_core_loyaltytier_id` FOREIGN KEY (`loyalty_tier_id`) REFERENCES `core_loyaltytier` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_customer` --- - -LOCK TABLES `core_customer` WRITE; -/*!40000 ALTER TABLE `core_customer` DISABLE KEYS */; -INSERT INTO `core_customer` VALUES -(1,'Walk-in Customer','','','',0.00,NULL), -(2,'Moosa Ali Al-Abri','99359472','aalabry@gmail.com','AL Hamra\nAL Hamra',0.00,NULL); -/*!40000 ALTER TABLE `core_customer` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_device` --- - -DROP TABLE IF EXISTS `core_device`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_device` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `name` varchar(100) NOT NULL, - `device_type` varchar(20) NOT NULL, - `connection_type` varchar(20) NOT NULL, - `ip_address` char(39) DEFAULT NULL, - `port` int(10) unsigned DEFAULT NULL CHECK (`port` >= 0), - `is_active` tinyint(1) NOT NULL, - `config_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`config_json`)), - `created_at` datetime(6) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_device` --- - -LOCK TABLES `core_device` WRITE; -/*!40000 ALTER TABLE `core_device` DISABLE KEYS */; -INSERT INTO `core_device` VALUES -(1,'Pos Counter1','counter','network',NULL,NULL,1,NULL,'2026-02-06 07:10:22.737381'), -(2,'Pos Counter2','counter','network',NULL,NULL,1,NULL,'2026-02-06 07:10:40.321561'); -/*!40000 ALTER TABLE `core_device` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_expense` --- - -DROP TABLE IF EXISTS `core_expense`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_expense` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `amount` decimal(15,3) NOT NULL, - `date` date NOT NULL, - `description` longtext NOT NULL, - `attachment` varchar(100) DEFAULT NULL, - `created_at` datetime(6) NOT NULL, - `created_by_id` int(11) DEFAULT NULL, - `payment_method_id` bigint(20) DEFAULT NULL, - `category_id` bigint(20) NOT NULL, - PRIMARY KEY (`id`), - KEY `core_expense_created_by_id_f387daf3_fk_auth_user_id` (`created_by_id`), - KEY `core_expense_payment_method_id_14c954bf_fk_core_paymentmethod_id` (`payment_method_id`), - KEY `core_expense_category_id_dcdb74b3_fk_core_expensecategory_id` (`category_id`), - CONSTRAINT `core_expense_category_id_dcdb74b3_fk_core_expensecategory_id` FOREIGN KEY (`category_id`) REFERENCES `core_expensecategory` (`id`), - CONSTRAINT `core_expense_created_by_id_f387daf3_fk_auth_user_id` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`), - CONSTRAINT `core_expense_payment_method_id_14c954bf_fk_core_paymentmethod_id` FOREIGN KEY (`payment_method_id`) REFERENCES `core_paymentmethod` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_expense` --- - -LOCK TABLES `core_expense` WRITE; -/*!40000 ALTER TABLE `core_expense` DISABLE KEYS */; -INSERT INTO `core_expense` VALUES -(2,1000.000,'2026-02-08','','','2026-02-08 05:34:35.947064',1,1,1); -/*!40000 ALTER TABLE `core_expense` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_expensecategory` --- - -DROP TABLE IF EXISTS `core_expensecategory`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_expensecategory` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `name_en` varchar(100) NOT NULL, - `name_ar` varchar(100) NOT NULL, - `description` longtext NOT NULL, - `accounting_account_id` bigint(20) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `core_expensecategory_accounting_account_i_39554ddb_fk_accountin` (`accounting_account_id`), - CONSTRAINT `core_expensecategory_accounting_account_i_39554ddb_fk_accountin` FOREIGN KEY (`accounting_account_id`) REFERENCES `accounting_account` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_expensecategory` --- - -LOCK TABLES `core_expensecategory` WRITE; -/*!40000 ALTER TABLE `core_expensecategory` DISABLE KEYS */; -INSERT INTO `core_expensecategory` VALUES -(1,'Salary','رولتب','',NULL); -/*!40000 ALTER TABLE `core_expensecategory` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_heldsale` --- - -DROP TABLE IF EXISTS `core_heldsale`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_heldsale` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `cart_data` longtext NOT NULL, - `created_at` datetime(6) NOT NULL, - `created_by_id` int(11) DEFAULT NULL, - `customer_name` varchar(200) NOT NULL, - `note` longtext NOT NULL, - PRIMARY KEY (`id`), - KEY `core_heldsale_created_by_id_92d4a48c_fk_auth_user_id` (`created_by_id`), - CONSTRAINT `core_heldsale_created_by_id_92d4a48c_fk_auth_user_id` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_heldsale` --- - -LOCK TABLES `core_heldsale` WRITE; -/*!40000 ALTER TABLE `core_heldsale` DISABLE KEYS */; -/*!40000 ALTER TABLE `core_heldsale` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_loyaltytier` --- - -DROP TABLE IF EXISTS `core_loyaltytier`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_loyaltytier` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `name_en` varchar(50) NOT NULL, - `name_ar` varchar(50) NOT NULL, - `min_points` int(10) unsigned NOT NULL CHECK (`min_points` >= 0), - `point_multiplier` decimal(4,2) NOT NULL, - `discount_percentage` decimal(5,2) NOT NULL, - `color_code` varchar(20) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_loyaltytier` --- - -LOCK TABLES `core_loyaltytier` WRITE; -/*!40000 ALTER TABLE `core_loyaltytier` DISABLE KEYS */; -/*!40000 ALTER TABLE `core_loyaltytier` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_loyaltytransaction` --- - -DROP TABLE IF EXISTS `core_loyaltytransaction`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_loyaltytransaction` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `transaction_type` varchar(20) NOT NULL, - `points` decimal(15,2) NOT NULL, - `notes` longtext NOT NULL, - `created_at` datetime(6) NOT NULL, - `customer_id` bigint(20) NOT NULL, - `sale_id` bigint(20) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `core_loyaltytransaction_customer_id_e94400f6_fk_core_customer_id` (`customer_id`), - KEY `core_loyaltytransaction_sale_id_5797482d_fk_core_sale_id` (`sale_id`), - CONSTRAINT `core_loyaltytransaction_customer_id_e94400f6_fk_core_customer_id` FOREIGN KEY (`customer_id`) REFERENCES `core_customer` (`id`), - CONSTRAINT `core_loyaltytransaction_sale_id_5797482d_fk_core_sale_id` FOREIGN KEY (`sale_id`) REFERENCES `core_sale` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_loyaltytransaction` --- - -LOCK TABLES `core_loyaltytransaction` WRITE; -/*!40000 ALTER TABLE `core_loyaltytransaction` DISABLE KEYS */; -/*!40000 ALTER TABLE `core_loyaltytransaction` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_paymentmethod` --- - -DROP TABLE IF EXISTS `core_paymentmethod`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_paymentmethod` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `name_en` varchar(50) NOT NULL, - `name_ar` varchar(50) NOT NULL, - `is_active` tinyint(1) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_paymentmethod` --- - -LOCK TABLES `core_paymentmethod` WRITE; -/*!40000 ALTER TABLE `core_paymentmethod` DISABLE KEYS */; -INSERT INTO `core_paymentmethod` VALUES -(1,'Cash','كاش',1), -(2,'Credit Card','بطاقة بنكية',1), -(3,'Bank Transfer','تحويل بنكي',1); -/*!40000 ALTER TABLE `core_paymentmethod` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_product` --- - -DROP TABLE IF EXISTS `core_product`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_product` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `name_en` varchar(200) NOT NULL, - `name_ar` varchar(200) NOT NULL, - `sku` varchar(50) NOT NULL, - `description` longtext NOT NULL, - `price` decimal(12,3) NOT NULL, - `stock_quantity` decimal(15,2) NOT NULL, - `image` varchar(100) DEFAULT NULL, - `created_at` datetime(6) NOT NULL, - `category_id` bigint(20) NOT NULL, - `unit_id` bigint(20) DEFAULT NULL, - `cost_price` decimal(12,3) NOT NULL, - `is_active` tinyint(1) NOT NULL, - `opening_stock` decimal(15,2) NOT NULL, - `supplier_id` bigint(20) DEFAULT NULL, - `vat` decimal(5,2) NOT NULL, - `expiry_date` date DEFAULT NULL, - `has_expiry` tinyint(1) NOT NULL, - `min_stock_level` decimal(15,2) NOT NULL, - `is_service` tinyint(1) NOT NULL DEFAULT 0, - PRIMARY KEY (`id`), - UNIQUE KEY `sku` (`sku`), - KEY `core_product_category_id_b9d8ff9f_fk_core_category_id` (`category_id`), - KEY `core_product_unit_id_9efe97b9_fk_core_unit_id` (`unit_id`), - KEY `core_product_supplier_id_493af3ba_fk_core_supplier_id` (`supplier_id`), - CONSTRAINT `core_product_category_id_b9d8ff9f_fk_core_category_id` FOREIGN KEY (`category_id`) REFERENCES `core_category` (`id`), - CONSTRAINT `core_product_supplier_id_493af3ba_fk_core_supplier_id` FOREIGN KEY (`supplier_id`) REFERENCES `core_supplier` (`id`), - CONSTRAINT `core_product_unit_id_9efe97b9_fk_core_unit_id` FOREIGN KEY (`unit_id`) REFERENCES `core_unit` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_product` --- - -LOCK TABLES `core_product` WRITE; -/*!40000 ALTER TABLE `core_product` DISABLE KEYS */; -INSERT INTO `core_product` VALUES -(1,'Smartphone','هاتف ذكي','PHN001','',999.000,0.00,'','2026-02-02 06:51:10.670625',1,1,0.000,1,0.00,NULL,0.00,NULL,0,0.00,0), -(2,'Laptop','لابتوب','LPT001','',1499.000,0.00,NULL,'2026-02-02 06:51:10.677330',1,NULL,0.000,1,0.00,NULL,0.00,NULL,0,0.00,0), -(3,'Milk','حليب','MLK001','',2.500,360.00,'product_images/ةهمن_r3GdN2u.jfif','2026-02-02 06:51:10.683009',2,NULL,1.000,1,0.00,NULL,0.00,NULL,0,0.00,0), -(4,'Eggs','بيض بركاء','27021058','',1.200,19.00,'product_images/بيض.jfif','2026-02-03 10:24:17.560811',2,1,1.000,1,0.00,2,5.00,'2026-02-01',1,6.00,0), -(5,'Tomato','طماطم','38389726','',0.250,-0.70,'product_images/طماطم.jfif','2026-02-03 10:31:16.878306',2,1,0.200,1,5.52,2,5.00,NULL,0,53.55,0), -(6,'onion','بصل','SKU-20260210025300','',2.000,0.00,'','2026-02-10 02:53:38.726213',2,NULL,1.000,1,0.00,1,0.00,NULL,0,0.00,0), -(7,'rice','عيش','6117867','',15.500,0.00,'','2026-02-11 03:20:19.324414',2,2,12.000,1,0.00,2,5.00,NULL,0,0.00,0); -/*!40000 ALTER TABLE `core_product` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_purchase` --- - -DROP TABLE IF EXISTS `core_purchase`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_purchase` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `total_amount` decimal(15,3) NOT NULL, - `created_at` datetime(6) NOT NULL, - `supplier_id` bigint(20) DEFAULT NULL, - `balance_due` decimal(15,3) NOT NULL, - `due_date` date DEFAULT NULL, - `invoice_number` varchar(50) NOT NULL, - `notes` longtext NOT NULL, - `paid_amount` decimal(15,3) NOT NULL, - `payment_type` varchar(20) NOT NULL, - `status` varchar(20) NOT NULL, - `created_by_id` int(11) DEFAULT NULL, - `purchase_order_id` bigint(20) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `core_purchase_supplier_id_cc98f995_fk_core_supplier_id` (`supplier_id`), - KEY `core_purchase_created_by_id_760ff6b8_fk_auth_user_id` (`created_by_id`), - KEY `core_purchase_purchase_order_id_5e55807a_fk_core_purc` (`purchase_order_id`), - CONSTRAINT `core_purchase_created_by_id_760ff6b8_fk_auth_user_id` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`), - CONSTRAINT `core_purchase_purchase_order_id_5e55807a_fk_core_purc` FOREIGN KEY (`purchase_order_id`) REFERENCES `core_purchaseorder` (`id`), - CONSTRAINT `core_purchase_supplier_id_cc98f995_fk_core_supplier_id` FOREIGN KEY (`supplier_id`) REFERENCES `core_supplier` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_purchase` --- - -LOCK TABLES `core_purchase` WRITE; -/*!40000 ALTER TABLE `core_purchase` DISABLE KEYS */; -INSERT INTO `core_purchase` VALUES -(1,50.000,'2026-02-02 18:41:37.649354',2,0.000,'2026-02-12','','',50.000,'credit','paid',1,NULL), -(2,122.000,'2026-02-03 04:17:33.046505',2,100.000,'2026-02-12','','',22.000,'partial','partial',1,NULL), -(3,100.000,'2026-02-06 05:52:34.582607',2,100.000,NULL,'','Converted from LPO #1. ',0.000,'cash','unpaid',1,1), -(6,1.000,'2026-02-10 03:28:04.318066',1,0.000,NULL,'','',1.000,'cash','paid',1,NULL), -(8,25.000,'2026-02-10 15:21:43.415527',2,25.000,NULL,'','',0.000,'credit','unpaid',1,NULL); -/*!40000 ALTER TABLE `core_purchase` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_purchaseitem` --- - -DROP TABLE IF EXISTS `core_purchaseitem`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_purchaseitem` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `quantity` decimal(15,2) NOT NULL, - `cost_price` decimal(12,3) NOT NULL, - `line_total` decimal(15,3) NOT NULL, - `product_id` bigint(20) NOT NULL, - `purchase_id` bigint(20) NOT NULL, - `expiry_date` date DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `core_purchaseitem_product_id_29f76f93_fk_core_product_id` (`product_id`), - KEY `core_purchaseitem_purchase_id_342c8f37_fk_core_purchase_id` (`purchase_id`), - CONSTRAINT `core_purchaseitem_product_id_29f76f93_fk_core_product_id` FOREIGN KEY (`product_id`) REFERENCES `core_product` (`id`), - CONSTRAINT `core_purchaseitem_purchase_id_342c8f37_fk_core_purchase_id` FOREIGN KEY (`purchase_id`) REFERENCES `core_purchase` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_purchaseitem` --- - -LOCK TABLES `core_purchaseitem` WRITE; -/*!40000 ALTER TABLE `core_purchaseitem` DISABLE KEYS */; -INSERT INTO `core_purchaseitem` VALUES -(1,50.00,1.000,50.000,3,1,NULL), -(2,122.00,1.000,122.000,3,2,NULL), -(3,100.00,1.000,100.000,3,3,NULL), -(4,1.00,1.000,1.000,3,6,NULL), -(5,100.00,0.250,25.000,3,8,NULL); -/*!40000 ALTER TABLE `core_purchaseitem` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_purchaseorder` --- - -DROP TABLE IF EXISTS `core_purchaseorder`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_purchaseorder` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `lpo_number` varchar(50) NOT NULL, - `total_amount` decimal(15,3) NOT NULL, - `status` varchar(20) NOT NULL, - `issue_date` date NOT NULL, - `expected_date` date DEFAULT NULL, - `notes` longtext NOT NULL, - `created_at` datetime(6) NOT NULL, - `created_by_id` int(11) DEFAULT NULL, - `supplier_id` bigint(20) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `core_purchaseorder_created_by_id_e567dc99_fk_auth_user_id` (`created_by_id`), - KEY `core_purchaseorder_supplier_id_0242d2c5_fk_core_supplier_id` (`supplier_id`), - CONSTRAINT `core_purchaseorder_created_by_id_e567dc99_fk_auth_user_id` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`), - CONSTRAINT `core_purchaseorder_supplier_id_0242d2c5_fk_core_supplier_id` FOREIGN KEY (`supplier_id`) REFERENCES `core_supplier` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_purchaseorder` --- - -LOCK TABLES `core_purchaseorder` WRITE; -/*!40000 ALTER TABLE `core_purchaseorder` DISABLE KEYS */; -INSERT INTO `core_purchaseorder` VALUES -(1,'',100.000,'converted','2026-02-06',NULL,'','2026-02-06 05:51:13.574582',1,2); -/*!40000 ALTER TABLE `core_purchaseorder` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_purchaseorderitem` --- - -DROP TABLE IF EXISTS `core_purchaseorderitem`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_purchaseorderitem` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `quantity` decimal(15,2) NOT NULL, - `cost_price` decimal(12,3) NOT NULL, - `line_total` decimal(15,3) NOT NULL, - `product_id` bigint(20) NOT NULL, - `purchase_order_id` bigint(20) NOT NULL, - PRIMARY KEY (`id`), - KEY `core_purchaseorderitem_product_id_e4cc27f0_fk_core_product_id` (`product_id`), - KEY `core_purchaseorderit_purchase_order_id_ec9433f4_fk_core_purc` (`purchase_order_id`), - CONSTRAINT `core_purchaseorderit_purchase_order_id_ec9433f4_fk_core_purc` FOREIGN KEY (`purchase_order_id`) REFERENCES `core_purchaseorder` (`id`), - CONSTRAINT `core_purchaseorderitem_product_id_e4cc27f0_fk_core_product_id` FOREIGN KEY (`product_id`) REFERENCES `core_product` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_purchaseorderitem` --- - -LOCK TABLES `core_purchaseorderitem` WRITE; -/*!40000 ALTER TABLE `core_purchaseorderitem` DISABLE KEYS */; -INSERT INTO `core_purchaseorderitem` VALUES -(1,100.00,1.000,100.000,3,1); -/*!40000 ALTER TABLE `core_purchaseorderitem` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_purchasepayment` --- - -DROP TABLE IF EXISTS `core_purchasepayment`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_purchasepayment` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `amount` decimal(15,3) NOT NULL, - `payment_date` date NOT NULL, - `payment_method_id` bigint(20) DEFAULT NULL, - `notes` longtext NOT NULL, - `purchase_id` bigint(20) NOT NULL, - `created_by_id` int(11) DEFAULT NULL, - `payment_method_name` varchar(50) NOT NULL, - `created_at` datetime(6) NOT NULL, - PRIMARY KEY (`id`), - KEY `core_purchasepayment_purchase_id_1aacd0f7_fk_core_purchase_id` (`purchase_id`), - KEY `core_purchasepayment_created_by_id_62a27850_fk_auth_user_id` (`created_by_id`), - KEY `core_purchasepayment_payment_method_id_579400c1` (`payment_method_id`), - CONSTRAINT `core_purchasepayment_created_by_id_62a27850_fk_auth_user_id` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`), - CONSTRAINT `core_purchasepayment_payment_method_id_579400c1_fk_core_paym` FOREIGN KEY (`payment_method_id`) REFERENCES `core_paymentmethod` (`id`), - CONSTRAINT `core_purchasepayment_purchase_id_1aacd0f7_fk_core_purchase_id` FOREIGN KEY (`purchase_id`) REFERENCES `core_purchase` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_purchasepayment` --- - -LOCK TABLES `core_purchasepayment` WRITE; -/*!40000 ALTER TABLE `core_purchasepayment` DISABLE KEYS */; -INSERT INTO `core_purchasepayment` VALUES -(1,50.000,'2026-02-02',1,'',1,1,'Cash','2026-02-07 11:42:08.649839'), -(2,22.000,'2026-02-03',1,'Initial payment',2,1,'Cash','2026-02-07 11:42:08.649839'), -(3,1.000,'2026-02-10',1,'',6,1,'Cash','2026-02-10 03:46:15.666864'); -/*!40000 ALTER TABLE `core_purchasepayment` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_purchasereturn` --- - -DROP TABLE IF EXISTS `core_purchasereturn`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_purchasereturn` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `return_number` varchar(50) NOT NULL, - `total_amount` decimal(15,3) NOT NULL, - `notes` longtext NOT NULL, - `created_at` datetime(6) NOT NULL, - `purchase_id` bigint(20) DEFAULT NULL, - `supplier_id` bigint(20) DEFAULT NULL, - `created_by_id` int(11) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `core_purchasereturn_purchase_id_5cac043b_fk_core_purchase_id` (`purchase_id`), - KEY `core_purchasereturn_supplier_id_0f639b91_fk_core_supplier_id` (`supplier_id`), - KEY `core_purchasereturn_created_by_id_4d36f1df_fk_auth_user_id` (`created_by_id`), - CONSTRAINT `core_purchasereturn_created_by_id_4d36f1df_fk_auth_user_id` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`), - CONSTRAINT `core_purchasereturn_purchase_id_5cac043b_fk_core_purchase_id` FOREIGN KEY (`purchase_id`) REFERENCES `core_purchase` (`id`), - CONSTRAINT `core_purchasereturn_supplier_id_0f639b91_fk_core_supplier_id` FOREIGN KEY (`supplier_id`) REFERENCES `core_supplier` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_purchasereturn` --- - -LOCK TABLES `core_purchasereturn` WRITE; -/*!40000 ALTER TABLE `core_purchasereturn` DISABLE KEYS */; -INSERT INTO `core_purchasereturn` VALUES -(1,'PR-1770696571',15.000,'','2026-02-10 04:09:31.499584',NULL,1,1); -/*!40000 ALTER TABLE `core_purchasereturn` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_purchasereturnitem` --- - -DROP TABLE IF EXISTS `core_purchasereturnitem`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_purchasereturnitem` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `quantity` decimal(15,2) NOT NULL, - `cost_price` decimal(12,3) NOT NULL, - `line_total` decimal(15,3) NOT NULL, - `product_id` bigint(20) NOT NULL, - `purchase_return_id` bigint(20) NOT NULL, - `expiry_date` date DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `core_purchasereturnitem_product_id_59663fa3_fk_core_product_id` (`product_id`), - KEY `core_purchasereturni_purchase_return_id_9a26c3af_fk_core_purc` (`purchase_return_id`), - CONSTRAINT `core_purchasereturni_purchase_return_id_9a26c3af_fk_core_purc` FOREIGN KEY (`purchase_return_id`) REFERENCES `core_purchasereturn` (`id`), - CONSTRAINT `core_purchasereturnitem_product_id_59663fa3_fk_core_product_id` FOREIGN KEY (`product_id`) REFERENCES `core_product` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_purchasereturnitem` --- - -LOCK TABLES `core_purchasereturnitem` WRITE; -/*!40000 ALTER TABLE `core_purchasereturnitem` DISABLE KEYS */; -INSERT INTO `core_purchasereturnitem` VALUES -(1,15.00,1.000,15.000,3,1,NULL); -/*!40000 ALTER TABLE `core_purchasereturnitem` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_quotation` --- - -DROP TABLE IF EXISTS `core_quotation`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_quotation` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `quotation_number` varchar(50) NOT NULL, - `total_amount` decimal(15,3) NOT NULL, - `discount` decimal(15,3) NOT NULL, - `status` varchar(20) NOT NULL, - `valid_until` date DEFAULT NULL, - `terms_and_conditions` longtext NOT NULL, - `notes` longtext NOT NULL, - `created_at` datetime(6) NOT NULL, - `customer_id` bigint(20) DEFAULT NULL, - `created_by_id` int(11) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `core_quotation_customer_id_bfd4f481_fk_core_customer_id` (`customer_id`), - KEY `core_quotation_created_by_id_86c3c8ca_fk_auth_user_id` (`created_by_id`), - CONSTRAINT `core_quotation_created_by_id_86c3c8ca_fk_auth_user_id` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`), - CONSTRAINT `core_quotation_customer_id_bfd4f481_fk_core_customer_id` FOREIGN KEY (`customer_id`) REFERENCES `core_customer` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_quotation` --- - -LOCK TABLES `core_quotation` WRITE; -/*!40000 ALTER TABLE `core_quotation` DISABLE KEYS */; -INSERT INTO `core_quotation` VALUES -(1,'',250.000,0.000,'draft',NULL,'1. Prices are valid for 7 days.\n2. Delivery within 3-5 working days.\n3. Payment: 50% advance, 50% on delivery.','','2026-02-02 09:53:56.702381',1,NULL); -/*!40000 ALTER TABLE `core_quotation` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_quotationitem` --- - -DROP TABLE IF EXISTS `core_quotationitem`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_quotationitem` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `quantity` decimal(15,2) NOT NULL, - `unit_price` decimal(12,3) NOT NULL, - `line_total` decimal(15,3) NOT NULL, - `product_id` bigint(20) NOT NULL, - `quotation_id` bigint(20) NOT NULL, - PRIMARY KEY (`id`), - KEY `core_quotationitem_product_id_1e6df638_fk_core_product_id` (`product_id`), - KEY `core_quotationitem_quotation_id_2c6cbe1d_fk_core_quotation_id` (`quotation_id`), - CONSTRAINT `core_quotationitem_product_id_1e6df638_fk_core_product_id` FOREIGN KEY (`product_id`) REFERENCES `core_product` (`id`), - CONSTRAINT `core_quotationitem_quotation_id_2c6cbe1d_fk_core_quotation_id` FOREIGN KEY (`quotation_id`) REFERENCES `core_quotation` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_quotationitem` --- - -LOCK TABLES `core_quotationitem` WRITE; -/*!40000 ALTER TABLE `core_quotationitem` DISABLE KEYS */; -INSERT INTO `core_quotationitem` VALUES -(1,100.00,2.500,250.000,3,1); -/*!40000 ALTER TABLE `core_quotationitem` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_sale` --- - -DROP TABLE IF EXISTS `core_sale`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_sale` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `total_amount` decimal(15,3) NOT NULL, - `discount` decimal(15,3) NOT NULL, - `created_at` datetime(6) NOT NULL, - `customer_id` bigint(20) DEFAULT NULL, - `balance_due` decimal(15,3) NOT NULL, - `due_date` date DEFAULT NULL, - `invoice_number` varchar(50) NOT NULL, - `notes` longtext NOT NULL, - `paid_amount` decimal(15,3) NOT NULL, - `payment_type` varchar(20) NOT NULL, - `status` varchar(20) NOT NULL, - `quotation_id` bigint(20) DEFAULT NULL, - `created_by_id` int(11) DEFAULT NULL, - `loyalty_discount_amount` decimal(15,3) NOT NULL, - `loyalty_points_redeemed` decimal(15,2) NOT NULL, - `subtotal` decimal(15,3) NOT NULL, - `vat_amount` decimal(15,3) NOT NULL, - PRIMARY KEY (`id`), - KEY `core_sale_customer_id_2acb5b23_fk_core_customer_id` (`customer_id`), - KEY `core_sale_quotation_id_ce0bb799_fk_core_quotation_id` (`quotation_id`), - KEY `core_sale_created_by_id_522d3175_fk_auth_user_id` (`created_by_id`), - CONSTRAINT `core_sale_created_by_id_522d3175_fk_auth_user_id` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`), - CONSTRAINT `core_sale_customer_id_2acb5b23_fk_core_customer_id` FOREIGN KEY (`customer_id`) REFERENCES `core_customer` (`id`), - CONSTRAINT `core_sale_quotation_id_ce0bb799_fk_core_quotation_id` FOREIGN KEY (`quotation_id`) REFERENCES `core_quotation` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_sale` --- - -LOCK TABLES `core_sale` WRITE; -/*!40000 ALTER TABLE `core_sale` DISABLE KEYS */; -INSERT INTO `core_sale` VALUES -(1,3502.000,0.000,'2026-02-02 07:04:31.462885',NULL,0.000,NULL,'','',0.000,'cash','paid',NULL,NULL,0.000,0.00,0.000,0.000), -(2,4498.500,0.000,'2026-02-02 07:05:30.394955',1,0.000,NULL,'','',0.000,'cash','paid',NULL,NULL,0.000,0.00,0.000,0.000), -(3,4498.500,0.000,'2026-02-02 07:05:30.589347',1,0.000,NULL,'','',0.000,'cash','paid',NULL,NULL,0.000,0.00,0.000,0.000), -(4,2500.500,0.000,'2026-02-02 07:08:16.518995',NULL,0.000,NULL,'','',0.000,'cash','paid',NULL,NULL,0.000,0.00,0.000,0.000), -(5,999.000,0.000,'2026-02-02 07:36:00.126309',NULL,0.000,NULL,'','',0.000,'cash','paid',NULL,NULL,0.000,0.00,0.000,0.000), -(6,2500.500,0.000,'2026-02-02 07:38:59.920678',NULL,0.000,NULL,'','',0.000,'cash','paid',NULL,NULL,0.000,0.00,0.000,0.000), -(7,1001.500,0.000,'2026-02-02 07:42:22.926679',NULL,0.000,NULL,'','',0.000,'cash','paid',NULL,NULL,0.000,0.00,0.000,0.000), -(8,2003.000,0.000,'2026-02-02 07:52:04.729503',NULL,0.000,NULL,'','',0.000,'cash','paid',NULL,NULL,0.000,0.00,0.000,0.000), -(9,2.500,0.000,'2026-02-02 13:48:03.941937',NULL,0.000,NULL,'','',2.500,'cash','paid',NULL,1,0.000,0.00,0.000,0.000), -(10,5.000,0.000,'2026-02-02 16:30:26.276842',NULL,0.000,NULL,'','',5.000,'cash','paid',NULL,1,0.000,0.00,0.000,0.000), -(11,2.500,0.000,'2026-02-03 02:55:04.813106',1,0.000,'2026-02-05','','',2.500,'credit','paid',NULL,1,0.000,0.00,0.000,0.000), -(12,12.500,0.000,'2026-02-03 02:58:56.674344',1,7.500,'2026-02-07','','',5.000,'partial','partial',NULL,1,0.000,0.00,0.000,0.000), -(13,7.500,0.000,'2026-02-03 04:09:17.164110',1,0.000,NULL,'','',7.500,'cash','paid',NULL,1,0.000,0.00,0.000,0.000), -(14,7.500,0.000,'2026-02-03 04:09:34.938346',1,0.000,NULL,'','',7.500,'cash','paid',NULL,1,0.000,0.00,0.000,0.000), -(15,7.500,0.000,'2026-02-03 04:14:10.193289',1,7.500,'2026-02-06','','',0.000,'credit','paid',NULL,1,0.000,0.00,0.000,0.000), -(16,7.500,0.000,'2026-02-03 04:14:21.916188',1,7.500,'2026-02-06','','',0.000,'credit','paid',NULL,1,0.000,0.00,0.000,0.000), -(17,7.500,0.000,'2026-02-03 04:16:49.324599',1,7.500,'2026-02-05','','',0.000,'credit','unpaid',NULL,1,0.000,0.00,0.000,0.000), -(18,55.000,0.000,'2026-02-03 05:59:41.739213',2,0.000,NULL,'','',55.000,'cash','paid',NULL,1,0.000,0.00,0.000,0.000), -(19,2.500,0.000,'2026-02-03 06:07:24.440091',2,0.000,NULL,'','',2.500,'cash','paid',NULL,1,0.000,0.00,0.000,0.000), -(20,1002.950,0.000,'2026-02-05 12:53:16.871840',2,1002.950,NULL,'','',0.000,'credit','unpaid',NULL,1,0.000,0.00,0.000,0.000), -(21,1.523,0.000,'2026-02-05 13:09:39.079339',NULL,0.000,NULL,'','',1.523,'cash','paid',NULL,1,0.000,0.00,1.450,0.073), -(22,3.885,0.000,'2026-02-06 07:17:38.945627',NULL,0.000,NULL,'','',3.885,'cash','paid',NULL,1,0.000,0.00,3.700,0.185), -(23,1.523,0.000,'2026-02-06 07:46:49.365301',NULL,0.000,NULL,'','',1.523,'cash','paid',NULL,1,0.000,0.00,1.450,0.073), -(24,2.500,0.000,'2026-02-10 03:04:15.881344',NULL,0.000,NULL,'','',2.500,'cash','paid',NULL,1,0.000,0.00,2.500,0.000), -(25,2.500,0.000,'2026-02-10 03:08:51.899457',1,0.000,NULL,'','',2.500,'cash','paid',NULL,1,0.000,0.00,2.500,0.000), -(26,26.250,0.000,'2026-02-10 15:17:49.692758',2,0.000,NULL,'','',26.250,'cash','paid',NULL,1,0.000,0.00,25.000,1.250); -/*!40000 ALTER TABLE `core_sale` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_saleitem` --- - -DROP TABLE IF EXISTS `core_saleitem`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_saleitem` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `quantity` decimal(15,2) NOT NULL, - `unit_price` decimal(12,3) NOT NULL, - `line_total` decimal(15,3) NOT NULL, - `product_id` bigint(20) NOT NULL, - `sale_id` bigint(20) NOT NULL, - PRIMARY KEY (`id`), - KEY `core_saleitem_product_id_2972cee0_fk_core_product_id` (`product_id`), - KEY `core_saleitem_sale_id_ac8b60ae_fk_core_sale_id` (`sale_id`), - CONSTRAINT `core_saleitem_product_id_2972cee0_fk_core_product_id` FOREIGN KEY (`product_id`) REFERENCES `core_product` (`id`), - CONSTRAINT `core_saleitem_sale_id_ac8b60ae_fk_core_sale_id` FOREIGN KEY (`sale_id`) REFERENCES `core_sale` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_saleitem` --- - -LOCK TABLES `core_saleitem` WRITE; -/*!40000 ALTER TABLE `core_saleitem` DISABLE KEYS */; -INSERT INTO `core_saleitem` VALUES -(1,1.00,1499.000,1499.000,2,1), -(2,2.00,2.500,5.000,3,1), -(3,2.00,999.000,1998.000,1,1), -(4,1.00,2.500,2.500,3,2), -(5,1.00,1499.000,1499.000,2,2), -(6,3.00,999.000,2997.000,1,2), -(7,1.00,2.500,2.500,3,3), -(8,1.00,1499.000,1499.000,2,3), -(9,3.00,999.000,2997.000,1,3), -(10,1.00,2.500,2.500,3,4), -(11,1.00,1499.000,1499.000,2,4), -(12,1.00,999.000,999.000,1,4), -(13,1.00,999.000,999.000,1,5), -(14,1.00,999.000,999.000,1,6), -(15,1.00,1499.000,1499.000,2,6), -(16,1.00,2.500,2.500,3,6), -(17,1.00,2.500,2.500,3,7), -(18,1.00,999.000,999.000,1,7), -(19,2.00,2.500,5.000,3,8), -(20,2.00,999.000,1998.000,1,8), -(21,1.00,2.500,2.500,3,9), -(22,2.00,2.500,5.000,3,10), -(23,1.00,2.500,2.500,3,11), -(24,5.00,2.500,12.500,3,12), -(25,3.00,2.500,7.500,3,17), -(26,22.00,2.500,55.000,3,18), -(27,1.00,2.500,2.500,3,19), -(28,1.00,999.000,999.000,1,20), -(29,1.00,2.500,2.500,3,20), -(30,1.00,1.200,1.200,4,20), -(31,1.00,0.250,0.250,5,20), -(32,1.00,1.200,1.200,4,21), -(33,1.00,0.250,0.250,5,21), -(34,1.00,2.500,2.500,3,22), -(35,1.00,1.200,1.200,4,22), -(36,1.00,0.250,0.250,5,23), -(37,1.00,1.200,1.200,4,23), -(38,1.00,2.500,2.500,3,24), -(39,1.00,2.500,2.500,3,25), -(40,10.00,2.500,25.000,3,26); -/*!40000 ALTER TABLE `core_saleitem` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_salepayment` --- - -DROP TABLE IF EXISTS `core_salepayment`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_salepayment` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `amount` decimal(15,3) NOT NULL, - `payment_date` date NOT NULL, - `payment_method_id` bigint(20) DEFAULT NULL, - `notes` longtext NOT NULL, - `sale_id` bigint(20) NOT NULL, - `created_by_id` int(11) DEFAULT NULL, - `payment_method_name` varchar(50) NOT NULL, - `created_at` datetime(6) NOT NULL, - PRIMARY KEY (`id`), - KEY `core_salepayment_sale_id_7de9b2ea_fk_core_sale_id` (`sale_id`), - KEY `core_salepayment_created_by_id_13527d07_fk_auth_user_id` (`created_by_id`), - KEY `core_salepayment_payment_method_id_1520e412` (`payment_method_id`), - CONSTRAINT `core_salepayment_created_by_id_13527d07_fk_auth_user_id` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`), - CONSTRAINT `core_salepayment_payment_method_id_1520e412_fk_core_paym` FOREIGN KEY (`payment_method_id`) REFERENCES `core_paymentmethod` (`id`), - CONSTRAINT `core_salepayment_sale_id_7de9b2ea_fk_core_sale_id` FOREIGN KEY (`sale_id`) REFERENCES `core_sale` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_salepayment` --- - -LOCK TABLES `core_salepayment` WRITE; -/*!40000 ALTER TABLE `core_salepayment` DISABLE KEYS */; -INSERT INTO `core_salepayment` VALUES -(1,2.500,'2026-02-02',1,'Initial payment',9,1,'Cash','2026-02-07 11:42:08.140968'), -(2,5.000,'2026-02-02',1,'Initial payment',10,1,'Cash','2026-02-07 11:42:08.140968'), -(3,2.500,'2026-02-03',1,'',11,1,'Cash','2026-02-07 11:42:08.140968'), -(4,5.000,'2026-02-03',1,'Initial payment',12,1,'Cash','2026-02-07 11:42:08.140968'), -(5,55.000,'2026-02-03',1,'Initial payment',18,1,'Cash','2026-02-07 11:42:08.140968'), -(6,2.500,'2026-02-03',1,'Initial payment',19,1,'Cash','2026-02-07 11:42:08.140968'), -(7,1.523,'2026-02-05',1,'Initial payment',21,1,'Cash','2026-02-07 11:42:08.140968'), -(8,3.885,'2026-02-06',1,'Initial payment',22,1,'Cash','2026-02-07 11:42:08.140968'), -(9,1.523,'2026-02-06',1,'Initial payment',23,1,'Cash','2026-02-07 11:42:08.140968'), -(10,2.500,'2026-02-10',1,'',24,1,'Cash','2026-02-10 03:04:16.058720'), -(11,2.500,'2026-02-10',1,'',25,1,'Cash','2026-02-10 03:08:51.920026'), -(12,26.250,'2026-02-10',2,'',26,1,'Cash','2026-02-10 15:17:49.991630'); -/*!40000 ALTER TABLE `core_salepayment` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_salereturn` --- - -DROP TABLE IF EXISTS `core_salereturn`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_salereturn` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `return_number` varchar(50) NOT NULL, - `total_amount` decimal(15,3) NOT NULL, - `notes` longtext NOT NULL, - `created_at` datetime(6) NOT NULL, - `customer_id` bigint(20) DEFAULT NULL, - `sale_id` bigint(20) DEFAULT NULL, - `created_by_id` int(11) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `core_salereturn_customer_id_e743045f_fk_core_customer_id` (`customer_id`), - KEY `core_salereturn_sale_id_8e308520_fk_core_sale_id` (`sale_id`), - KEY `core_salereturn_created_by_id_ed5c0847_fk_auth_user_id` (`created_by_id`), - CONSTRAINT `core_salereturn_created_by_id_ed5c0847_fk_auth_user_id` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`), - CONSTRAINT `core_salereturn_customer_id_e743045f_fk_core_customer_id` FOREIGN KEY (`customer_id`) REFERENCES `core_customer` (`id`), - CONSTRAINT `core_salereturn_sale_id_8e308520_fk_core_sale_id` FOREIGN KEY (`sale_id`) REFERENCES `core_sale` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_salereturn` --- - -LOCK TABLES `core_salereturn` WRITE; -/*!40000 ALTER TABLE `core_salereturn` DISABLE KEYS */; -INSERT INTO `core_salereturn` VALUES -(1,'',25.000,'','2026-02-02 10:06:16.347804',NULL,4,NULL); -/*!40000 ALTER TABLE `core_salereturn` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_salereturnitem` --- - -DROP TABLE IF EXISTS `core_salereturnitem`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_salereturnitem` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `quantity` decimal(15,2) NOT NULL, - `unit_price` decimal(12,3) NOT NULL, - `line_total` decimal(15,3) NOT NULL, - `product_id` bigint(20) NOT NULL, - `sale_return_id` bigint(20) NOT NULL, - PRIMARY KEY (`id`), - KEY `core_salereturnitem_product_id_173abfff_fk_core_product_id` (`product_id`), - KEY `core_salereturnitem_sale_return_id_f00a0503_fk_core_sale` (`sale_return_id`), - CONSTRAINT `core_salereturnitem_product_id_173abfff_fk_core_product_id` FOREIGN KEY (`product_id`) REFERENCES `core_product` (`id`), - CONSTRAINT `core_salereturnitem_sale_return_id_f00a0503_fk_core_sale` FOREIGN KEY (`sale_return_id`) REFERENCES `core_salereturn` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_salereturnitem` --- - -LOCK TABLES `core_salereturnitem` WRITE; -/*!40000 ALTER TABLE `core_salereturnitem` DISABLE KEYS */; -INSERT INTO `core_salereturnitem` VALUES -(1,10.00,2.500,25.000,3,1); -/*!40000 ALTER TABLE `core_salereturnitem` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_supplier` --- - -DROP TABLE IF EXISTS `core_supplier`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_supplier` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `name` varchar(200) NOT NULL, - `contact_person` varchar(200) NOT NULL, - `phone` varchar(20) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_supplier` --- - -LOCK TABLES `core_supplier` WRITE; -/*!40000 ALTER TABLE `core_supplier` DISABLE KEYS */; -INSERT INTO `core_supplier` VALUES -(1,'CASH','CASH','123'), -(2,'Milk Compant','milk man','1234'); -/*!40000 ALTER TABLE `core_supplier` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_systemsetting` --- - -DROP TABLE IF EXISTS `core_systemsetting`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_systemsetting` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `business_name` varchar(200) NOT NULL, - `address` longtext NOT NULL, - `phone` varchar(20) NOT NULL, - `email` varchar(254) NOT NULL, - `currency_symbol` varchar(10) NOT NULL, - `tax_rate` decimal(5,2) NOT NULL, - `logo` varchar(100) DEFAULT NULL, - `registration_number` varchar(50) NOT NULL, - `vat_number` varchar(50) NOT NULL, - `decimal_places` smallint(5) unsigned NOT NULL CHECK (`decimal_places` >= 0), - `currency_per_point` decimal(10,3) NOT NULL, - `loyalty_enabled` tinyint(1) NOT NULL, - `min_points_to_redeem` int(10) unsigned NOT NULL CHECK (`min_points_to_redeem` >= 0), - `points_per_currency` decimal(10,2) NOT NULL, - `wablas_enabled` tinyint(1) NOT NULL, - `wablas_server_url` varchar(200) NOT NULL, - `wablas_token` varchar(255) NOT NULL, - `wablas_secret_key` varchar(255) NOT NULL, - `allow_zero_stock_sales` tinyint(1) NOT NULL, - `favicon` varchar(100) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_systemsetting` --- - -LOCK TABLES `core_systemsetting` WRITE; -/*!40000 ALTER TABLE `core_systemsetting` DISABLE KEYS */; -INSERT INTO `core_systemsetting` VALUES -(1,'Meezan Accounting ميزان','AL Hamra\r\nSultanate of Oman','99359472','aalabry@gmail.com','OMR',5.00,'business_logos/albidar-logo.jpg','89989665','Om9787',3,0.010,0,100,1.00,1,'https://deu.wablas.com/','xOSMYzXiM9uABP0zcoALzlGJjKsRBaLCS2paBAE2kyECNNJkCQbgMW8','X9aUy0K2',1,''); -/*!40000 ALTER TABLE `core_systemsetting` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_unit` --- - -DROP TABLE IF EXISTS `core_unit`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_unit` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `name_en` varchar(50) NOT NULL, - `name_ar` varchar(50) NOT NULL, - `short_name` varchar(10) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_unit` --- - -LOCK TABLES `core_unit` WRITE; -/*!40000 ALTER TABLE `core_unit` DISABLE KEYS */; -INSERT INTO `core_unit` VALUES -(1,'box','كرتون','ctn'), -(2,'sack','جونية','sack'); -/*!40000 ALTER TABLE `core_unit` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `core_userprofile` --- - -DROP TABLE IF EXISTS `core_userprofile`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `core_userprofile` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `image` varchar(100) DEFAULT NULL, - `phone` varchar(20) NOT NULL, - `bio` longtext NOT NULL, - `user_id` int(11) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `user_id` (`user_id`), - CONSTRAINT `core_userprofile_user_id_5141ad90_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `core_userprofile` --- - -LOCK TABLES `core_userprofile` WRITE; -/*!40000 ALTER TABLE `core_userprofile` DISABLE KEYS */; -INSERT INTO `core_userprofile` VALUES -(1,'profile_pics/meezan.png','99359472','Impowring Ai',1), -(2,'','','',2); -/*!40000 ALTER TABLE `core_userprofile` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `django_admin_log` --- - -DROP TABLE IF EXISTS `django_admin_log`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `django_admin_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `action_time` datetime(6) NOT NULL, - `object_id` longtext DEFAULT NULL, - `object_repr` varchar(200) NOT NULL, - `action_flag` smallint(5) unsigned NOT NULL CHECK (`action_flag` >= 0), - `change_message` longtext NOT NULL, - `content_type_id` int(11) DEFAULT NULL, - `user_id` int(11) NOT NULL, - PRIMARY KEY (`id`), - KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`), - KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`), - CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`), - CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `django_admin_log` --- - -LOCK TABLES `django_admin_log` WRITE; -/*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */; -/*!40000 ALTER TABLE `django_admin_log` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `django_content_type` --- - -DROP TABLE IF EXISTS `django_content_type`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `django_content_type` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `app_label` varchar(100) NOT NULL, - `model` varchar(100) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`) -) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `django_content_type` --- - -LOCK TABLES `django_content_type` WRITE; -/*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */; -INSERT INTO `django_content_type` VALUES -(32,'accounting','account'), -(34,'accounting','journalentry'), -(33,'accounting','journalitem'), -(1,'admin','logentry'), -(3,'auth','group'), -(2,'auth','permission'), -(4,'auth','user'), -(5,'contenttypes','contenttype'), -(44,'core','cashiercounterregistry'), -(45,'core','cashiersession'), -(11,'core','category'), -(9,'core','customer'), -(35,'core','device'), -(31,'core','expense'), -(30,'core','expensecategory'), -(26,'core','heldsale'), -(27,'core','loyaltytier'), -(28,'core','loyaltytransaction'), -(25,'core','paymentmethod'), -(10,'core','product'), -(12,'core','purchase'), -(16,'core','purchaseitem'), -(42,'core','purchaseorder'), -(43,'core','purchaseorderitem'), -(17,'core','purchasepayment'), -(23,'core','purchasereturn'), -(22,'core','purchasereturnitem'), -(19,'core','quotation'), -(20,'core','quotationitem'), -(8,'core','sale'), -(7,'core','saleitem'), -(18,'core','salepayment'), -(24,'core','salereturn'), -(21,'core','salereturnitem'), -(13,'core','supplier'), -(14,'core','systemsetting'), -(15,'core','unit'), -(29,'core','userprofile'), -(40,'hr','attendance'), -(41,'hr','biometricdevice'), -(37,'hr','department'), -(38,'hr','employee'), -(39,'hr','jobposition'), -(36,'hr','leaverequest'), -(6,'sessions','session'); -/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `django_migrations` --- - -DROP TABLE IF EXISTS `django_migrations`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `django_migrations` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `app` varchar(255) NOT NULL, - `name` varchar(255) NOT NULL, - `applied` datetime(6) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `django_migrations` --- - -LOCK TABLES `django_migrations` WRITE; -/*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */; -INSERT INTO `django_migrations` VALUES -(1,'contenttypes','0001_initial','2026-02-02 06:49:07.912210'), -(2,'auth','0001_initial','2026-02-02 06:49:08.235725'), -(3,'admin','0001_initial','2026-02-02 06:49:08.292220'), -(4,'admin','0002_logentry_remove_auto_add','2026-02-02 06:49:08.301397'), -(5,'admin','0003_logentry_add_action_flag_choices','2026-02-02 06:49:08.308923'), -(6,'contenttypes','0002_remove_content_type_name','2026-02-02 06:49:08.361275'), -(7,'auth','0002_alter_permission_name_max_length','2026-02-02 06:49:08.387045'), -(8,'auth','0003_alter_user_email_max_length','2026-02-02 06:49:08.405049'), -(9,'auth','0004_alter_user_username_opts','2026-02-02 06:49:08.412944'), -(10,'auth','0005_alter_user_last_login_null','2026-02-02 06:49:08.442097'), -(11,'auth','0006_require_contenttypes_0002','2026-02-02 06:49:08.443714'), -(12,'auth','0007_alter_validators_add_error_messages','2026-02-02 06:49:08.452180'), -(13,'auth','0008_alter_user_username_max_length','2026-02-02 06:49:08.470808'), -(14,'auth','0009_alter_user_last_name_max_length','2026-02-02 06:49:08.490849'), -(15,'auth','0010_alter_group_name_max_length','2026-02-02 06:49:08.512411'), -(16,'auth','0011_update_proxy_permissions','2026-02-02 06:49:08.520197'), -(17,'auth','0012_alter_user_first_name_max_length','2026-02-02 06:49:08.536568'), -(18,'sessions','0001_initial','2026-02-02 06:49:08.559495'), -(19,'core','0001_initial','2026-02-02 06:51:03.071552'), -(20,'core','0002_systemsetting','2026-02-02 07:30:57.561607'), -(21,'core','0003_remove_systemsetting_logo_url_systemsetting_logo_and_more','2026-02-02 07:45:31.000870'), -(22,'core','0004_unit_product_unit','2026-02-02 08:00:56.833598'), -(23,'core','0005_product_cost_price_product_is_active_and_more','2026-02-02 08:19:07.538487'), -(24,'core','0006_purchase_balance_due_purchase_due_date_and_more','2026-02-02 08:35:37.214125'), -(25,'core','0007_sale_balance_due_sale_due_date_sale_invoice_number_and_more','2026-02-02 09:25:10.910859'), -(26,'core','0008_quotation_sale_quotation_quotationitem','2026-02-02 09:49:51.308605'), -(27,'core','0009_purchasereturn_purchasereturnitem_salereturn_and_more','2026-02-02 10:00:16.080058'), -(28,'core','0010_purchase_created_by_purchasepayment_created_by_and_more','2026-02-02 10:42:50.867159'), -(29,'core','0011_paymentmethod_purchasepayment_payment_method_name_and_more','2026-02-02 13:01:26.482934'), -(30,'core','0012_systemsetting_decimal_places','2026-02-02 16:12:15.020628'), -(31,'core','0013_heldsale','2026-02-02 16:38:01.073610'), -(32,'core','0014_loyaltytier_customer_loyalty_points_and_more','2026-02-02 16:46:31.143004'), -(33,'core','0015_userprofile','2026-02-02 16:58:21.008349'), -(34,'core','0016_expensecategory_expense','2026-02-02 17:15:25.966752'), -(35,'accounting','0001_initial','2026-02-03 03:14:20.937223'), -(36,'core','0017_expensecategory_accounting_account','2026-02-03 03:14:37.645069'), -(37,'core','0018_systemsetting_wablas_enabled_and_more','2026-02-03 05:18:13.674695'), -(38,'core','0019_systemsetting_wablas_secret_key','2026-02-03 05:22:33.198364'), -(39,'core','0020_product_expiry_date_product_has_expiry_and_more','2026-02-03 10:08:01.848192'), -(40,'core','0021_product_min_stock_level','2026-02-03 10:19:48.705500'), -(41,'core','0022_alter_product_min_stock_level_and_more','2026-02-03 10:27:58.553728'), -(42,'core','0023_alter_product_min_stock_level_and_more','2026-02-03 10:33:19.757774'), -(43,'core','0024_device','2026-02-05 12:23:02.789348'), -(44,'core','0025_sale_subtotal_sale_vat_amount','2026-02-05 12:58:10.107851'), -(45,'hr','0001_initial','2026-02-05 13:13:35.326996'), -(46,'hr','0002_biometricdevice_attendance_device','2026-02-05 13:23:07.085993'), -(47,'hr','0003_employee_biometric_id_and_more','2026-02-05 13:31:49.326558'), -(48,'core','0026_purchaseorder_purchase_purchase_order_and_more','2026-02-06 05:46:03.069331'), -(49,'core','0027_alter_device_device_type_cashiercounterregistry','2026-02-06 06:36:45.276943'), -(50,'core','0028_cashiersession','2026-02-06 07:28:55.816569'), -(51,'core','0029_systemsetting_allow_zero_stock_sales','2026-02-07 11:38:47.450830'), -(52,'core','0030_salepayment_created_at_purchasepayment_created_at','2026-02-07 11:42:09.151391'), -(53,'core','0031_create_superuser','2026-02-09 19:13:50.909885'), -(54,'core','0032_product_is_service','2026-02-09 19:13:50.963280'), -(55,'core','0033_auto_add_is_service','2026-02-10 14:30:42.074627'), -(57,'core','0034_systemsetting_favicon','2026-02-10 15:08:05.592707'), -(58,'core','0035_remove_heldsale_customer_remove_heldsale_notes_and_more','2026-02-11 08:39:30.985101'); -/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `django_session` --- - -DROP TABLE IF EXISTS `django_session`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `django_session` ( - `session_key` varchar(40) NOT NULL, - `session_data` longtext NOT NULL, - `expire_date` datetime(6) NOT NULL, - PRIMARY KEY (`session_key`), - KEY `django_session_expire_date_a5c62663` (`expire_date`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `django_session` --- - -LOCK TABLES `django_session` WRITE; -/*!40000 ALTER TABLE `django_session` DISABLE KEYS */; -INSERT INTO `django_session` VALUES -('0wecnzgpwsm956532sae9kv7jv6uz0ed','.eJxVjEEOwiAQRe_C2hBmClRcuu8ZyACDVA0kpV0Z765NutDtf-_9l_C0rcVvnRc_J3ERIE6_W6D44LqDdKd6azK2ui5zkLsiD9rl1BI_r4f7d1Col289MmrURJAZbDYOIxhllcKAQ3YOB2OSJWRQWmEGQBoDmAzW5Hi2Lon3B7r1Nsg:1vpgdu:Yv7nqc0nZ5WIC_mHoKnzgndJjC7q8QeT6YJqiYg2FqE','2026-02-24 05:50:34.582000'), -('2m6m26g8v7ywx8vxn9kcc9pv51ej6c6v','.eJxVjMsOwiAQRf-FtSFQ3i7d-w1kmAGpGkhKuzL-uzbpQrf3nHNfLMK21riNvMSZ2JlJdvrdEuAjtx3QHdqtc-xtXebEd4UfdPBrp_y8HO7fQYVRv7UhbVUha4NSSMEKMli0tlCyIlMEWAjoQvDOJ5F1QCGkMV6SmhDF5Nj7A-LhN4M:1vpgrl:EvJWbbFzKFQFou4cSDrpzkTqtxJod4uI7SEQlZWS2uI','2026-02-24 06:04:53.745861'); -/*!40000 ALTER TABLE `django_session` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `hr_attendance` --- - -DROP TABLE IF EXISTS `hr_attendance`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `hr_attendance` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `date` date NOT NULL, - `check_in` time(6) DEFAULT NULL, - `check_out` time(6) DEFAULT NULL, - `notes` longtext NOT NULL, - `employee_id` bigint(20) NOT NULL, - `device_id` bigint(20) DEFAULT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `hr_attendance_employee_id_date_bb6d7969_uniq` (`employee_id`,`date`), - KEY `hr_attendance_device_id_8b496410_fk_hr_biometricdevice_id` (`device_id`), - CONSTRAINT `hr_attendance_device_id_8b496410_fk_hr_biometricdevice_id` FOREIGN KEY (`device_id`) REFERENCES `hr_biometricdevice` (`id`), - CONSTRAINT `hr_attendance_employee_id_7ed1b344_fk_hr_employee_id` FOREIGN KEY (`employee_id`) REFERENCES `hr_employee` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `hr_attendance` --- - -LOCK TABLES `hr_attendance` WRITE; -/*!40000 ALTER TABLE `hr_attendance` DISABLE KEYS */; -/*!40000 ALTER TABLE `hr_attendance` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `hr_biometricdevice` --- - -DROP TABLE IF EXISTS `hr_biometricdevice`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `hr_biometricdevice` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `name` varchar(100) NOT NULL, - `ip_address` char(39) NOT NULL, - `port` int(10) unsigned NOT NULL CHECK (`port` >= 0), - `device_type` varchar(20) NOT NULL, - `status` varchar(20) NOT NULL, - `last_sync` datetime(6) DEFAULT NULL, - `created_at` datetime(6) NOT NULL, - `updated_at` datetime(6) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `hr_biometricdevice` --- - -LOCK TABLES `hr_biometricdevice` WRITE; -/*!40000 ALTER TABLE `hr_biometricdevice` DISABLE KEYS */; -/*!40000 ALTER TABLE `hr_biometricdevice` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `hr_department` --- - -DROP TABLE IF EXISTS `hr_department`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `hr_department` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `name_en` varchar(100) NOT NULL, - `name_ar` varchar(100) NOT NULL, - `description` longtext NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `hr_department` --- - -LOCK TABLES `hr_department` WRITE; -/*!40000 ALTER TABLE `hr_department` DISABLE KEYS */; -/*!40000 ALTER TABLE `hr_department` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `hr_employee` --- - -DROP TABLE IF EXISTS `hr_employee`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `hr_employee` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `first_name` varchar(100) NOT NULL, - `last_name` varchar(100) NOT NULL, - `email` varchar(254) NOT NULL, - `phone` varchar(20) NOT NULL, - `gender` varchar(1) NOT NULL, - `hire_date` date NOT NULL, - `salary` decimal(10,2) NOT NULL, - `status` varchar(20) NOT NULL, - `address` longtext NOT NULL, - `date_of_birth` date DEFAULT NULL, - `created_at` datetime(6) NOT NULL, - `updated_at` datetime(6) NOT NULL, - `department_id` bigint(20) DEFAULT NULL, - `user_id` int(11) DEFAULT NULL, - `job_position_id` bigint(20) DEFAULT NULL, - `biometric_id` int(11) DEFAULT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `email` (`email`), - UNIQUE KEY `user_id` (`user_id`), - KEY `hr_employee_job_position_id_8e9e3995_fk_hr_jobposition_id` (`job_position_id`), - KEY `hr_employee_department_id_0bf585c1_fk_hr_department_id` (`department_id`), - CONSTRAINT `hr_employee_department_id_0bf585c1_fk_hr_department_id` FOREIGN KEY (`department_id`) REFERENCES `hr_department` (`id`), - CONSTRAINT `hr_employee_job_position_id_8e9e3995_fk_hr_jobposition_id` FOREIGN KEY (`job_position_id`) REFERENCES `hr_jobposition` (`id`), - CONSTRAINT `hr_employee_user_id_0b2d424f_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `hr_employee` --- - -LOCK TABLES `hr_employee` WRITE; -/*!40000 ALTER TABLE `hr_employee` DISABLE KEYS */; -/*!40000 ALTER TABLE `hr_employee` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `hr_jobposition` --- - -DROP TABLE IF EXISTS `hr_jobposition`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `hr_jobposition` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `title_en` varchar(100) NOT NULL, - `title_ar` varchar(100) NOT NULL, - `department_id` bigint(20) NOT NULL, - PRIMARY KEY (`id`), - KEY `hr_jobposition_department_id_e1795bfd_fk_hr_department_id` (`department_id`), - CONSTRAINT `hr_jobposition_department_id_e1795bfd_fk_hr_department_id` FOREIGN KEY (`department_id`) REFERENCES `hr_department` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `hr_jobposition` --- - -LOCK TABLES `hr_jobposition` WRITE; -/*!40000 ALTER TABLE `hr_jobposition` DISABLE KEYS */; -/*!40000 ALTER TABLE `hr_jobposition` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `hr_leaverequest` --- - -DROP TABLE IF EXISTS `hr_leaverequest`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8mb4 */; -CREATE TABLE `hr_leaverequest` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `leave_type` varchar(20) NOT NULL, - `start_date` date NOT NULL, - `end_date` date NOT NULL, - `reason` longtext NOT NULL, - `status` varchar(20) NOT NULL, - `created_at` datetime(6) NOT NULL, - `approved_by_id` int(11) DEFAULT NULL, - `employee_id` bigint(20) NOT NULL, - PRIMARY KEY (`id`), - KEY `hr_leaverequest_approved_by_id_1584e857_fk_auth_user_id` (`approved_by_id`), - KEY `hr_leaverequest_employee_id_7b0019ae_fk_hr_employee_id` (`employee_id`), - CONSTRAINT `hr_leaverequest_approved_by_id_1584e857_fk_auth_user_id` FOREIGN KEY (`approved_by_id`) REFERENCES `auth_user` (`id`), - CONSTRAINT `hr_leaverequest_employee_id_7b0019ae_fk_hr_employee_id` FOREIGN KEY (`employee_id`) REFERENCES `hr_employee` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `hr_leaverequest` --- - -LOCK TABLES `hr_leaverequest` WRITE; -/*!40000 ALTER TABLE `hr_leaverequest` DISABLE KEYS */; -/*!40000 ALTER TABLE `hr_leaverequest` ENABLE KEYS */; -UNLOCK TABLES; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - --- Dump completed on 2026-02-11 9:42:45