from django.db import models

# Create your models here.

@@ -27,31 +27,1122 @@
 ls%0A%0A
-# Create your models here.
+%0Aclass Post(models.Model):%0A    status = (%0A        ('public', '%EA%B3%B5%EA%B0%9C',),%0A        ('private', '%EB%B9%84%EA%B3%B5%EA%B0%9C',),%0A    )%0A    title = models.CharField(max_length=200, null=False, blank=False)%0A    content = models.TextField(null=True, blank=True)%0A    created_at = models.DateTimeField(auto_now_add=True, null=False, blank=False)%0A    updated_at = models.DateTimeField(auto_now=True, null=True, blank=True)%0A    status = models.CharField(max_length=20, choices=status, default='public', null=False, blank=False)%0A    category = models.ForeignKey('Category', null=True, blank=True, on_delete=models.SET_NULL)%0A    tags = models.ManyToManyField('Tag', blank=True)%0A%0A    def __str__(self):%0A        return '%7B%7D: %7B%7D'.format(self.pk, self.title)%0A%0A    class Meta:%0A        ordering = %5B'-created_at', '-pk'%5D%0A%0A%0Aclass Category(models.Model):%0A    name = models.CharField(max_length=30, null=False, blank=False)%0A%0A    def __str__(self):%0A        return '%7B%7D: %7B%7D'.format(self.pk, self.name)%0A%0A%0Aclass Tag(models.Model):%0A    name = models.CharField(max_length=30, null=False, blank=False)%0A%0A    def __str__(self):%0A        return '%7B%7D: %7B%7D'.format(self.pk, self.name)
 %0A

create models