SotreReserveOrder.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. namespace addons\Store\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_store_reserve_order".
  6. *
  7. * @property int $id ID
  8. * @property int $created_at 创建时间
  9. * @property int $updated_at 更新时间
  10. * @property int $mall_id 商城ID
  11. * @property int $status 状态0禁用,-1删除,1正常
  12. * @property int $user_id 用户ID
  13. * @property int $staff_user_id 技师用户ID
  14. * @property int $order_id 订单ID
  15. * @property int $service_status 服务状态
  16. * @property string $order_no 订单编号
  17. * @property int $service_start_at 服务开始时间
  18. * @property int $service_end_at 服务结束时间
  19. * @property string|null $remark 备注信息
  20. * @property float $commission 佣金信息
  21. * @property int $order_detail_id 订单详情ID
  22. * @property int $goods_id 商品ID
  23. */
  24. class SotreReserveOrder extends \common\models\base\BaseActiveRecord
  25. {
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public static function tableName()
  30. {
  31. return 'qimall_addons_store_reserve_order';
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function rules()
  37. {
  38. return [
  39. [['created_at', 'updated_at', 'mall_id', 'status', 'user_id', 'staff_user_id', 'order_id', 'service_status', 'service_start_at', 'service_end_at', 'order_detail_id', 'goods_id'], 'integer'],
  40. [['mall_id'], 'required'],
  41. [['remark'], 'string'],
  42. [['commission'], 'number'],
  43. [['order_no'], 'string', 'max' => 50],
  44. ];
  45. }
  46. /**
  47. * {@inheritdoc}
  48. */
  49. public function attributeLabels()
  50. {
  51. return [
  52. 'id' => 'ID',
  53. 'created_at' => 'Created At',
  54. 'updated_at' => 'Updated At',
  55. 'mall_id' => 'Mall ID',
  56. 'status' => 'Status',
  57. 'user_id' => 'User ID',
  58. 'staff_user_id' => 'Staff User ID',
  59. 'order_id' => 'Order ID',
  60. 'service_status' => 'Service Status',
  61. 'order_no' => 'Order No',
  62. 'service_start_at' => 'Service Start At',
  63. 'service_end_at' => 'Service End At',
  64. 'remark' => 'Remark',
  65. 'commission' => 'Commission',
  66. 'order_detail_id' => 'Order Detail ID',
  67. 'goods_id' => 'Goods ID',
  68. ];
  69. }
  70. }