This is an idea for a Twitter clone for programmers, similar to how Dribbble is twitter for designers. It'll most likely not feature any images other than people's avatars, and no videos, or audio. Just text. 'Cause we're coders.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
twitter-for-coders/migrations/20250827022830_feeds_posts_...

14 lines
479 B

-- +goose Up
-- +goose StatementBegin
CREATE TABLE message (id INTEGER PRIMARY KEY, text TEXT NOT NULL, user_id INTEGER NOT NULL, created_at DATETIME DEFAULT current_timestamp, likes INTEGER DEFAULT 0, bookmarks INTEGER DEFAULT 0, replying_to INTEGER);
CREATE TABLE bookmark (user_id INTEGER NOT NULL, message_id INTEGER NOT NULL);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE message;
DROP TABLE reply;
DROP TABLE bookmark;
-- +goose StatementEnd