<?php

namespace App\Models;

use App\Entities\InquiryEntity;

class InquiryModel extends CommonModel
{
    const TABLE = "inquiryinfo";
    const PK = "uid";
    const TITLE = "title";
    protected $table = self::TABLE;
    protected $primaryKey = self::PK;
    protected $returnType = InquiryEntity::class;
    protected $allowedFields = [
        "uid",
        "title",
        "email",
        "content",
        "status",
    ];
    protected array $allowedDbDefaultFields = ['status'];  // ✅ INSERT에서 status가 비면 DB default 사용
    public function __construct()
    {
        parent::__construct();
    }
}
