CREATE TABLE `fg_manager_static_pos_ups_billdata` (
  `sale_date` DATETIME NOT NULL,
  `shop_name` VARCHAR(100) NOT NULL,
  `pos_no` VARCHAR(20) NOT NULL,
  `bill_no` VARCHAR(20) NOT NULL,
  `product_cd` VARCHAR(20) NOT NULL,
  `ca01` VARCHAR(50),
  `ca02` VARCHAR(50),
  `ca03` VARCHAR(50),
  `product_name` VARCHAR(100),
  `barcode` VARCHAR(20),
  `amt` INT,
  `qty` INT,
  `tot_sale_amt` INT,
  `dc_amt` INT,
  `dcm_sale_amt` INT,
  `net_amt` INT,
  `vat_amt` INT,
  `cash_receipt` INT,
  `card` INT,
  PRIMARY KEY (`sale_date`, `shop_name`, `pos_no`, `bill_no`, `product_cd`, `qty`), -- 옵션: 복합 PK (원하지 않으면 제거) 
  KEY `idx_sale_shop_pos_product` (`sale_date`, `shop_name`, `pos_no`, `product_cd`),
  KEY `idx_category` (`ca01`, `ca02`, `ca03`),
  KEY `idx_product_barcode` (`product_name`, `barcode`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
