You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
320 B

2 years ago
  1. from django.db import models
  2. class Role(models.Model):
  3. name = models.CharField(max_length=100, unique=True)
  4. description = models.TextField(default="")
  5. created_at = models.DateTimeField(auto_now_add=True)
  6. updated_at = models.DateTimeField(auto_now=True)
  7. def __str__(self):
  8. return self.name