nomilo/migrations/2022-04-24-085505_session/up.sql

9 lines
214 B
MySQL
Raw Normal View History

2022-04-24 10:42:53 +00:00
-- Your SQL goes here
CREATE TABLE session (
`session_id` VARCHAR NOT NULL,
`user_id` VARCHAR NOT NULL,
`expires_at` VARCHAR NOT NULL,
PRIMARY KEY(session_id),
FOREIGN KEY(user_id) REFERENCES user(id)
);