sars.js
1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"use strict";
/**
* SARS统计数据
*/
module.exports = function (sequelize, DataTypes) {
const
AbstractPO = require('kml-po-abstract'),
_ = require('lodash');
let option = AbstractPO.RawOption({
tableName: 'tb_mf_sars'
});
let entity = _.merge({
"report_date": {
"type": DataTypes.STRING(40),
"comment": "report_date",
"field": "report_date",
"allowNull": false,
"primaryKey": true
},
"confirmed": {
"type": DataTypes.BIGINT,
"comment": "确认人数",
"field": "confirmed"
},
"suspected": {
"type": DataTypes.BIGINT,
"comment": "疑似人数",
"field": "suspected"
},
"dead": {
"type": DataTypes.BIGINT,
"comment": "死亡人数",
"field": "dead"
},
"comment": {
"type": DataTypes.STRING(200),
"comment": "注释",
"field": "comment"
},
"country": {
"type": DataTypes.STRING(40),
"comment": "国家",
"field": "country"
}
});
return sequelize.define('sars', entity, option);
};