ALTER TABLE `asc_precard` ADD `note` VARCHAR(100) NOT NULL COMMENT '備註' AFTER `status`;


INSERT INTO `asc_agent` (`id`, `name`, `appid`, `appkey`, `prefix`, `try_days`, `try_level`, `base_days`, `base_level`, `expire_action`, `ex_type`, `ex_func`, `create_time`, `update_time`, `delete_time`) VALUES ('2', '電商', 'ut00002', 'ilovetggo', 'ec', '7', '1', '0', '0', '0', '0', '', '2022-03-28 23:57:49', '2022-04-18 05:37:44', NULL);

CREATE TABLE `asc_user_nfc` (
  `id` int NOT NULL AUTO_INCREAMENT COMMENT '自增ID',
  `uid` varchar(10)  NOT NULL DEFAULT '0' COMMENT '卡號',
  `agent_id` int NOT NULL DEFAULT '0' COMMENT '代理ID',
  PRIMARY Key ('id')
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='會員卡片資料表';

ALTER TABLE `asc_user_nfc`
  ADD PRIMARY KEY (`id`);

