<?php

namespace App\Models;

use CodeIgniter\Model;

class EmailTemplateModel extends Model
{
    protected $table = "email_templates";
    protected $primaryKey = "id";
    protected $returnType = "array";
    protected $allowedFields = [
        "template_key",
        "name",
        "description",
        "category",
        "subject",
        "preheader",
        "heading",
        "body",
        "cta_label",
        "cta_url",
        "accent_color",
        "enabled",
    ];
    protected $useTimestamps = true;
}
