政务数据资源中心(Government data Resource center) 03专项3期主要建设内容
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

80 lines
2.3 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const Adapter = sequelize.define("adapter", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "ID唯一标识",
primaryKey: true,
field: "id",
autoIncrement: true,
unique: "t_adapter_id_uindex"
},
adapterName: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "适配器名称",
primaryKey: false,
field: "adapter_name",
autoIncrement: false
},
adapterVersion: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "适配器版本",
primaryKey: false,
field: "adapter_version",
autoIncrement: false
},
toolName: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "工具名称",
primaryKey: false,
field: "tool_name",
autoIncrement: false
},
description: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "描述",
primaryKey: false,
field: "description",
autoIncrement: false
},
config: {
type: DataTypes.JSONB,
allowNull: false,
defaultValue: null,
comment: "配置信息\r\n多个参数信息,每个参数组成:\r\n{param:参数名,\r\ntitle:标题,\r\ndefault:默认值,\r\nrequired:是否必填,\r\ndescription:描述}",
primaryKey: false,
field: "config",
autoIncrement: false
},
mode: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "采集模式",
primaryKey: false,
field: "mode",
autoIncrement: false
},
}, {
tableName: "t_adapter",
comment: "",
indexes: []
});
dc.models.Adapter = Adapter;
return Adapter;
};