This repository has been archived on 2020-04-21. You can view files and clone it, but cannot push or open issues or pull requests.
lemmy/server/migrations/2019-02-27-170402_create_co.../up.sql

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()
)