_table = 'material_content'; $this->_primary = 'id'; $this->_fields = [ "id", //int(10) NOT NULL AUTO_INCREMENT, "categoryId", //int(10) NOT NULL COMMENT '分类id', "shopId", "name", //varchar(255) NOT NULL COMMENT '名称', "content", //text NOT NULL COMMENT '内容', "deleteStatus", //tinyint(3) NOT NULL COMMENT '删除状态 4:删除 5:正常', "createTime", //int(10) DEFAULT NULL COMMENT '创建时间', "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间', "extend", //json DEFAULT NULL COMMENT '扩展字段', ]; $this->_readonly = ['id']; $this->_create_autofill = [ 'createTime' => time() ]; parent::__construct($serviceDB); } }