DCashierCustomerPrice.Class.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace JinDouYun\Dao\Cashier;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Description:
  6. * Class DCashierCustomerPrice
  7. * @package JinDouYun\Dao\Cashier
  8. */
  9. class DCashierCustomerPrice extends BaseDao
  10. {
  11. public function __construct($serviceDB = 'default')
  12. {
  13. $this->_table = 'cashier_customer_price';
  14. $this->_primary = 'id';
  15. $this->_fields = [
  16. "id",//int(10) NOT NULL AUTO_INCREMENT,
  17. "skuId",//int(10) NOT NULL default '0' COMMENT 'skuId',
  18. "cashierUid",//int(10) NOT NULL default '0' COMMENT '收银员id',
  19. "customerUid",//int(10) NOT NULL default '0' COMMENT '会员id',
  20. "price",//decimal(10,2) NOT NULL default '0.00' COMMENT '会员id',
  21. "extends",//json DEFAULT NULL COMMENT '拓展字段',
  22. "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  23. "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  24. ];
  25. $this->_readonly = ['id'];
  26. $this->_create_autofill = [
  27. 'createTime' => time()
  28. ];
  29. $this->_update_autofill = [
  30. 'updateTime' => time()
  31. ];
  32. parent::__construct($serviceDB);
  33. }
  34. }