class User(models.Model):
id = models.AutoField(primary_key=True)
username = models.CharField(max_length=4000)
password = models.CharField(max_length=4000)
email = models.CharField(max_length=4000)
phone = models.CharField(max_length=4000)
profile_image = models.FileField()
about = models.CharField(max_length=4000)
hometown = models.CharField(max_length=4000)
job = models.CharField(max_length=4000)
score = models.CharField(max_length=4000)
hobbies = models.CharField(max_length=4000)
datetime = models.DateField()
class Meta:
managed=True
class Album(models.Model):
id = models.AutoField(primary_key=True)
userid = models.ForeignKey(User)
name = models.CharField(max_length=4000)
imageid = models.ForeignKey(Image)
datetime = models.DateField()
class Meta:
managed=True
class Image(models.Model):
id = models.AutoField(primary_key=True)
userid = models.ForeignKey(User)
image = models.FileField()
imgdesc = models.CharField(max_length=4000)
datetime = models.DateField()
class Meta:
managed=True
class ImageComment(models.Model):
id = models.AutoField(primary_key=True)
userid = models.ForeignKey(User)
imageid = models.ForeignKey(Image)
comment = models.CharField(max_length=4000)
datetime = models.DateField()
class Meta:
managed=True
class ImageLike(models.Model):
id = models.AutoField(primary_key=True)
imageid = models.ForeignKey(Image)
userid = models.ForeignKey(User)
datetime = models.DateField()
class Meta:
managed=True
class Post(models.Model):
id = models.AutoField(primary_key=True)
userid = models.ForeignKey(User)
message = models.CharField(max_length=4000)
image =
models.FileField()
embed_link = models.CharField(max_length=4000)
liked_count = models.CharField(max_length=4000)
datetime = models.DateField()
class Meta:
managed=True
class PostComment(models.Model):
id = models.AutoField(primary_key=True)
userid = models.ForeignKey(User)
postid = models.ForeignKey(Post)
comment = models.CharField(max_length=4000)
datetime = models.DateField()
class Meta:
managed=True
class PostLike(models.Model):
id = models.AutoField(primary_key=True)
postid = models.ForeignKey(Post)
userid = models.ForeignKey(User)
datetime = models.DateField()
class Meta:
managed=True
class UserFriend(models.Model):
id = models.AutoField(primary_key=True)
userid = models.ForeignKey(User)
friendid = models.ForeignKey(User)
datetime = models.DateField()
class Meta:
managed=True
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/558c3cb4-ca69-4497-81bd-a6dd4268b22a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment