/*
 Navicat Premium Data Transfer

 Source Server         : 2112
 Source Server Type    : MySQL
 Source Server Version : 50557
 Source Host           : localhost:3306
 Source Schema         : ria_02

 Target Server Type    : MySQL
 Target Server Version : 50557
 File Encoding         : 65001

 Date: 19/07/2024 09:08:48
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for stu_cou
-- ----------------------------
DROP TABLE IF EXISTS `stu_cou`;
CREATE TABLE `stu_cou`  (
  `sc_id` int(11) NOT NULL AUTO_INCREMENT,
  `c_id` int(12) NULL DEFAULT NULL,
  `s_id` int(13) NULL DEFAULT NULL,
  PRIMARY KEY (`sc_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of stu_cou
-- ----------------------------
INSERT INTO `stu_cou` VALUES (1, 1, 1);
INSERT INTO `stu_cou` VALUES (2, 1, 2);
INSERT INTO `stu_cou` VALUES (3, 1, 3);
INSERT INTO `stu_cou` VALUES (4, 2, 4);
INSERT INTO `stu_cou` VALUES (5, 2, 5);
INSERT INTO `stu_cou` VALUES (6, 2, 6);
INSERT INTO `stu_cou` VALUES (7, 3, 7);
INSERT INTO `stu_cou` VALUES (8, 3, 8);
INSERT INTO `stu_cou` VALUES (9, 3, 9);

-- ----------------------------
-- Table structure for t_course
-- ----------------------------
DROP TABLE IF EXISTS `t_course`;
CREATE TABLE `t_course`  (
  `c_id` int(11) NOT NULL AUTO_INCREMENT,
  `c_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`c_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of t_course
-- ----------------------------
INSERT INTO `t_course` VALUES (1, '正课');
INSERT INTO `t_course` VALUES (2, '自习');
INSERT INTO `t_course` VALUES (3, '晚自习');

-- ----------------------------
-- Table structure for t_student
-- ----------------------------
DROP TABLE IF EXISTS `t_student`;
CREATE TABLE `t_student`  (
  `s_id` int(11) NOT NULL AUTO_INCREMENT,
  `s_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `sex` varchar(3) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`s_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of t_student
-- ----------------------------
INSERT INTO `t_student` VALUES (1, '牛1', '男');
INSERT INTO `t_student` VALUES (2, '牛2', '女');
INSERT INTO `t_student` VALUES (3, '牛3', '男');
INSERT INTO `t_student` VALUES (4, '牛4', '男');
INSERT INTO `t_student` VALUES (5, '牛5', '女');
INSERT INTO `t_student` VALUES (6, '牛6', '男');
INSERT INTO `t_student` VALUES (7, '牛7', '女');
INSERT INTO `t_student` VALUES (8, '牛8', '女');
INSERT INTO `t_student` VALUES (9, '牛9', '男');
INSERT INTO `t_student` VALUES (10, '牛腾', '男');
INSERT INTO `t_student` VALUES (11, '牛10', '女');

SET FOREIGN_KEY_CHECKS = 1;
