<?php

namespace App\Modules\Frontend\Models;

use CodeIgniter\Model;

class BlogModel extends Model
{
    protected $table = 'blog';
    protected $primaryKey = 'id';
    protected $allowedFields = [
        'title',
        'slug',
        'excerpt',
        'content',
        'image',
        'status', // 'draft' or 'published'
        'created_at',
        'updated_at'
    ];
    protected $useTimestamps = true;
}