summaryrefslogtreecommitdiff
path: root/migrations/20241005021009_channel.sql
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/20241005021009_channel.sql')
-rw-r--r--migrations/20241005021009_channel.sql16
1 files changed, 16 insertions, 0 deletions
diff --git a/migrations/20241005021009_channel.sql b/migrations/20241005021009_channel.sql
new file mode 100644
index 0000000..ac36884
--- /dev/null
+++ b/migrations/20241005021009_channel.sql
@@ -0,0 +1,16 @@
+create table channel (
+ id text
+ not null
+ primary key,
+ name text
+ unique
+ not null,
+ created_sequence bigint
+ unique
+ not null,
+ created_at text
+ not null
+);
+
+create index channel_created_at
+on channel (created_at);