devicehub-django/api/models.py

9 lines
222 B
Python
Raw Permalink Normal View History

2024-09-19 16:35:26 +00:00
from django.db import models
from user.models import User
class Token(models.Model):
tag = models.CharField(max_length=50)
2024-09-19 16:35:26 +00:00
token = models.UUIDField()
owner = models.ForeignKey(User, on_delete=models.CASCADE)