create table f_stock_orders_items
(
    item_id                  int(7) auto_increment
        primary key,
    order_id                 int(7)                                not null,
    stock_id                 int(7)                                not null,
    packing_id               int(7)                                not null,
    invoice_id               int(7)                                not null,
    status                   int(10)                               not null,
    stock_qty                varchar(10)                           not null,
    confirmation_qty         varchar(10)                           not null,
    confirmation_date        varchar(10)                           not null,
    confirmed_delivery_date  varchar(10)                           not null,
    delivery_date            varchar(10)                           not null,
    date_first_confirmed     varchar(10)                           null,
    comment_for_confirm_date varchar(150)                          null,
    delivery_qty             varchar(10)                           not null,
    delivery_price           float(10, 4)                          null,
    delivery_change          varchar(10)                           not null,
    delivery_curr            varchar(5)                            not null,
    stock_new_item           int                                   not null,
    delivered                int(1)                                not null,
    deleted                  int(1)                                not null,
    stock_qty_id             int(7)                                not null,
    ordered_id               int(10)                               not null,
    line_name                varchar(60)                           not null,
    comment                  text                                  not null,
    manual_total_price       varchar(60)                           not null,
    total_price              varchar(60)                           not null,
    create_date              timestamp default current_timestamp() not null,
    update_date              timestamp default current_timestamp() not null on update current_timestamp()
)
    charset = utf8mb3;
