BaseDictionaryModel.php 698 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. *------------------------------------------------------
  4. * BaseDictionaryOptionModel.php
  5. *------------------------------------------------------
  6. *
  7. * @author m@9026.com
  8. * @date 2017/03/20 13:09
  9. * @version V1.0
  10. *
  11. */
  12. namespace App\Models;
  13. class BaseDictionaryModel extends BaseModel
  14. {
  15. /**
  16. * 数据表名
  17. */
  18. protected $table = "base_dictionary";
  19. /**
  20. * 主键
  21. */
  22. protected $primaryKey = "id";
  23. /**
  24. * 可以被集体附值的表的字段
  25. */
  26. protected $fillable = [
  27. 'dictionary_table_code',
  28. 'dictionary_code',
  29. 'key',
  30. 'value',
  31. 'name',
  32. 'input_code',
  33. 'sort'
  34. ];
  35. }