<?php

namespace App\Models;

use App\Models\Concerns\BelongsToTenant;
use Illuminate\Database\Eloquent\Model;

class EmailTemplate extends Model
{
    use BelongsToTenant;

    protected $table = 'email_templates';

    protected $fillable = [
        'user_id',
        'title',
        'email_subject',
        'email_pre_header',
        'email_body',
        'is_builtin',
        'created_by',
    ];

    protected $casts = [
        'is_builtin' => 'boolean',
        'email_body' => 'array',
    ];
}
