This commit is contained in:
Mateusz779 2023-04-13 11:55:02 +02:00
parent 3814a44727
commit 17badd6e1c

2
db.py
View File

@ -35,7 +35,7 @@ def connect():
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,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
expires_on TIMESTAMP NOT NULL expires_on TIMESTAMP NOT NULL
);""") );""")
conn.commit() conn.commit()