rust_forum/migrations/20241213120203_role_permission.up.sql
Ahmet Kaan GÜMÜŞ 00d6bd5b93 refactor: ♻️ permission system
2024-12-13 16:59:34 +03:00

6 lines
No EOL
241 B
SQL

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