Add several proto messages for chat

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-08-05 19:05:58 -07:00
co-authored by Nathan Sobo
parent 775bf8dd33
commit 0b6376bdda
2 changed files with 62 additions and 6 deletions
@@ -39,7 +39,7 @@ CREATE TABLE IF NOT EXISTS "channel_messages" (
"id" SERIAL PRIMARY KEY,
"channel_id" INTEGER REFERENCES channels (id) NOT NULL,
"sender_id" INTEGER REFERENCES users (id) NOT NULL,
"content" TEXT NOT NULL,
"body" TEXT NOT NULL,
"sent_at" TIMESTAMP
);