This commit is contained in:
2024-11-20 23:26:51 +07:00
parent 6c99309caf
commit ee3e10d46d
11 changed files with 126 additions and 84 deletions
@@ -5,7 +5,8 @@ CREATE TABLE IF NOT EXISTS categories (
name TEXT NOT NULL,
user_id INT REFERENCES users(id),
favorite BOOLEAN DEFAULT FALSE,
monthly_limit INT DEFAULT 0
monthly_limit INT DEFAULT 0,
UNIQUE (user_id, name)
);
-- +goose StatementEnd