Commit 93982a01 authored by Lakr Aream's avatar Lakr Aream 👼🏽

修改数据库

parent 2cf77737
......@@ -158,6 +158,7 @@ echo $signStr;
TABLE `Candiay`.`users` (
`name` varchar(255) NOT NULL,
`pass` varchar(255) NULL,
`role` varchar(255) DEFAULT user,
`token` varchar(255) NULL,
`guard` int NULL,
`actived` int(1) NULL DEFAULT 1,
......
......@@ -83,8 +83,9 @@ export class DataBase {
let cmd = "CREATE TABLE IF NOT EXISTS `" + this.base + "`.`users` (" + "\n"
cmd += " `name` varchar(255) NOT NULL," + "\n"
cmd += " `pass` varchar(255) NULL," + "\n"
cmd += " `role` varchar(255) DEFAULT user," + "\n"
cmd += " `token` varchar(255) NULL," + "\n"
cmd += " `guard` int NULL," + "\n"
cmd += " `guard` int NULL," + "\n"
cmd += " `actived` int(1) NULL DEFAULT 1," + "\n"
cmd += " `info` json NULL," + "\n"
cmd += " PRIMARY KEY (`name`)" + "\n"
......@@ -94,6 +95,7 @@ export class DataBase {
CREATE TABLE `Candiay`.`users` (
`name` varchar(255) NOT NULL,
`pass` varchar(255) NULL,
`role` varchar(255) DEFAULT user,
`token` varchar(255) NULL,
`guard` int NULL,
`actived` int(1) NULL DEFAULT 1,
......
......@@ -59,7 +59,6 @@ export class RequestManager {
} else {
callback(true)
}
} else {
callback(false)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment