Remove account id dependencies from role management

This commit refactor the role management, removing the dependencies on account ids throughout our system. Changes include removing account id related attributes in the roles table schema and functions, modifying seed data and simplifying the role data provider code. This makes role structure more generic and simplifies the role handling process.
This commit is contained in:
giancarlo
2024-04-29 21:14:33 +07:00
parent e09a10a7f9
commit faaa26c4e8
10 changed files with 20 additions and 150 deletions

View File

@@ -141,8 +141,8 @@ INSERT INTO "public"."accounts" ("id", "primary_owner_user_id", "name", "slug",
-- Data for Name: roles; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO "public"."roles" ("name", "hierarchy_level", "account_id") VALUES
('custom-role', 4, '5deaa894-2094-4da3-b4fd-1fada0809d1c');
INSERT INTO "public"."roles" ("name", "hierarchy_level") VALUES
('custom-role', 4);
--
-- Data for Name: accounts_memberships; Type: TABLE DATA; Schema: public; Owner: postgres