full-stack-monorepo
full-stack-monorepo copied to clipboard
Casljs Logic
To Do
create entities
- Role entity: ManyToMany(user), role name: string
- Action entity: ManyToMany(Role), ManyToOne(Subject), action: ActionEnum
- Subject entity: subject name: string
create repositories
- User Repository: + find all permissions with subject and action relations
- Role Repository: crud + add role to user
- Action Repository: crud + add action to role [action, subject]
- Subject Repository: crud
jwt strategy
- Add permissions with subject, action relations to jwt payload

Istedikleriniz bu sekilde mi