CREATE TABLE `f_stock` (
    `id` int(7) NOT NULL,
    `stock` int(1) NOT NULL DEFAULT 1 COMMENT '1 - Fischer, 2 - Kurage, 3 - Curtains, 4 - Blendex, 5 - DK, 9 - LT, 10 - Selt',
    `previous_stock` int(2) NOT NULL,
    `responsible` int(3) NOT NULL,
    `active` int(1) NOT NULL DEFAULT 1,
    `vat_unused` varchar(10) NOT NULL,
    `supplier` int(4) NOT NULL,
    `supplier_code` varchar(50) NOT NULL,
    `name` varchar(250) NOT NULL,
    `name_lt` varchar(250) DEFAULT NULL COMMENT 'name for gpais',
    `nr` varchar(50) NOT NULL,
    `stock_rma` int(11) NOT NULL,
    `old_nr` varchar(50) NOT NULL,
    `blx_nr` int(20) NOT NULL,
    `units` varchar(10) NOT NULL,
    `unit_lt` varchar(250) DEFAULT NULL COMMENT 'unit name for gpais',
    `qty` float(15,2) DEFAULT 0.00,
    `calculated_qty` float(15,2) DEFAULT NULL COMMENT 'this qty is used when inventory check is made',
    `kind` varchar(250) DEFAULT NULL COMMENT 'gpais kind code',
    `matterial` int(11) NOT NULL DEFAULT 0 COMMENT '0 - no info, 1 - plastic, 2 - carton, 3 - wood',
    `reserved_old` float(15,2) NOT NULL DEFAULT 0.00,
    `qty_alert` float(6,1) NOT NULL,
    `qty_order` float(20,1) NOT NULL,
    `width` varchar(10) NOT NULL,
    `weight` varchar(10) NOT NULL,
    `package_qty` float NOT NULL,
    `package_weight` int(20) NOT NULL,
    `item_width` int(11) NOT NULL,
    `item_height` int(11) NOT NULL,
    `item_depth` int(11) NOT NULL,
    `location` text NOT NULL,
    `pragma_nr` varchar(50) NOT NULL,
    `color` int(5) NOT NULL,
    `pgroup` varchar(250) NOT NULL,
    `pcat` int(7) NOT NULL,
    `pricegroup` int(1) NOT NULL,
    `price` varchar(10) NOT NULL DEFAULT '0',
    `visual_price` varchar(250) NOT NULL,
    `currency` varchar(3) NOT NULL,
    `eur_price` varchar(10) NOT NULL DEFAULT '0',
    `fixed_price` float NOT NULL COMMENT 'Full price with cents without decimal point',
    `avg_price` float NOT NULL DEFAULT 0,
    `total_avg_price` float NOT NULL,
    `painting` varchar(50) NOT NULL,
    `coating_name` varchar(40) NOT NULL,
    `item_material` int(5) NOT NULL,
    `perimeter` varchar(255) NOT NULL,
    `anod_perimeter` varchar(10) NOT NULL,
    `link` int(10) NOT NULL,
    `markup` int(3) NOT NULL,
    `multiplier` float NOT NULL DEFAULT 1.25,
    `remarks` text NOT NULL,
    `summe2016` int(10) NOT NULL,
    `summe2017` int(10) NOT NULL,
    `summe2018` int(10) NOT NULL,
    `summe2019` int(10) NOT NULL,
    `summe2020` int(10) NOT NULL,
    `summe2021` int(10) NOT NULL,
    `summe2022` int(10) NOT NULL,
    `summe2023` int(10) NOT NULL,
    `summe2024` int(11) NOT NULL DEFAULT 0,
    `ordered` varchar(60) NOT NULL,
    `dispatch` varchar(60) NOT NULL,
    `status` int(2) NOT NULL,
    `fabric` int(2) NOT NULL,
    `go_out` int(2) NOT NULL,
    `kurage_special` int(11) NOT NULL,
    `old_item` int(2) NOT NULL,
    `company` int(10) NOT NULL,
    `images` text NOT NULL,
    `grouping` int(5) NOT NULL,
    `send_to_dk` int(1) NOT NULL,
    `painting_fabric` int(1) NOT NULL,
    `painting_fabric_ids` text NOT NULL,
    `alert_count` int(11) NOT NULL,
    `checklist_name` text DEFAULT NULL COMMENT 'Used in cutting sheets for component checklist',
    `openness_factor` int(11) NOT NULL,
    `create_date` timestamp NOT NULL DEFAULT current_timestamp(),
    `update_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) charset=utf8;
