rust_forum/migrations/20250110224901_login.up.sql

6 lines
191 B
MySQL
Raw Normal View History

-- Add up migration script here
CREATE TABLE IF NOT EXISTS "login"(
user_id BIGSERIAL NOT NULL REFERENCES "user"(id),
token VARCHAR(1024) NOT NULL,
PRIMARY KEY (user_id, token)
);