更新数据库创建表bot.sql + user.sql
This commit is contained in:
parent
d1bc4c1ba4
commit
c3c890be51
15
sql/bot.sql
15
sql/bot.sql
|
@ -2,13 +2,12 @@ create table bot
|
||||||
(
|
(
|
||||||
id int auto_increment
|
id int auto_increment
|
||||||
primary key,
|
primary key,
|
||||||
user_id int not null,
|
user_id int not null,
|
||||||
title varchar(100) null,
|
title varchar(100) null,
|
||||||
description varchar(300) null,
|
description varchar(300) null,
|
||||||
content varchar(10000) null,
|
content varchar(10000) null,
|
||||||
rating int default 1500 null,
|
createtime datetime null,
|
||||||
createtime datetime null,
|
modifytime datetime null,
|
||||||
modifytime datetime null,
|
|
||||||
constraint id
|
constraint id
|
||||||
unique (id)
|
unique (id)
|
||||||
);
|
);
|
||||||
|
|
|
@ -2,9 +2,10 @@ create table user
|
||||||
(
|
(
|
||||||
id int auto_increment
|
id int auto_increment
|
||||||
primary key,
|
primary key,
|
||||||
username varchar(100) null,
|
username varchar(100) null,
|
||||||
password varchar(100) null,
|
password varchar(100) null,
|
||||||
photo varchar(1000) null,
|
photo varchar(1000) null,
|
||||||
|
rating int default 1500 null,
|
||||||
constraint id
|
constraint id
|
||||||
unique (id)
|
unique (id)
|
||||||
);
|
);
|
Loading…
Reference in New Issue