123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * Created by PhpStorm.
- * User: kang
- * Date: 2021/3/8
- * Time: 14:58
- */
- namespace JinDouYun\Dao\Customer;
- use JinDouYun\Dao\BaseDao;
- class DCustomerDemand extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'customer_demand';
- $this->_primary = 'id';
- $this->_fields = [
- 'id', //int(10) NOT NULL,'主键id'
- 'enterpriseId', //tinyint(10) NOT NULL COMMENT '区分企业id',
- 'customerId', //int(10) NOT NULL COMMENT '客户id',
- 'demand', //text NOT NULL COMMENT '客户需求',
- 'createTime', //int(11) NOT NULL COMMENT '创建时间',
- 'updateTime', //int(11) DEFAULT NULL COMMENT '修改时间',
- 'extends', //json DEFAULT NULL COMMENT '扩展',
- 'deleteStatus', //tinyint(5) NOT NULL COMMENT '删除状态(5未删除 4已删除)'
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
-
- parent::__construct($serviceDB);
- }
- }
|