From cae21da31ff795cc21ec19288fcdc5fdb8a713c7 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 4 Sep 2024 12:13:54 -0400 Subject: Allow any login to create channels. --- migrations/20240904153315_channel.sql | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 migrations/20240904153315_channel.sql (limited to 'migrations') diff --git a/migrations/20240904153315_channel.sql b/migrations/20240904153315_channel.sql new file mode 100644 index 0000000..e62b51f --- /dev/null +++ b/migrations/20240904153315_channel.sql @@ -0,0 +1,20 @@ +create table channel ( + id text + not null + primary key, + name text + not null + unique +); + +create table channel_member ( + channel text + not null + references channel, + login text + not null + references login, + primary key (channel, login) +); + +create index channel_member_login on channel_member (login); -- cgit v1.2.3