aboutsummaryrefslogtreecommitdiffstats
path: root/client/models.py
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-06-18 23:17:08 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-06-18 23:17:08 +0200
commitfbb4637a77dc5982b4e694dd31a0aa7d11cec17c (patch)
tree2b277a09a8dacff187211cacfad7da5b5a3dda9b /client/models.py
downloadscout-subs-fbb4637a77dc5982b4e694dd31a0aa7d11cec17c.tar.gz
scout-subs-fbb4637a77dc5982b4e694dd31a0aa7d11cec17c.zip
initial commit
Diffstat (limited to 'client/models.py')
-rw-r--r--client/models.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/client/models.py b/client/models.py
new file mode 100644
index 0000000..970c489
--- /dev/null
+++ b/client/models.py
@@ -0,0 +1,18 @@
+from django.db import models
+from django.contrib.auth.models import User
+
+# Create your models here.
+
+
+class Document(models.Model):
+ code = models.IntegerField(default=0)
+
+ class Meta:
+ permissions = [
+ ("approved", "The user is approved")
+ ]
+
+
+class UserCode(models.Model):
+ code = models.IntegerField(default=0)
+ user = models.ForeignKey(User, default=None, on_delete=models.CASCADE)