from django.db import models

# Create your models here.

class Disease(models.Model):
    code = models.CharField(max_length=255)
    name = models.CharField(max_length=255)
    depart = models.CharField(max_length=255) #choices = []

class Symptom(models.Model):
    code = models.CharField(max_length=255)
    name = models.CharField(max_length=255)

class Symp_Ill(models.Model):
    '''
    M to M relationship table
    '''
    Ill = models.ForeignKey(Disease, on_delete=models.DO_NOTHING, related_name='symps')
    Symp = models.ForeignKey(Symptom, on_delete=models.DO_NOTHING, related_name='ills')



1f652275445d8625a1825d890ab953b9f7148822
<mask token>


class Symptom(models.Model):
    <mask token>
    <mask token>


class Symp_Ill(models.Model):
    """
    M to M relationship table
    """
    Ill = models.ForeignKey(Disease, on_delete=models.DO_NOTHING,
        related_name='symps')
    Symp = models.ForeignKey(Symptom, on_delete=models.DO_NOTHING,
        related_name='ills')

<mask token>


class Disease(models.Model):
    <mask token>
    <mask token>
    <mask token>


class Symptom(models.Model):
    code = models.CharField(max_length=255)
    name = models.CharField(max_length=255)


class Symp_Ill(models.Model):
    """
    M to M relationship table
    """
    Ill = models.ForeignKey(Disease, on_delete=models.DO_NOTHING,
        related_name='symps')
    Symp = models.ForeignKey(Symptom, on_delete=models.DO_NOTHING,
        related_name='ills')

<mask token>


class Disease(models.Model):
    code = models.CharField(max_length=255)
    name = models.CharField(max_length=255)
    depart = models.CharField(max_length=255)


class Symptom(models.Model):
    code = models.CharField(max_length=255)
    name = models.CharField(max_length=255)


class Symp_Ill(models.Model):
    """
    M to M relationship table
    """
    Ill = models.ForeignKey(Disease, on_delete=models.DO_NOTHING,
        related_name='symps')
    Symp = models.ForeignKey(Symptom, on_delete=models.DO_NOTHING,
        related_name='ills')

from django.db import models


class Disease(models.Model):
    code = models.CharField(max_length=255)
    name = models.CharField(max_length=255)
    depart = models.CharField(max_length=255)


class Symptom(models.Model):
    code = models.CharField(max_length=255)
    name = models.CharField(max_length=255)


class Symp_Ill(models.Model):
    """
    M to M relationship table
    """
    Ill = models.ForeignKey(Disease, on_delete=models.DO_NOTHING,
        related_name='symps')
    Symp = models.ForeignKey(Symptom, on_delete=models.DO_NOTHING,
        related_name='ills')

from django.db import models

# Create your models here.

class Disease(models.Model):
    code = models.CharField(max_length=255)
    name = models.CharField(max_length=255)
    depart = models.CharField(max_length=255) #choices = []

class Symptom(models.Model):
    code = models.CharField(max_length=255)
    name = models.CharField(max_length=255)

class Symp_Ill(models.Model):
    '''
    M to M relationship table
    '''
    Ill = models.ForeignKey(Disease, on_delete=models.DO_NOTHING, related_name='symps')
    Symp = models.ForeignKey(Symptom, on_delete=models.DO_NOTHING, related_name='ills')


