BaseDictionaryOptionModel.php 756 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 BaseDictionaryOptionModel extends BaseModel
  14. {
  15. /**
  16. * 数据表名
  17. */
  18. protected $table = "base_dictionary_option";
  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. protected $visible = ['value', 'name'];
  36. }