mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
init auth, identity tables
This commit is contained in:
parent
caaf88d280
commit
7e150ebea2
1 changed files with 23 additions and 0 deletions
|
|
@ -43,6 +43,17 @@ class Database
|
|||
);
|
||||
|
||||
// Init tables
|
||||
$this->_connection->query('
|
||||
CREATE TABLE IF NOT EXISTS `auth`
|
||||
(
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
`time` INTEGER NOT NULL,
|
||||
`active` INTEGER NOT NULL,
|
||||
`identity` INTEGER NOT NULL,
|
||||
`request` VARCHAR(1024) NOT NULL
|
||||
)
|
||||
');
|
||||
|
||||
$this->_connection->query('
|
||||
CREATE TABLE IF NOT EXISTS `bookmark`
|
||||
(
|
||||
|
|
@ -77,6 +88,18 @@ class Database
|
|||
)
|
||||
');
|
||||
|
||||
$this->_connection->query('
|
||||
CREATE TABLE IF NOT EXISTS `identity`
|
||||
(
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
`time` INTEGER NOT NULL,
|
||||
`active` INTEGER NOT NULL,
|
||||
`name` VARCHAR(255),
|
||||
`crt` TEXT NOT NULL,
|
||||
`key` TEXT NOT NULL
|
||||
)
|
||||
');
|
||||
|
||||
$this->_connection->query('
|
||||
CREATE TABLE IF NOT EXISTS `session`
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue