Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: adds pk to slack schema to be grid editable

awaliase3879315ddb6
diff --git a/examples/nextjs-slack-clone/full-schema.sql b/examples/nextjs-slack-clone/full-schema.sql
index fe5e67ba260..bad44a719ea 100644
--- a/examples/nextjs-slack-clone/full-schema.sql
+++ b/examples/nextjs-slack-clone/full-schema.sql
@@ -37,6 +37,7 @@ comment on table public.messages is 'Individual messages sent by each user.';
-- USER ROLES
create table public.user_roles (
+ id bigint generated by default as identity primary key,
user_id uuid references public.users on delete cascade not null,
role app_role not null,
unique (user_id, role)
@@ -45,6 +46,7 @@ comment on table public.user_roles is 'Application roles for each user.';
-- ROLE PERMISSIONS
create table public.role_permissions (
+ id bigint generated by default as identity primary key,
role app_role not null,
permission app_permission not null,
unique (role, permission)