DShopSubscribe.Class.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * 打卡时间模板
  4. * Created by PhpStorm.
  5. * User: wxj
  6. * Date: 2019/10/31
  7. * Time: 15:02
  8. */
  9. namespace JinDouYun\Dao\Shop;
  10. use JinDouYun\Dao\BaseDao;
  11. class DShopSubscribe extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'shop_subscribe';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", // int unsigned NOT NULL AUTO_INCREMENT,
  19. "uid",// int NOT NULL COMMENT '员工id',
  20. 'order_id',// varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '订单号',
  21. "customer_id", // int NOT NULL COMMENT '客户id',
  22. "shop_id", // int NOT NULL COMMENT '门店id',
  23. "project", // varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '选择项目',
  24. "to_price", // decimal(10,2) NOT NULL COMMENT '总价',
  25. "discount_price", // decimal(10,2) NOT NULL COMMENT '优惠金额',
  26. "pay_price", // decimal(10,2) NOT NULL COMMENT '实际支付',
  27. "cost_price",// decimal(10,2) NOT NULL COMMENT '成本
  28. "stay_price",// decimal(10,2) DEFAULT NULL COMMENT '待支付金额',
  29. "paid", // tinyint NOT NULL DEFAULT '0' COMMENT '支付状态',
  30. "duration", // char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '预约时长',
  31. "time", // int NOT NULL COMMENT '预约时间段',
  32. "remarks", // text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '备注',
  33. "refund",// tinyint NOT NULL COMMENT '0正常1申请退款',
  34. "status",//tinyint NOT NULL DEFAULT '0' COMMENT '0正常1服务完成',
  35. "service",// tinyint DEFAULT NULL COMMENT '0未服务1服务中',
  36. "createTime", // int DEFAULT NULL COMMENT '创建时间',
  37. "service_time",// int NOT NULL COMMENT '服务时间',
  38. "add_bell",// int DEFAULT NULL COMMENT '加钟时间',
  39. "createTime", // int NOT NULL,
  40. "completeTime",// int DEFAULT NULL COMMENT '完成时间',
  41. ];
  42. $this->_readonly = ['id'];
  43. $this->_create_autofill = [
  44. 'createTime' => time()
  45. ];
  46. parent::__construct($serviceDB);
  47. }
  48. }