chore: 重写初始提交(清空历史,整理后全量提交)

This commit is contained in:
ywxapp
2026-08-16 16:54:14 +08:00
commit 6c1a106bc1
1808 changed files with 238144 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
CREATE TABLE IF NOT EXISTS `__PREFIX__Mqpay_order` (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '自增主键',
`order_sn` varchar(64) NOT NULL DEFAULT '' COMMENT '订单号',
`uid` int NOT NULL DEFAULT 0 COMMENT '用户ID',
`plan_id` int NOT NULL DEFAULT 0 COMMENT '套餐ID',
`plan_title` varchar(100) DEFAULT '' COMMENT '套餐名称',
`amount` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT '金额',
`real_amount` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT '实际应付金额(免签零头防撞单:原价+随机尾差)',
`method` varchar(30) DEFAULT '' COMMENT '支付方式 personal(免签)/wechat/alipay',
`transaction_id` varchar(64) DEFAULT '' COMMENT '第三方交易号',
`status` tinyint NOT NULL DEFAULT 0 COMMENT '0未支付 1已支付',
`create_at` int DEFAULT 0 COMMENT '创建时间',
`pay_at` int DEFAULT 0 COMMENT '支付时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_order_sn` (`order_sn`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='示例支付订单';