<?php
namespace App\Model\Table;

use Cake\ORM\Table;
use Cake\Validation\Validator;
/**
 * LetterSentHistoryDetail Model

 * @method \App\Model\Entity\LetterSentHistoryDetail get($primaryKey, $options = [])
 * @method \App\Model\Entity\LetterSentHistoryDetail newEntity($data = null, array $options = [])
 * @method \App\Model\Entity\LetterSentHistoryDetail[] newEntities(array $data, array $options = [])
 * @method \App\Model\Entity\LetterSentHistoryDetail|false save(\Cake\Datasource\EntityInterface $entity, $options = [])
 * @method \App\Model\Entity\LetterSentHistoryDetail saveOrFail(\Cake\Datasource\EntityInterface $entity, $options = [])
 * @method \App\Model\Entity\LetterSentHistoryDetail patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = [])
 * @method \App\Model\Entity\LetterSentHistoryDetail[] patchEntities($entities, array $data, array $options = [])
 * @method \App\Model\Entity\LetterSentHistoryDetail findOrCreate($search, callable $callback = null, $options = [])
 */
class LetterSentHistoryDetailsTable extends Table
{
    public function initialize(array $config): void
    {
        parent::initialize($config);

        $this->setTable('letter_sent_history_details');
        $this->setPrimaryKey('id');



    }
    /**
     * Default validation rules.
     *
     * @param \Cake\Validation\Validator $validator Validator instance.
     * @return \Cake\Validation\Validator
     */
    public function validationDefault(Validator $validator)
    {
        $validator
            ->notEmptyString('letter_sent_history_id')
            ->notEmptyString('column_value');

        return $validator;
    }
}
