from django.db import models
from user.models import Parent,Child

# Create your models here.
#Medical Profile

class MedicalProfile(models.Model):
    createdDate = models.DateTimeField()
    updatedDate = models.DateTimeField()
    childId = models.OneToOneField(
        Child,
        on_delete=models.CASCADE,
        related_name="child_medicalprofile",
        primary_key=True,
    )



#Financial Profile

class FinancialProfile(models.Model):
    createdDate = models.DateTimeField()
    updatedDate = models.DateTimeField()
    parentId = models.OneToOneField(
        Parent,
        on_delete=models.CASCADE,
        related_name="parent_financialprofile",
        primary_key=True,
    )