feat: add support for creating users and chirps
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
-- +goose Up
|
||||
CREATE TABLE chirps (
|
||||
id UUID PRIMARY KEY,
|
||||
created_at TIMESTAMP NOT NULL,
|
||||
updated_at TIMESTAMP NOT NULL,
|
||||
body TEXT NOT NULL,
|
||||
user_id UUID NOT NULL,
|
||||
FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE chirps;
|
||||
Reference in New Issue
Block a user