refactor: ♻️ permission system

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-12-13 16:59:34 +03:00
parent 29ce92bdf7
commit 00d6bd5b93
7 changed files with 43 additions and 100 deletions

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