models.py 836 Bytes
from django.db import models
from django.utils import timezone
#from paranoid_model.models import Paranoid


class File(models.Model):
    name = models.CharField(null=True, default='', max_length=50)
    isFolder = models.BooleanField()
    path = models.TextField()
    owner = models.CharField(null=True, default='', max_length=30)
    filesize = models.CharField(max_length=10)
    createdDate = models.DateTimeField(default=timezone.now)
    modifiedDate = models.CharField(blank=True, null=True, max_length=10)
    share = models.BooleanField(default=False)
    cid = models.IntegerField(default=0)
    version = models.IntegerField()
    thumbnail = models.CharField(null=True, default='', max_length=1000)
    zipurl = models.CharField(null=True, default='', max_length=1000)

    class Meta:
        ordering = ['createdDate']