sadjv3/anmo/db/sql脚本

26 lines
1.5 KiB
Plaintext
Raw Permalink 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.

--common_info表增加多少分钟等1积分 数据(type=100000)
INSERT INTO `anmo`.`common_info` (`id`, `create_at`, `max`, `min`, `type`, `value`, `condition_from`) VALUES (430, '2024-02-01 11:19:11', NULL, '多少分钟等1积分', 100000, '10', 'xitong');
--新增 积分等级字典表 artificer_partitioning_details.sql sql脚本在db文件夹下
--新增 积分储值表
CREATE TABLE `anmo`.`user_recharge` (
`id` bigint(11) NOT NULL AUTO_INCREMENT,
`user_recharge` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '用户充值积分',
`orders_id` int(11) NULL DEFAULT NULL COMMENT '订单id',
`user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
`type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '积分类型1在线积分2储值积分',
`artificer_id` int(11) NULL DEFAULT NULL COMMENT '技师id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
);
--artificer 技师表增加grade
ALTER TABLE `anmo`.`artificer`
ADD COLUMN `grade` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '当前等级' AFTER `up_time`;
--artificer 技师表增加up_time
ALTER TABLE `anmo`.`artificer`
ADD COLUMN `up_time` datetime(0) NULL DEFAULT NULL COMMENT '上线时间' AFTER `grade`;
INSERT INTO `anmo`.`common_info` (`id`, `create_at`, `max`, `min`, `type`, `value`, `condition_from`) VALUES (436, '2024-02-18 15:52:12', NULL, '中医忙时时间切换(只限输入 30半个小时 60一个小时', 436, '60', 'fuwufei');