from django.db import models

# Create your models here.

class Article(models.Model):
    title = models.CharField(max_length=100)
    image = models.ImageField(default='null')
    content = models.TextField()
    public = models.BooleanField()
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

class Category(models.Model):
    name = models.CharField(max_length=100)
    description = models.CharField(max_length=250)
    created_at = models.DateTimeField(auto_now_add=True)
from django.db import models

# Create your models here.

class Article(models.Model):
    title = models.CharField(max_length=100)
    image = models.ImageField(default='null')
    content = models.TextField()
    public = models.BooleanField()
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

class Category(models.Model):
    name = models.CharField(max_length=100)
    description = models.CharField(max_length=250)
    created_at = models.DateTimeField(auto_now_add=True)
# Create your models here.