feat: Add other tasks from chapter 6

This commit is contained in:
syrell committed 2024-10-25 23:31:57 +02:00
1 parent e72fd2ee86
commit 61beecd4a0
18 files changed
+361 -23

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
-- +goose Up
CREATE TABLE refresh_tokens (
token TEXT PRIMARY KEY,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL,
user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
expires_at TIMESTAMP,
revoked_at TIMESTAMP
);
-- +goose Down
DROP TABLE refresh_tokens;