This commit is contained in:
2026-04-12 01:35:19 +02:00
parent 91a8b85f38
commit d04e02020c
70 changed files with 8634 additions and 207 deletions

View File

@@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS orders (
external_order_id VARCHAR(128) NULL,
external_platform_id VARCHAR(64) NULL,
external_platform_account_id VARCHAR(64) NULL,
external_status_id VARCHAR(64) NULL,
status_code VARCHAR(64) NULL,
external_payment_type_id VARCHAR(64) NULL,
payment_status TINYINT UNSIGNED NULL,
external_carrier_id VARCHAR(64) NULL,
@@ -34,7 +34,7 @@ CREATE TABLE IF NOT EXISTS orders (
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
UNIQUE KEY orders_integration_source_order_unique (integration_id, source_order_id),
KEY orders_integration_external_idx (integration_id, external_order_id),
KEY orders_status_idx (external_status_id),
KEY orders_status_idx (status_code),
KEY orders_source_updated_idx (source_updated_at),
KEY orders_ordered_at_idx (ordered_at)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;