<?php

namespace App\Models;

use App\Entities\BoardEntity;

class BoardModel extends CommonModel
{
    const TABLE = "boardinfo";
    const PK = "uid";
    const TITLE = "title";
    protected $table = self::TABLE;
    protected $primaryKey = self::PK;
    protected $returnType = BoardEntity::class;
    protected array $nullableFields = [
        'user_uid',
        'worker_uid',
    ];
    protected $allowedFields = [
        "uid",
        "user_uid",
        "worker_uid",
        "category",
        "title",
        "content",
        "status",
    ];
    public function __construct()
    {
        parent::__construct();
    }
}
