-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.py
More file actions
20 lines (16 loc) · 771 Bytes
/
models.py
File metadata and controls
20 lines (16 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from django.db import models
class ArcUser(models.Model):
userid = models.AutoField(primary_key=True)
username = models.CharField(max_length=255, unique=True)
password_hash = models.CharField(max_length=255)
email = models.CharField(max_length=255)
fullname = models.CharField(max_length=255, blank=True, null=True)
institution = models.CharField(max_length=255, blank=True, null=True)
link = models.CharField(max_length=255, blank=True, null=True)
about_me = models.TextField(blank=True, null=True)
reset_token = models.CharField(max_length=255, blank=True, null=True)
last_login = models.DateTimeField(blank=True, null=True)
def __str__(self):
return self.username
class Meta:
ordering = ['username']