CloudStorage / home /models.py
thejagstudio's picture
Upload 70 files
b7dc0a0 verified
raw
history blame
1.38 kB
from django.db import models
from django.contrib.auth.models import User
class Userdata(models.Model):
user_id = models.ForeignKey(User, on_delete=models.CASCADE)
folder = models.CharField(max_length=1000)
class ip_address(models.Model):
ip = models.CharField(max_length=100, default="")
class movies(models.Model):
movie = models.CharField(max_length=1000, null=True)
poster = models.CharField(max_length=1000, default="", null=True)
trailer = models.CharField(max_length=1000, default="", null=True)
description = models.CharField(max_length=1000, default="", null=True)
Released = models.CharField(max_length=1000, default="", null=True)
Genre = models.CharField(max_length=1000, default="", null=True)
Casts = models.CharField(max_length=1000, default="", null=True)
Duration = models.CharField(max_length=1000, default="", null=True)
Country = models.CharField(max_length=1000, default="", null=True)
Production = models.CharField(max_length=1000, default="", null=True)
tmdbId = models.CharField(max_length=1000, null=True)
imdbId = models.CharField(max_length=1000, default="", null=True)
torrentLink = models.CharField(max_length=1000, null=True)
driveLink = models.CharField(max_length=1000, null=True)
uploaded = models.BooleanField(default=False, null=True)