kinda working

This commit is contained in:
wagslane
2023-05-30 21:28:23 -06:00
parent 7d1852d380
commit 80ec635705
91 changed files with 13103 additions and 2 deletions

11
sql/schema/002_notes.sql Normal file
View File

@@ -0,0 +1,11 @@
-- +goose Up
CREATE TABLE notes (
id VARCHAR(36) PRIMARY KEY,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL,
note TEXT NOT NULL,
user_id VARCHAR(36) NOT NULL REFERENCES users(id) ON DELETE CASCADE
);
-- +goose Down
DROP TABLE notes;