BaseSettingsModel.php 821 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace App\Models;
  3. use App\Models\BaseModel;
  4. /**
  5. * @description 系统配置
  6. * @author system;
  7. * @version 1.0
  8. * @date 2017-05-08 09:59:00
  9. *
  10. */
  11. class BaseSettingsModel extends BaseModel
  12. {
  13. public $timestamps = false;
  14. /**
  15. * 数据表名
  16. *
  17. * @var string
  18. *
  19. */
  20. protected $table = 'base_settings';
  21. /**
  22. 主键
  23. */
  24. protected $primaryKey = 'id';
  25. //分页
  26. protected $perPage = PAGE_NUMS;
  27. /**
  28. * 可以被集体附值的表的字段
  29. *
  30. * @var string
  31. */
  32. protected $fillable = [
  33. 'code',
  34. 'key',
  35. 'sort',
  36. 'category',
  37. 'pid',
  38. 'status'
  39. ];
  40. }