<?php

namespace App\Models;

use CodeIgniter\Model;

class ArticleModel extends Model
{
    protected $table = "articles";
    protected $primaryKey = "id";
    protected $returnType = "array";
    protected $allowedFields = [
        "title",
        "slug",
        "category",
        "excerpt",
        "content",
        "meta_title",
        "meta_description",
        "focus_keyword",
        "author_name",
        "reading_minutes",
        "theme",
        "is_featured",
        "is_published",
        "published_at",
    ];
    protected $useTimestamps = true;
}
