DCashierSettings.Class.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace JinDouYun\Dao\Cashier;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Description:
  6. * Class DCashierSettings
  7. * @package JinDouYun\Dao\Cashier
  8. */
  9. class DCashierSettings extends BaseDao
  10. {
  11. public function __construct($serviceDB = 'default')
  12. {
  13. $this->_table = 'cashier_settings';
  14. $this->_primary = 'id';
  15. $this->_fields = [
  16. "id",//int(10) NOT NULL AUTO_INCREMENT COMMENT 'id',
  17. "enterpriseId",//int(11) NOT NULL COMMENT '企业id',
  18. "content",//json DEFAULT NULL COMMENT '设置数据',
  19. "deleteStatus",//tinyint(4) DEFAULT '5' COMMENT '删除状态(5未删除 4已删除)',
  20. "createTime",//int(10) DEFAULT NULL COMMENT '创建时间',
  21. "updateTime",//int(10) DEFAULT NULL 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. }