feat: we made it better...aka i did too many things and don't remember

This commit is contained in:
Stevan Freeborn committed 2026-08-15 10:48:29 -05:00
1 parent 5c5a126d88
commit c3fded4492
14 files changed
+919 -72

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
-- +goose Up
ALTER TABLE users
ADD hashed_password TEXT NOT NULL DEFAULT 'unset';
-- +goose Down
ALTER TABLE users
DROP COLUMN hashed_password;
+13
View File
@@ -0,0 +1,13 @@
-- +goose Up
CREATE TABLE refresh_tokens (
token TEXT PRIMARY KEY,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL,
expires_at TIMESTAMP NOT NULL,
revoked_at TIMESTAMP NULL,
user_id UUID NOT NULL,
FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE
);
-- +goose Down
DROP TABLE refresh_tokens;