_table = 'combin_user_log'; $this->_primary = 'id'; $this->_fields = [ "id",//int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', "sourceNo",//char(25) NOT NULL COMMENT '订单编号', "sourceId",//int(10) DEFAULT NULL COMMENT '来源id', "comBinId",//int(10) DEFAULT NULL COMMENT '套餐id', "customerId",//int(10) DEFAULT NULL COMMENT '客户id', "customerName",//varchar(30) DEFAULT NULL COMMENT '客户名称', "userCenterId",//int(10) DEFAULT NULL COMMENT '用户id', "buyNum",//int(10) DEFAULT '1' COMMENT '购买数量', "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间', "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间', "extends",//json DEFAULT NULL COMMENT '拓展字段', ]; $this->_readonly = ['id']; $this->_create_autofill = [ 'createTime' => time() ]; $this->_update_autofill = [ 'updateTime' => time() ]; parent::__construct($serviceDB); } }