session creation
This commit is contained in:
parent
534c282226
commit
4b87b560ac
12 changed files with 152 additions and 25 deletions
|
@ -37,8 +37,10 @@ CREATE TABLE IF NOT EXISTS sessions (
|
|||
`owner` INTEGER UNSIGNED NOT NULL,
|
||||
`started` TIMESTAMP DEFAULT UTC_TIMESTAMP(),
|
||||
`latest` TIMESTAMP DEFAULT UTC_TIMESTAMP(),
|
||||
`salt` CHAR(16),
|
||||
`access` CHAR(32),
|
||||
`renew` CHAR(32),
|
||||
`persist` BOOLEAN NOT NULL,
|
||||
`device` TEXT,
|
||||
|
||||
FOREIGN KEY (owner) REFERENCES accounts(id)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue