_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); } }