ExampleModel.php 554 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Tests\Support\Models;
  3. use CodeIgniter\Model;
  4. class ExampleModel extends Model
  5. {
  6. protected $table = 'factories';
  7. protected $primaryKey = 'id';
  8. protected $returnType = 'object';
  9. protected $useSoftDeletes = false;
  10. protected $allowedFields = [
  11. 'name',
  12. 'uid',
  13. 'class',
  14. 'icon',
  15. 'summary',
  16. ];
  17. protected $useTimestamps = true;
  18. protected $validationRules = [];
  19. protected $validationMessages = [];
  20. protected $skipValidation = false;
  21. }