-- 무료용 불출 취소 화면 고도화용 상세 테이블 -- 실행: -- mysql --default-character-set=utf8mb4 -u ... -p DBNAME < writable/database/bag_issue_item_code_table.sql SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci; SET CHARACTER_SET_CLIENT = utf8mb4; CREATE TABLE IF NOT EXISTS `bag_issue_item_code` ( `bic_idx` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `bic_lg_idx` INT UNSIGNED NOT NULL, `bic_bi2_idx` INT UNSIGNED NOT NULL COMMENT 'bag_issue.bi2_idx', `bic_bag_code` VARCHAR(50) NOT NULL DEFAULT '' COMMENT '봉투 종류 코드', `bic_issue_code` VARCHAR(80) NOT NULL DEFAULT '' COMMENT '불출 품목 코드', `bic_qty` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT '원수량(낱장)', `bic_cancel_qty` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT '취소수량(낱장)', `bic_state` VARCHAR(10) NOT NULL DEFAULT 'normal' COMMENT 'normal/cancelled', `bic_regdate` DATETIME NOT NULL, PRIMARY KEY (`bic_idx`), KEY `idx_bic_lg_idx` (`bic_lg_idx`), KEY `idx_bic_bi2_idx` (`bic_bi2_idx`), KEY `idx_bic_issue_code` (`bic_issue_code`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='무료용 불출 품목코드 상세';