create table session id, session_token, user_id (foreign key to user.id), expires, created_at, updated_at
CREATE TABLE session (
id INT NOT NULL AUTO_INCREMENT,
session_token VARCHAR(255),
user_id INT,
expires DATETIME,
created_at DATETIME,
updated_at DATETIME,
PRIMARY KEY (id),
FOREIGN KEY (user_id) REFERENCES user (id)
);
- Public
- ·
- Tue, 03 Jan 2023 11:33:30 GMT