DCashierEntryData.Class.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace JinDouYun\Dao\Cashier;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Description:
  6. * Class DCashierEntryData
  7. * @package JinDouYun\Dao\Cashier
  8. */
  9. class DCashierEntryData extends BaseDao
  10. {
  11. public function __construct($serviceDB = 'default')
  12. {
  13. $this->_table = 'cashier_entry_data_1';
  14. $this->_primary = 'id';
  15. $this->_fields = [
  16. "id",//int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  17. "shopId",//int(10) DEFAULT '0' COMMENT 'shopId',
  18. "userCenterId",//int(10) DEFAULT '0' COMMENT 'userCenterId',
  19. "entryData",//json DEFAULT NULL COMMENT '数据',
  20. "createTime",//int(10) DEFAULT '0' COMMENT '创建时间',
  21. "updateTime",//int(10) DEFAULT '0' COMMENT '修改时间',
  22. "extend",//json DEFAULT NULL COMMENT '扩展字段',
  23. ];
  24. $this->_readonly = ['id'];
  25. $this->_create_autofill = [
  26. 'createTime' => time()
  27. ];
  28. $this->_update_autofill = [
  29. 'updateTime' => time()
  30. ];
  31. parent::__construct($serviceDB);
  32. }
  33. }