Add models file
This commit is contained in:
parent
16d8d324a4
commit
4dddb42eaa
7
MUOR/MUOR/models.py
Normal file
7
MUOR/MUOR/models.py
Normal file
@ -0,0 +1,7 @@
|
||||
from django.contrib.auth.models import User
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Session(models.Model):
|
||||
user = models.ForeignKey(User, primary_key=True, on_delete=models.CASCADE)
|
||||
port = models.PositiveIntegerField(null=False, unique=True)
|
Loading…
Reference in New Issue
Block a user