DCustomerDemand.Class.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: kang
  5. * Date: 2021/3/8
  6. * Time: 14:58
  7. */
  8. namespace JinDouYun\Dao\Customer;
  9. use JinDouYun\Dao\BaseDao;
  10. class DCustomerDemand extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'customer_demand';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id', //int(10) NOT NULL,'主键id'
  18. 'enterpriseId', //tinyint(10) NOT NULL COMMENT '区分企业id',
  19. 'customerId', //int(10) NOT NULL COMMENT '客户id',
  20. 'demand', //text NOT NULL COMMENT '客户需求',
  21. 'createTime', //int(11) NOT NULL COMMENT '创建时间',
  22. 'updateTime', //int(11) DEFAULT NULL COMMENT '修改时间',
  23. 'extends', //json DEFAULT NULL COMMENT '扩展',
  24. 'deleteStatus', //tinyint(5) NOT NULL COMMENT '删除状态(5未删除 4已删除)'
  25. ];
  26. $this->_readonly = ['id'];
  27. $this->_create_autofill = [
  28. 'createTime' => time()
  29. ];
  30. $this->_update_autofill = [
  31. 'updateTime' => time()
  32. ];
  33. parent::__construct($serviceDB);
  34. }
  35. }