accounts: role create and list apis add

This commit is contained in:
behruz
2025-12-11 18:13:33 +05:00
parent 0177084e95
commit 1a2550be74
9 changed files with 370 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ from core.apps.shared.models import BaseModel
class Role(BaseModel):
name = models.CharField(max_length=200, unique=True, db_index=True)
comment = models.TextField(null=True, blank=True)
def __str__(self):
return self.name