Files
huike-back/htyws_models/migrations/2022-03-16-132642_add_user_groups/up.sql
T

17 lines
348 B
SQL
Raw Normal View History

-- Your SQL goes here
create table user_groups
(
id varchar not null
constraint user_groups_pk
primary key,
group_name varchar not null,
group_type varchar not null,
owner_id varchar not null,
group_members jsonb
);
create unique index user_groups_id_uindex
on user_groups (id);