namespace App\Models;
use CodeIgniter\Model;
class Tender_model extends Model
{
protected $DBGroup = 'default';
protected $table = 'tenders';
protected $primaryKey = 'id';
protected $useAutoIncrement = true;
protected $insertID = 0;
protected $returnType = 'array';
protected $useSoftDeletes = true;
protected $protectFields = true;
protected $allowedFields = ['id', 'title', 'typeId', 'serviceId', 'summaryMarket', 'isPublicMarket', 'estimatedDuration', 'estimatedAmount', 'executionPeriodFrom', 'executionPeriodTo', 'publicationDate', 'deliveryTenderDate', 'summaryExpectationsProviders', 'modalitySubmission', 'modifiedOn', 'modifiedBy', 'deletedOn', 'deletedBy', 'wp_id', 'owner', 'createdBy'];
// Dates
protected $useTimestamps = false;
protected $dateFormat = 'datetime';
protected $createdField = 'createdOn';
protected $updatedField = 'modifiedOn';
protected $deletedField = 'deletedOn';
// Validation
protected $validationRules = [];
protected $validationMessages = [];
protected $skipValidation = false;
protected $cleanValidationRules = true;
// Callbacks
protected $allowCallbacks = true;
protected $beforeInsert = [];
protected $afterInsert = [];
protected $beforeUpdate = [];
protected $afterUpdate = [];
protected $beforeFind = [];
protected $afterFind = [];
protected $beforeDelete = [];
protected $afterDelete = [];
}