mysql -uzyadmin -pUploo00king -h pub-m-bp18e997b01056b4.petadata.rds.aliyuncs.com juang
CREATE TABLE `vg_card_info` ( `id_outside` char(50) DEFAULT '' PRIMARY KEY, `id_inside` char(50) NOT NULL, `brand_id` int(11) DEFAULT '0', `id_code` char(50) DEFAULT '' , `id_remark` varchar(50) DEFAULT '', `id_weixin` char(50) DEFAULT '', `id_alipay` char(50) DEFAULT '', `card_value` decimal(11,2) DEFAULT '0.00', `card_value_face` decimal(11,2) DEFAULT '0.00', `card_type` int(11) DEFAULT '1', `card_checkout` int(11) DEFAULT '0', `card_recharge` int(11) DEFAULT '0', `create_id` int(11) DEFAULT '0', `tips` int(11) DEFAULT '0' , `status` int(10) DEFAULT '1', `add_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `add_name` varchar(20) DEFAULT NULL, `remark` text CHARACTER SET utf8 COLLATE utf8_icelandic_ci, `edit_op` varchar(20) DEFAULT NULL, `edit_date` varchar(20) DEFAULT NULL, KEY `IDX_brand_id` (`brand_id`), KEY `IDX_card_type` (`card_type`), KEY `IDX_id_inside` (`id_inside`), KEY `IDX_id_weixin` (`id_weixin`) USING BTREE ) distribute_key (id_outside) DEFAULT CHARSET=utf8;
CREATE TABLE `vg_terminal_logs_021_2016` ( `id` bigint(20) PRIMARY KEY AUTO_INCREMENT, `brand_id` int(11) DEFAULT '0' , `terminal_num` varchar(100) DEFAULT NULL , `address` varchar(100) DEFAULT NULL , `kiosk_time` int DEFAULT NULL, `kiosk_info` char(255) DEFAULT NULL, `kiosk_initstatus` int(20) DEFAULT '0' , `purchase_way` int(20) DEFAULT '0' , `price` decimal(10,2) DEFAULT '10.00', `trade_no` varchar(100) DEFAULT NULL, `cash_starting` int(20) DEFAULT '0', `cash_prerecieved` int(20) DEFAULT '0', `cash_recieved` int(20) DEFAULT '0', `card_starting` int(20) DEFAULT '0' , `card_reading` char(255) DEFAULT NULL, `card_account` decimal(10,2) DEFAULT '0.00' , `card_preorder` int(11) DEFAULT '0' , `kiosk_temperature` int(11) DEFAULT '0' , `kiosk_humidity` int(11) DEFAULT '0', `kiosk_ozone` int(11) DEFAULT '0' , `orange_stock` int(20) DEFAULT '0' , `coins_stock` char(50) DEFAULT '-1' , `upload_date` datetime DEFAULT NULL , UNIQUE KEY `IDX_terminal_num_time` (`terminal_num`,`kiosk_time`) USING BTREE, KEY `IDX_brand_id` (`brand_id`), KEY `IDX_card_account` (`card_account`), KEY `IDX_kiosk_time` (`kiosk_time`), KEY `IDX_trade_no` (`trade_no`), KEY `IDX_terminal_num_update` (`terminal_num`,`upload_date`), KEY `IDX_update` (`upload_date`) )distribute_key (kiosk_time) DEFAULT CHARSET=utf8 ;
CREATE TABLE `vg_terminal_logs_021_2017` ( `id` bigint(20) PRIMARY KEY AUTO_INCREMENT, `brand_id` int(11) DEFAULT '0' , `terminal_num` varchar(100) DEFAULT NULL, `address` varchar(100) DEFAULT NULL, `kiosk_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `kiosk_info` char(255) DEFAULT NULL, `kiosk_initstatus` int(20) DEFAULT '0' , `purchase_way` int(20) DEFAULT '0' , `price` decimal(10,2) DEFAULT '10.00' , `trade_no` varchar(100) DEFAULT NULL , `cash_starting` int(20) DEFAULT '0' , `cash_prerecieved` int(20) DEFAULT '0' , `cash_recieved` int(20) DEFAULT '0' , `card_starting` int(20) DEFAULT '0' , `card_reading` char(255) DEFAULT NULL, `card_account` decimal(10,2) DEFAULT '0.00' , `card_preorder` int(11) DEFAULT '0', `kiosk_temperature` int(11) DEFAULT '0' , `kiosk_humidity` int(11) DEFAULT '0' , `kiosk_ozone` int(11) DEFAULT '0' , `orange_stock` int(20) DEFAULT '0' , `coins_stock` char(50) DEFAULT '-1' , `upload_date` int DEFAULT NULL, UNIQUE KEY `IDX_terminal_num_time` (`terminal_num`,`kiosk_time`) USING BTREE, KEY `IDX_brand_id` (`brand_id`), KEY `IDX_card_account` (`card_account`), KEY `IDX_kiosk_time` (`kiosk_time`), KEY `IDX_trade_no` (`trade_no`), KEY `IDX_terminal_num_update` (`terminal_num`,`upload_date`) USING BTREE, KEY `IDX_update` (`upload_date`) ) distribute_key (upload_date) DEFAULT CHARSET=utf8 ;
|