-- DBMS: sqlite
CREATE TABLE orders (
    order_id INTEGER,
    store_id INTEGER,
    channel_id INTEGER,
    payment_order_id INTEGER,
    delivery_order_id INTEGER,
    order_status VARCHAR(50),
    order_amount DECIMAL(10, 2),
    order_delivery_fee DECIMAL(10, 2),
    order_delivery_cost DECIMAL(10, 2),
    order_created_hour INTEGER,
    order_created_minute INTEGER,
    order_created_day INTEGER,
    order_created_month INTEGER,
    order_created_year INTEGER,
    order_moment_created DATETIME,
    order_moment_accepted DATETIME,
    order_moment_ready DATETIME,
    order_moment_collected DATETIME,
    order_moment_in_expedition DATETIME,
    order_moment_delivering DATETIME,
    order_moment_delivered DATETIME,
    order_moment_finished DATETIME,
    order_metric_collected_time DECIMAL(10, 2),
    order_metric_paused_time DECIMAL(10, 2),
    order_metric_production_time DECIMAL(10, 2),
    order_metric_walking_time DECIMAL(10, 2),
    order_metric_expediton_speed_time DECIMAL(10, 2),
    order_metric_transit_time DECIMAL(10, 2),
    order_metric_cycle_time DECIMAL(10, 2)
);

INSERT INTO orders (order_id, store_id, channel_id, payment_order_id, delivery_order_id, order_status, order_amount, order_delivery_fee, order_delivery_cost, order_created_hour, order_created_minute, order_created_day, order_created_month, order_created_year, order_moment_created, order_moment_accepted, order_moment_ready, order_moment_collected, order_moment_in_expedition, order_moment_delivering, order_moment_delivered, order_moment_finished, order_metric_collected_time, order_metric_paused_time, order_metric_production_time, order_metric_walking_time, order_metric_expediton_speed_time, order_metric_transit_time, order_metric_cycle_time) VALUES (80904697, 149, 5, 80904697, 80904697, 'CANCELED', 199.7, 11.9, 0.0, 22, 20, 1, 3, 2021, '3/1/2021 10:20:24 PM', '3/1/2021 10:21:04 PM', '3/1/2021 10:39:31 PM', '3/1/2021 10:40:43 PM', '3/1/2021 10:43:26 PM', NULL, NULL, NULL, 1.2, nan, 19.12, 3.92, nan, nan, nan), (79002206, 2812, 5, 79002206, 79002206, 'FINISHED', 40.9, 3.99, 6.0, 16, 56, 20, 2, 2021, '2/20/2021 4:56:06 PM', '2/20/2021 4:56:37 PM', '2/20/2021 5:02:30 PM', '2/20/2021 5:04:29 PM', '2/20/2021 5:04:30 PM', '2/20/2021 5:05:24 PM', NULL, '2/20/2021 5:19:46 PM', 1.97, 0.88, 6.4, 2.0, 2.88, 14.37, 23.67), (86438261, 676, 5, 86438261, 86438261, 'FINISHED', 125.8, 11.9, 7.32, 20, 40, 27, 3, 2021, '3/27/2021 8:40:19 PM', '3/27/2021 8:40:35 PM', '3/27/2021 8:58:59 PM', '3/27/2021 8:59:54 PM', '3/27/2021 8:59:55 PM', '3/27/2021 9:02:29 PM', NULL, '3/27/2021 9:10:47 PM', 0.93, 2.57, 18.67, 0.93, 3.5, 8.3, 30.47), (69121075, 294, 5, 69121075, 69121075, 'FINISHED', 201.2, 6.9, 6.0, 15, 32, 4, 1, 2021, '1/4/2021 3:32:49 PM', '1/4/2021 3:33:03 PM', '1/4/2021 3:52:34 PM', '1/4/2021 3:56:44 PM', '1/4/2021 4:00:08 PM', '1/4/2021 4:01:22 PM', NULL, '1/4/2021 4:16:23 PM', 4.17, 1.23, 19.75, 7.57, 8.8, 15.02, 43.57), (75419211, 690, 5, 75419211, 75419211, 'FINISHED', 49.9, 6.9, 6.0, 15, 5, 3, 2, 2021, '2/3/2021 3:05:27 PM', '2/3/2021 3:06:07 PM', '2/3/2021 3:17:43 PM', '2/3/2021 3:21:39 PM', '2/3/2021 3:25:46 PM', '2/3/2021 3:26:08 PM', NULL, '2/3/2021 3:44:17 PM', 3.93, 0.35, 12.27, 8.05, 8.4, 18.17, 38.85);