DCashierConnectLog.Class.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace JinDouYun\Dao\Cashier;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Description:
  6. * Class DCashierConnectLog
  7. * @package JinDouYun\Dao\Cashier
  8. */
  9. class DCashierConnectLog extends BaseDao
  10. {
  11. public function __construct($serviceDB = 'default')
  12. {
  13. $this->_table = 'cashier_connect_log';
  14. $this->_primary = 'id';
  15. $this->_fields = [
  16. "id",//int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  17. "staffName",//varchar(255) DEFAULT '' COMMENT '收银员姓名',
  18. "mobile",//varchar(50) DEFAULT '' COMMENT '手机号',
  19. "atWorkTime",//int(10) DEFAULT '0' COMMENT '上班时间',
  20. "offDutyTime",//int(10) DEFAULT '0' COMMENT '下班时间',
  21. "hours",//varchar(50) default '' COMMENT '时长',
  22. "remark",//varchar(255) default '' COMMENT '备注',
  23. "collectionMoney",//decimal(10,2) DEFAULT '0.00' COMMENT '收款金额',
  24. "shopId",//int(10) DEFAULT '0' COMMENT '店铺id',
  25. "collectionData",//json DEFAULT NULL COMMENT '收款数据',
  26. "rechargeData",//json DEFAULT NULL COMMENT '充值数据',
  27. "rechargeMoney",//decimal(10,2) DEFAULT '0.00' COMMENT '充值金额',
  28. "refundData",//json DEFAULT NULL COMMENT '退款数据',
  29. "refundMoney",//decimal(10,2) DEFAULT '0.00' COMMENT '退款金额',
  30. "createTime",//int(10) DEFAULT '0' COMMENT '创建时间',
  31. "updateTime",//int(10) DEFAULT '0' COMMENT '修改时间',
  32. "workStatus",//
  33. "extend",//json DEFAULT NULL COMMENT '扩展字段',
  34. "userCenterId",//收银员id
  35. ];
  36. $this->_readonly = ['id'];
  37. $this->_create_autofill = [
  38. 'createTime' => time()
  39. ];
  40. $this->_update_autofill = [
  41. 'updateTime' => time()
  42. ];
  43. parent::__construct($serviceDB);
  44. }
  45. }