game2006api/sql/gamedb2006_migrate_230619_01.sql
aozhiwei 2e2898d2f3 1
2023-06-19 13:45:43 +08:00

24 lines
1000 B
PL/PgSQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

begin;
alter table t_transaction add column `item_num` bigint NOT NULL DEFAULT '0' COMMENT '道具num';
CREATE TABLE `t_bc_order` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` varchar(255) COMMENT '订单号',
`order_type` int(11) NOT NULL COMMENT '0: 小胡 ',
`account_id` varchar(60) NOT NULL COMMENT '账户id 只用做事后分析用',
`address` varchar(60) COMMENT 'address',
`status` int(11) NOT NULL DEFAULT '0' COMMENT '0: 支付中 1 已发货',
`item_id` int(11) NOT NULL COMMENT '道具id',
`item_num` bigint NOT NULL DEFAULT '0' COMMENT '道具数量',
`ext_data` mediumblob COMMENT '扩展数据自定义',
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
UNIQUE KEY `order_id` (`order_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
insert into version (version) values(2023061901);
commit;