Files
smart_venue/other/sql/202312.sql

23 lines
1.1 KiB
SQL

ALTER TABLE `smart_venue`.`sv_venue`
ADD COLUMN `pay_style` int(11) NULL DEFAULT 0 COMMENT '计费方式 0-按次收费、1-按时收费' AFTER `copy_control`;
ALTER TABLE `smart_venue`.`sv_venue`
ADD COLUMN `time_pay_hour` int(11) NULL COMMENT '按次收费几小时内免费' AFTER `pay_style`;
ALTER TABLE `smart_venue`.`sv_barcode_order_time`
ADD COLUMN `status` int(11) NULL COMMENT '0- 有效 1-失效' AFTER `order_end`;
-- ----------------------------
-- Table structure for sv_member_enter_status
-- ----------------------------
DROP TABLE IF EXISTS `sv_member_enter_status`;
CREATE TABLE `sv_member_enter_status` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`member_id` int(11) NOT NULL COMMENT '客户ID',
`venue_id` int(11) NOT NULL COMMENT '场馆ID',
`status` int(11) NOT NULL COMMENT '状态 0-场外 1-场内',
`created_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`modified_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1231 DEFAULT CHARSET=utf8mb4 COMMENT='用户在场馆的状态';