TransactionTypeModel.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace App\Models;
  3. use CodeIgniter\Model;
  4. class TransactionTypeModel extends Model
  5. {
  6. protected $table = 'tipos_movimientos';
  7. // protected $primaryKey = 'id';
  8. protected $primaryKey = 'idTipoMovimiento';
  9. // protected $useAutoIncrement = true;
  10. protected $useAutoIncrement = false;
  11. protected $returnType = 'array';
  12. protected $useSoftDeletes = false;
  13. protected $protectFields = true;
  14. protected $allowedFields = [];
  15. protected bool $allowEmptyInserts = false;
  16. protected bool $updateOnlyChanged = true;
  17. protected array $casts = [];
  18. protected array $castHandlers = [];
  19. // Dates
  20. protected $useTimestamps = false;
  21. protected $dateFormat = 'datetime';
  22. protected $createdField = 'created_at';
  23. protected $updatedField = 'updated_at';
  24. protected $deletedField = 'deleted_at';
  25. // Validation
  26. protected $validationRules = [];
  27. protected $validationMessages = [];
  28. protected $skipValidation = false;
  29. protected $cleanValidationRules = true;
  30. // Callbacks
  31. protected $allowCallbacks = true;
  32. protected $beforeInsert = [];
  33. protected $afterInsert = [];
  34. protected $beforeUpdate = [];
  35. protected $afterUpdate = [];
  36. protected $beforeFind = [];
  37. protected $afterFind = [];
  38. protected $beforeDelete = [];
  39. protected $afterDelete = [];
  40. }