Add 'title' property to Permission entity; update DatabaseSeeder to include Persian titles for permissions, enhancing localization support.
This commit is contained in:
@@ -8,6 +8,9 @@ export class Permission extends BaseEntity {
|
||||
@Unique()
|
||||
name!: string;
|
||||
|
||||
@Property()
|
||||
title!: string;
|
||||
|
||||
@ManyToMany({ entity: () => Role, mappedBy: r => r.permissions })
|
||||
roles = new Collection<Role>(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user