Add models file

This commit is contained in:
prance 2022-01-27 20:00:07 +01:00
parent 16d8d324a4
commit 4dddb42eaa

7
MUOR/MUOR/models.py Normal file
View 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)