[dd62f3]: / users / models.py

Download this file

34 lines (29 with data), 1.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from django.db import models
# Create your models here.
class UserRegistrationModel(models.Model):
name = models.CharField(max_length=100)
loginid = models.CharField(unique=True, max_length=100)
password = models.CharField(max_length=100)
mobile = models.CharField(unique=True, max_length=100)
email = models.CharField(unique=True, max_length=100)
locality = models.CharField(max_length=100)
address = models.CharField(max_length=1000)
city = models.CharField(max_length=100)
state = models.CharField(max_length=100)
status = models.CharField(max_length=100)
def __str__(self):
return self.loginid
class Meta:
db_table = 'UserRegistrations'
class UserImagePredictinModel(models.Model):
username = models.CharField(max_length=100)
email = models.CharField(max_length=100)
loginid = models.CharField(max_length=100)
filename = models.CharField(max_length=100)
emotions = models.CharField(max_length=100000)
file = models.FileField(upload_to='files/')
cdate = models.DateTimeField(auto_now_add=True)
def __str__(self):
return self.loginid
class Meta:
db_table = "UserImageEmotions"