Fix user_temporary_token table
This commit is contained in:
parent
f8788d56d6
commit
18eecb6223
|
@ -212,9 +212,9 @@ const DB_INIT_TABLE = {
|
||||||
`CREATE TABLE IF NOT EXISTS user_temporary_token (
|
`CREATE TABLE IF NOT EXISTS user_temporary_token (
|
||||||
user_id INTEGER NOT NULL,
|
user_id INTEGER NOT NULL,
|
||||||
token VARCHAR NOT NULL,
|
token VARCHAR NOT NULL,
|
||||||
|
token_type VARCHAR NOT NULL,
|
||||||
timestamp DATETIME NOT NULL,
|
timestamp DATETIME NOT NULL,
|
||||||
purpose VARCHAR NOT NULL,
|
UNIQUE(user_id, token_type),
|
||||||
UNIQUE(user_id, token),
|
|
||||||
FOREIGN KEY(user_id) REFERENCES user(id) ON DELETE CASCADE
|
FOREIGN KEY(user_id) REFERENCES user(id) ON DELETE CASCADE
|
||||||
);`
|
);`
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue