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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user