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.
70 lines
1.5 KiB
70 lines
1.5 KiB
/* eslint-disable*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const DbStatistics = sequelize.define("dbStatistics", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: "nextval(\"dbStatistics_id_seq\"::regclass)",
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: false
|
|
},
|
|
dbName: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "dbName",
|
|
autoIncrement: false
|
|
},
|
|
sourceId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "sourceId",
|
|
autoIncrement: false
|
|
},
|
|
dbRecordCount: {
|
|
type: DataTypes.BIGINT,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "dbRecordCount",
|
|
autoIncrement: false
|
|
},
|
|
time: {
|
|
type: DataTypes.DATE,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "time",
|
|
autoIncrement: false
|
|
},
|
|
description: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "description",
|
|
autoIncrement: false
|
|
}
|
|
}, {
|
|
tableName: "dbStatistics",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.DbStatistics = DbStatistics;
|
|
return DbStatistics;
|
|
};
|