lemmy/server/migrations/2019-02-27-170402_create_community_user/up.sql
2019-02-27 22:02:55 -08:00

11 lines
392 B
SQL

-- No support for types yet, so just do 0,1,2
-- create type community_user_type as enum ('creator', 'moderator', 'user');
create table community_user (
id serial primary key,
fedi_user_id varchar(100) not null,
community_id int references community on update cascade on delete cascade,
community_user_type smallint not null default 2,
starttime timestamp not null default now()
)