From c3c890be51b0b3fe5290ccd6e59e486b95c9cadb Mon Sep 17 00:00:00 2001 From: flykhan Date: Sun, 5 Mar 2023 16:27:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E8=A1=A8bot.sql=20+=20user.sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/bot.sql | 15 +++++++-------- sql/user.sql | 7 ++++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/sql/bot.sql b/sql/bot.sql index 5236525..c58acaa 100644 --- a/sql/bot.sql +++ b/sql/bot.sql @@ -2,13 +2,12 @@ create table bot ( id int auto_increment primary key, - user_id int not null, - title varchar(100) null, - description varchar(300) null, - content varchar(10000) null, - rating int default 1500 null, - createtime datetime null, - modifytime datetime null, + user_id int not null, + title varchar(100) null, + description varchar(300) null, + content varchar(10000) null, + createtime datetime null, + modifytime datetime null, constraint id unique (id) -); \ No newline at end of file +); diff --git a/sql/user.sql b/sql/user.sql index ee9735f..bdbea16 100644 --- a/sql/user.sql +++ b/sql/user.sql @@ -2,9 +2,10 @@ create table user ( id int auto_increment primary key, - username varchar(100) null, - password varchar(100) null, - photo varchar(1000) null, + username varchar(100) null, + password varchar(100) null, + photo varchar(1000) null, + rating int default 1500 null, constraint id unique (id) ); \ No newline at end of file