CREATE TABLE `f_order_parts` (
     `id` int(10) NOT NULL,
     `status` int(5) NOT NULL,
     `deducted_id` int(10) NOT NULL,
     `nr` int(4) NOT NULL,
     `project_id` int(7) NOT NULL,
     `order_id` int(7) NOT NULL,
     `shipment_id` int(10) NOT NULL,
     `product_id` int(7) NOT NULL,
     `cancelled_product_id` int(10) NOT NULL,
     `item_id` int(7) NOT NULL,
     `curtain_id` int(10) NOT NULL,
     `user_name` text NOT NULL,
     `production_user_id` int(11) NOT NULL,
     `admin_user_id` int(11) NOT NULL,
     `correction_id` int(7) NOT NULL,
     `code` varchar(255) NOT NULL,
     `name` varchar(250) NOT NULL,
     `group` varchar(20) NOT NULL,
     `groups` varchar(250) NOT NULL,
     `component_group` varchar(255) NOT NULL,
     `component_model` int(11) NOT NULL,
     `model` varchar(20) NOT NULL,
     `stock_id` int(7) NOT NULL,
     `stock_select` varchar(250) NOT NULL,
     `products_qty` int(10) NOT NULL,
     `qty` float NOT NULL,
     `total_qty` float NOT NULL,
     `total_qty_planned` float NOT NULL,
     `confirmed_qty` int DEFAULT 1 NOT NULL,
     `pleats` int(7) NOT NULL,
     `units` varchar(10) NOT NULL,
     `length` float NOT NULL,
     `rma` float NOT NULL,
     `painting` float NOT NULL,
     `price` float NOT NULL,
     `total_price` float NOT NULL,
     `price_netto` float NOT NULL,
     `vat` varchar(10) NOT NULL,
     `alert` int(2) NOT NULL,
     `special` int(2) NOT NULL,
     `fabric` int(1) DEFAULT NULL,
     `weight` varchar(10) NOT NULL,
     `date` varchar(10) NOT NULL,
     `report_time_period` text NOT NULL,
     `create_date` timestamp NOT NULL DEFAULT current_timestamp(),
     `update_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) charset=utf8;
