-
This commit is contained in:
parent
e1a8e765ce
commit
139192199e
2
db.py
2
db.py
@ -31,7 +31,7 @@ def connect():
|
|||||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
);""")
|
);""")
|
||||||
cur.execute("""
|
cur.execute("""
|
||||||
CREATE TABLE auth_tokens (
|
CREATE TABLE IF NOT EXISTS auth_tokens (
|
||||||
id SERIAL PRIMARY KEY,
|
id SERIAL PRIMARY KEY,
|
||||||
user_id INTEGER NOT NULL REFERENCES users(id),
|
user_id INTEGER NOT NULL REFERENCES users(id),
|
||||||
token VARCHAR(64) NOT NULL,
|
token VARCHAR(64) NOT NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user