summaryrefslogtreecommitdiffstats
path: root/tools/pharos-dashboard/account/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pharos-dashboard/account/models.py')
-rw-r--r--tools/pharos-dashboard/account/models.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/pharos-dashboard/account/models.py b/tools/pharos-dashboard/account/models.py
new file mode 100644
index 00000000..5181c719
--- /dev/null
+++ b/tools/pharos-dashboard/account/models.py
@@ -0,0 +1,16 @@
+from django.db import models
+
+from django.contrib.auth.models import User
+
+from dashboard.models import Resource
+
+
+class UserProfile(models.Model):
+ user = models.OneToOneField(User, on_delete=models.CASCADE)
+ timezone = models.CharField(max_length=100, blank=False, default='UTC')
+ sshkey = models.CharField(max_length=2048, blank=False)
+ pgpkey = models.CharField(max_length=2048, blank=False)
+ company = models.CharField(max_length=200, blank=False)
+
+ class Meta:
+ db_table = 'user_profile'