from __future__ import unicode_literals

import uuid
from django.db import models
from django.contrib.auth.models import AbstractUser
from django.utils.encoding import python_2_unicode_compatible
# from django.utils.translation import ugettext_lazy as _

class Dream(models.Model):
    dream_audio_url = models.CharField(max_length=100)
    title = models.CharField(max_length=100, default='title')
    content = models.TextField(max_length=1000)
    owner = models.ForeignKey('users.User', null=True)
    created_timestamp = models.DateTimeField(auto_now_add=True)
    updated_timestamp = models.DateTimeField(auto_now=True)

    def __str__(self):
        return self.title
