From 50dc88833996e6aef5b5d1b533e9963474cc2a7e Mon Sep 17 00:00:00 2001 From: wangsiyuan <2392948297@qq.com> Date: Mon, 25 Dec 2023 20:40:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20mysql.sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql.sql | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/mysql.sql b/mysql.sql index 39d5642..5ebda25 100644 --- a/mysql.sql +++ b/mysql.sql @@ -4,20 +4,12 @@ CREATE TABLE user ( phone_number VARCHAR(15) NOT NULL UNIQUE, password VARCHAR(255) NOT NULL, identity ENUM('teacher', 'student') NOT NULL, - is_active BOOLEAN NOT NULL + status BOOLEAN NOT NULL ); -INSERT INTO user (nickname, phone_number, password, identity, is_active) VALUES -('Alice', '10000000001', 'password1', 'student', TRUE), -('Bob', '10000000002', 'password2', 'teacher', TRUE), -('Carol', '10000000003', 'password3', 'student', FALSE), -('David', '10000000004', 'password4', 'teacher', TRUE), -('Eve', '10000000005', 'password5', 'student', TRUE), -('Frank', '10000000006', 'password6', 'teacher', FALSE), -('Grace', '10000000007', 'password7', 'student', TRUE), -('Hank', '10000000008', 'password8', 'teacher', TRUE), -('Ivy', '10000000009', 'password9', 'student', FALSE), -('Jack', '10000000010', 'password10', 'teacher', TRUE); +INSERT INTO user (nickname, phone_number, password, identity, status) VALUES +('Alice', '1', '$2b$12$okY88GrzlUHb/Ox1ENwtqeBUnE0bgMOCPy.UKmFaTnu3El7EYX8Em', 'student', TRUE); + CREATE TABLE menu_items (