CREATE DATABASE student;

USE student;
CREATE TABLE admin (
                       id INT PRIMARY KEY,
                       username VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
                       password VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
                       name VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci

);
use student;

insert into admin values(1,'admin','admin','管理员');

CREATE TABLE course (
                        id INT PRIMARY KEY ,
                        name VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
                        no VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
                        descr VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
                        times varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
                        teacher varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
);

drop table course,admin;