refactor: ♻️ permission system
This commit is contained in:
parent
29ce92bdf7
commit
00d6bd5b93
7 changed files with 43 additions and 100 deletions
6
migrations/20241213120203_role_permission.up.sql
Normal file
6
migrations/20241213120203_role_permission.up.sql
Normal file
|
@ -0,0 +1,6 @@
|
|||
-- Add up migration script here
|
||||
CREATE TABLE IF NOT EXISTS "role_permission"(
|
||||
role_id BIGSERIAL NOT NULL REFERENCES "role"(id),
|
||||
permission_id BIGSERIAL NOT NULL REFERENCES "permission"(id),
|
||||
PRIMARY KEY (role_id, permission_id)
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue