From 067e3da1900d052a416c56e1c047640aa23441ae Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Fri, 13 Sep 2024 00:26:03 -0400
Subject: Transmit messages via `/:chan/send` and `/:chan/events`.

---
 migrations/20240912145249_message.sql | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 migrations/20240912145249_message.sql

(limited to 'migrations/20240912145249_message.sql')

diff --git a/migrations/20240912145249_message.sql b/migrations/20240912145249_message.sql
new file mode 100644
index 0000000..ce9db0d
--- /dev/null
+++ b/migrations/20240912145249_message.sql
@@ -0,0 +1,17 @@
+create table message (
+	id text
+		not null
+		primary key,
+	channel text
+		not null
+		references channel (id),
+	sender text
+		not null
+		references login (id),
+	body text
+		not null,
+	sent_at text
+		not null
+);
+
+create index message_sent_at on message (channel, sent_at);
-- 
cgit v1.2.3

