from django.db import models


class Question(models.Model):
    id = models.IntegerField(primary_key=True)
    text = models.CharField(max_length=500)
    question_type = models.IntegerField()  # 1 radio, 2 checkbox, 3 textbox, 4 number

    class Meta:
        app_label = 'intelicopter'


class Option(models.Model):
    id = models.IntegerField(primary_key=True)
    question = models.ForeignKey(Question, on_delete=models.CASCADE)
    option_text = models.CharField(max_length=500)

    class Meta:
        app_label = 'intelicopter'


class Trigger(models.Model):
    id = models.IntegerField(primary_key=True)
    question = models.ForeignKey(Question, on_delete=models.CASCADE, related_name='main_question_set')
    trigger_question = models.ForeignKey(Question, on_delete=models.CASCADE, related_name='trigger_question_set')
    trigger_text = models.CharField(max_length=500)

    class Meta:
        app_label = 'intelicopter'
9417a2d81014f8d9d45e035d274bdd828ab730f5
<mask token>


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


    class Meta:
        app_label = 'intelicopter'


class Trigger(models.Model):
    id = models.IntegerField(primary_key=True)
    question = models.ForeignKey(Question, on_delete=models.CASCADE,
        related_name='main_question_set')
    trigger_question = models.ForeignKey(Question, on_delete=models.CASCADE,
        related_name='trigger_question_set')
    trigger_text = models.CharField(max_length=500)


    class Meta:
        app_label = 'intelicopter'

<mask token>


class Option(models.Model):
    id = models.IntegerField(primary_key=True)
    question = models.ForeignKey(Question, on_delete=models.CASCADE)
    option_text = models.CharField(max_length=500)


    class Meta:
        app_label = 'intelicopter'


class Trigger(models.Model):
    id = models.IntegerField(primary_key=True)
    question = models.ForeignKey(Question, on_delete=models.CASCADE,
        related_name='main_question_set')
    trigger_question = models.ForeignKey(Question, on_delete=models.CASCADE,
        related_name='trigger_question_set')
    trigger_text = models.CharField(max_length=500)


    class Meta:
        app_label = 'intelicopter'

<mask token>


class Question(models.Model):
    id = models.IntegerField(primary_key=True)
    text = models.CharField(max_length=500)
    question_type = models.IntegerField()


    class Meta:
        app_label = 'intelicopter'


class Option(models.Model):
    id = models.IntegerField(primary_key=True)
    question = models.ForeignKey(Question, on_delete=models.CASCADE)
    option_text = models.CharField(max_length=500)


    class Meta:
        app_label = 'intelicopter'


class Trigger(models.Model):
    id = models.IntegerField(primary_key=True)
    question = models.ForeignKey(Question, on_delete=models.CASCADE,
        related_name='main_question_set')
    trigger_question = models.ForeignKey(Question, on_delete=models.CASCADE,
        related_name='trigger_question_set')
    trigger_text = models.CharField(max_length=500)


    class Meta:
        app_label = 'intelicopter'

from django.db import models


class Question(models.Model):
    id = models.IntegerField(primary_key=True)
    text = models.CharField(max_length=500)
    question_type = models.IntegerField()


    class Meta:
        app_label = 'intelicopter'


class Option(models.Model):
    id = models.IntegerField(primary_key=True)
    question = models.ForeignKey(Question, on_delete=models.CASCADE)
    option_text = models.CharField(max_length=500)


    class Meta:
        app_label = 'intelicopter'


class Trigger(models.Model):
    id = models.IntegerField(primary_key=True)
    question = models.ForeignKey(Question, on_delete=models.CASCADE,
        related_name='main_question_set')
    trigger_question = models.ForeignKey(Question, on_delete=models.CASCADE,
        related_name='trigger_question_set')
    trigger_text = models.CharField(max_length=500)


    class Meta:
        app_label = 'intelicopter'

from django.db import models


class Question(models.Model):
    id = models.IntegerField(primary_key=True)
    text = models.CharField(max_length=500)
    question_type = models.IntegerField()  # 1 radio, 2 checkbox, 3 textbox, 4 number

    class Meta:
        app_label = 'intelicopter'


class Option(models.Model):
    id = models.IntegerField(primary_key=True)
    question = models.ForeignKey(Question, on_delete=models.CASCADE)
    option_text = models.CharField(max_length=500)

    class Meta:
        app_label = 'intelicopter'


class Trigger(models.Model):
    id = models.IntegerField(primary_key=True)
    question = models.ForeignKey(Question, on_delete=models.CASCADE, related_name='main_question_set')
    trigger_question = models.ForeignKey(Question, on_delete=models.CASCADE, related_name='trigger_question_set')
    trigger_text = models.CharField(max_length=500)

    class Meta:
        app_label = 'intelicopter'