from django.db import models

#unique ID
import shortuuid
#For the moment use normal uuid and see
#import uuid

# Create your models here.
def random_uuid():
    return shortuuid.ShortUUID().random(length=22)
    
class Sheet(models.Model):
    """
    """
    suuid = models.CharField(max_length=64, default=random_uuid, editable=False) 
    #suuid = models.CharField(max_length=64, default=str(uuid.uuid4()).replace('-',''), editable=False)
    title = models.CharField(max_length=100)
    name = models.CharField(max_length=100)
    email = models.EmailField(max_length=254)
    description = models.TextField(max_length=512)
    content = models.TextField(max_length=8192)

