aboutsummaryrefslogtreecommitdiffstats
path: root/apps/troubleshooting/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/troubleshooting/models.py')
-rw-r--r--apps/troubleshooting/models.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/troubleshooting/models.py b/apps/troubleshooting/models.py
new file mode 100644
index 0000000..cd1edf3
--- /dev/null
+++ b/apps/troubleshooting/models.py
@@ -0,0 +1,19 @@
+from django.db import models
+from apps.core.models import ServiceProvider
+from apps.checkin.models import ServiceOrder
+
+
+class Question(models.Model):
+ sp = models.ForeignKey(ServiceProvider)
+ required = models.BooleanField(default=True)
+ question = models.CharField(max_length=256)
+
+
+class Choice(models.Model):
+ question = models.ForeignKey(Question)
+ choice = models.CharField(max_length=256)
+
+
+class Answer(models.Model):
+ choice = models.ForeignKey(Choice)
+ so = models.ForeignKey(ServiceOrder)