mixr-api/api_v1/schedule/model.py

14 lines
307 B
Python
Raw Permalink Normal View History

2024-02-29 00:06:16 +01:00
import uuid
from django.db import models
from api_v1.profile.model import Profile
class Schedule(models.Model):
schedule_id = models.UUIDField(primary_key=True, default=uuid.uuid4)
profile = models.ForeignKey(Profile, on_delete=models.DO_NOTHING, null=False)
slots = models.ManyToOneRel()