devicehub-django/api/models.py
Cayo Puigdefabregas ad59484b03 api dir
2024-09-19 18:35:26 +02:00

10 lines
208 B
Python

from django.db import models
from user.models import User
# Create your models here.
class Token(models.Model):
token = models.UUIDField()
owner = models.ForeignKey(User, on_delete=models.CASCADE)