Files
huike-back/htyws_models/migrations/2022-03-16-132642_add_user_groups/up.sql
T
weli 44c320d8fa chore add core rust project files and diesel migrations
Track required workspace crates, scripts, and historical diesel migrations so the repository contains the complete runnable backend baseline.

Made-with: Cursor
2026-04-23 17:20:01 +08:00

17 lines
348 B
SQL

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