(1)使用数据库
mysql 或 Mysql -h localhost -uUserName -pPassWd
create database database_name charset utf8; drop database database_name;
show databases; use database_name;
show tables;
CREATE TABLE `smart_week_class_apply_content` ( `id` int(11) NOT NULL AUTO_INCREMENT, `apply_id` int(11) NOT NULL DEFAULT ‘0‘ COMMENT ‘课表id‘, `city_id` int(11) NOT NULL DEFAULT ‘0‘, `city_name` varchar(50) NOT NULL DEFAULT ‘‘, `store_id` int(11) NOT NULL DEFAULT ‘0‘, `store_name` varchar(100) NOT NULL DEFAULT ‘‘, `room_id` int(11) NOT NULL DEFAULT ‘0‘, `room_name` varchar(50) NOT NULL DEFAULT ‘‘, `start_time` int(11) NOT NULL DEFAULT ‘0‘, `end_time` int(11) NOT NULL DEFAULT ‘0‘, `class_id` int(11) NOT NULL DEFAULT ‘0‘, `class_name` varchar(100) NOT NULL DEFAULT ‘‘, `class_cate` tinyint(2) NOT NULL DEFAULT ‘0‘ COMMENT ‘课程大分类‘, `user_limit` int(11) NOT NULL DEFAULT ‘0‘ COMMENT ‘人数上限‘, `coach_id` int(11) NOT NULL DEFAULT ‘0‘ COMMENT ‘教练id‘, `coach_name` varchar(100) NOT NULL DEFAULT ‘‘ COMMENT ‘教练名称‘, `is_private` tinyint(2) NOT NULL DEFAULT ‘0‘ COMMENT ‘1 是 0 不是‘, `is_coach` tinyint(2) NOT NULL DEFAULT ‘0‘, `is_full_time_private` tinyint(2) NOT NULL DEFAULT ‘0‘, `is_full_time_coach` tinyint(2) NOT NULL DEFAULT ‘0‘, `week_range_string` varchar(16) NOT NULL DEFAULT ‘‘ COMMENT ‘e.g. 2016050220160508‘, `week_day` tinyint(2) NOT NULL DEFAULT ‘1‘ COMMENT ‘1 - 7‘, `status` tinyint(2) NOT NULL DEFAULT ‘1‘ COMMENT ‘1 正常 2 删除‘, `marked` tinyint(2) NOT NULL DEFAULT ‘2‘ COMMENT ‘标记状态:1-已编辑课程,2-未确认,3-已确认,4-请假课程‘, `remark` varchar(255) NOT NULL DEFAULT ‘‘ COMMENT ‘备注‘, `is_publish` tinyint(2) NOT NULL DEFAULT ‘0‘ COMMENT ‘ 是否已发布 0,未发布 1已发布‘, PRIMARY KEY (`id`)) ENGINE=InnoDB AUTO_INCREMENT=7332 DEFAULT CHARSET=utf8
时间: 2024-10-12 13:11:43