aboutsummaryrefslogtreecommitdiffstats
path: root/client/models.py
diff options
context:
space:
mode:
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)