1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
| root@db 11:46: [test]> desc test_order; +-----------------+----------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------------+----------------+------+-----+---------+----------------+ | id | bigint(20) | NO | PRI | NULL | auto_increment | | order_no | varchar(24) | NO | UNI | NULL | | | broker_id | varchar(24) | NO | MUL | NULL | | | broker_uid | bigint(20) | NO | | NULL | | | plat_id | varchar(24) | NO | | NULL | | | price_asset | varchar(8) | NO | | NULL | | | test_type | varchar(16) | NO | | NULL | | | order_type | varchar(16) | NO | | NULL | | | price | decimal(32,20) | NO | | NULL | | | number | decimal(32,20) | NO | | NULL | | | test_asset | varchar(8) | NO | MUL | NULL | | | testd_number | decimal(32,20) | NO | | NULL | | | over_number | decimal(32,20) | NO | | NULL | | | testd_money | decimal(32,20) | NO | | NULL | | | fee_asset | varchar(8) | NO | | NULL | | | fee | decimal(32,20) | NO | | NULL | | | broker_fee | decimal(32,20) | NO | | NULL | | | cloud_fee | decimal(32,20) | NO | | NULL | | | client_order_no | varchar(36) | NO | | NULL | | | state | varchar(16) | NO | | NULL | | | send_state | varchar(16) | NO | | NULL | | | error_code | varchar(24) | YES | | NULL | | | error_msg | varchar(64) | YES | | NULL | | | create_time | datetime | NO | | NULL | | | update_time | datetime | NO | | NULL | | +-----------------+----------------+------+-----+---------+----------------+ 25 rows in set (0.01 sec)
root@db 11:46: [test]> show create table test_order\G *************************** 1. row *************************** Table: test_order Create Table: CREATE TABLE `test_order` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `order_no` varchar(24) NOT NULL, `broker_id` varchar(24) NOT NULL, `broker_uid` bigint(20) NOT NULL, `plat_id` varchar(24) NOT NULL, `price_asset` varchar(8) NOT NULL, `test_type` varchar(16) NOT NULL, `order_type` varchar(16) NOT NULL, `price` decimal(32,20) NOT NULL, `number` decimal(32,20) NOT NULL, `test_asset` varchar(8) NOT NULL, `testd_number` decimal(32,20) NOT NULL, `over_number` decimal(32,20) NOT NULL, `testd_money` decimal(32,20) NOT NULL, `fee_asset` varchar(8) NOT NULL, `fee` decimal(32,20) NOT NULL, `broker_fee` decimal(32,20) NOT NULL, `cloud_fee` decimal(32,20) NOT NULL, `client_order_no` varchar(36) NOT NULL, `state` varchar(16) NOT NULL, `send_state` varchar(16) NOT NULL, `error_code` varchar(24) DEFAULT NULL, `error_msg` varchar(64) DEFAULT NULL, `create_time` datetime NOT NULL, `update_time` datetime NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `test_order_order_no_uindex` (`order_no`), UNIQUE KEY `test_order_broker_id_client_order_no_uindex` (`broker_id`,`client_order_no`), KEY `multi_price_test_id_uid_state_index` (`test_asset`,`price_asset`,`broker_uid`,`broker_id`,`state`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 1 row in set (0.01 sec)
|