This commit is contained in:
2026-10-03 20:39:03 +07:00
parent edb6d910f7
commit 1bbc32c3dc
134 changed files with 3782 additions and 0 deletions
@@ -0,0 +1,14 @@
-- +goose Up
CREATE TABLE
IF NOT EXISTS refresh_tokens (
id SERIAL PRIMARY KEY,
user_id INT NOT NULL,
expires_at TIMESTAMP NOT NULL,
jti VARCHAR(255) NOT NULL UNIQUE,
created_at TIMESTAMP NOT NULL DEFAULT NOW (),
CONSTRAINT fk_user FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE
);
-- +goose Down
DROP TABLE IF EXISTS refresh_tokens;