diff options
Diffstat (limited to 'pharos-dashboard/account/models.py')
-rw-r--r-- | pharos-dashboard/account/models.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pharos-dashboard/account/models.py b/pharos-dashboard/account/models.py new file mode 100644 index 0000000..5181c71 --- /dev/null +++ b/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' |