14 lines
307 B
Python
14 lines
307 B
Python
|
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()
|