MedicalOrderModel.php 1.2 KB

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