from django.db import models

# Create your models here.

class Message(models.Model):
    user = models.CharField('姓名', max_length=15)
    receiver = models.CharField('收件人', max_length=15, blank=True, null=True, default="公開")
    subject = models.CharField('主旨', max_length=50)
    content = models.TextField('內容')
    created = models.DateTimeField('留言時間', auto_now_add=True)


    def __str__(self):
        return self.user + " : " + self.subject
        