mirror of
https://github.com/Dadechin/Dashboard-XRoom.git
synced 2025-07-03 08:44:34 +00:00
10 lines
301 B
Python
10 lines
301 B
Python
# models.py
|
|
from django.contrib.auth.models import User
|
|
from .role import Role
|
|
from django.db import models
|
|
|
|
class AssignedRule(models.Model):
|
|
user = models.ForeignKey(User, on_delete=models.CASCADE)
|
|
role = models.ForeignKey(Role, on_delete=models.CASCADE)
|
|
# Add any other fields you need
|