MedicalOrderModel.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace App\Models;
  3. use App\Models\BaseModel;
  4. /**
  5. * @description 单据管理1
  6. * @author system;
  7. * @version 1.0
  8. * @date 2018-09-06 03:23:12
  9. *
  10. */
  11. class MedicalOrderModel extends BaseModel
  12. {
  13. /**
  14. * 数据表名
  15. *
  16. * @var string
  17. *
  18. */
  19. protected $table = 'medical_order';
  20. /**
  21. 主键
  22. */
  23. protected $primaryKey = 'id';
  24. //分页
  25. protected $perPage = PAGE_NUMS;
  26. /**
  27. * 可以被集体附值的表的字段
  28. *
  29. * @var string
  30. */
  31. protected $fillable = [
  32. 'mobile',
  33. 'name',
  34. 'nationality',
  35. 'sex',
  36. 'email',
  37. 'native_place',
  38. 'work',
  39. 'address',
  40. 'sample_type',
  41. 'single',
  42. 'combo',
  43. 'total_price',
  44. 'code',
  45. 'comment',
  46. 'pdf'
  47. ];
  48. }