CREATE TABLE IF NOT EXISTS allegro_delivery_method_mappings (
    id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
    order_delivery_method VARCHAR(200) NOT NULL,
    allegro_delivery_method_id VARCHAR(128) NOT NULL,
    allegro_credentials_id VARCHAR(128) NULL,
    allegro_carrier_id VARCHAR(128) NULL,
    allegro_service_name VARCHAR(255) NULL,
    created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
    updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    UNIQUE KEY allegro_dm_mapping_unique (order_delivery_method)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
