From a1471ea9d3f734215f730a844ba8dc425fd80743 Mon Sep 17 00:00:00 2001 From: wuqun Date: Thu, 20 Oct 2022 15:30:29 +0800 Subject: [PATCH] =?UTF-8?q?(+)=E5=91=8A=E8=AD=A6=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=A1=A8model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/models/alarm_confirm_log.js | 71 +++++++++++++++++++++++++ api/package.json | 1 + 2 files changed, 72 insertions(+) create mode 100644 api/app/lib/models/alarm_confirm_log.js diff --git a/api/app/lib/models/alarm_confirm_log.js b/api/app/lib/models/alarm_confirm_log.js new file mode 100644 index 0000000..2419c82 --- /dev/null +++ b/api/app/lib/models/alarm_confirm_log.js @@ -0,0 +1,71 @@ +/* eslint-disable*/ + +'use strict'; + +module.exports = dc => { + const DataTypes = dc.ORM; + const sequelize = dc.orm; + const AlarmConfirmLog = sequelize.define("alarmConfirmLog", { + id: { + type: DataTypes.INTEGER, + allowNull: false, + defaultValue: null, + comment: null, + primaryKey: true, + field: "id", + autoIncrement: true, + unique: "alarm_confirm_log_id_uindex" + }, + pepUserId: { + type: DataTypes.INTEGER, + allowNull: false, + defaultValue: null, + comment: null, + primaryKey: false, + field: "pep_user_id", + autoIncrement: false + }, + projectCorrelationId: { + type: DataTypes.INTEGER, + allowNull: false, + defaultValue: null, + comment: null, + primaryKey: false, + field: "project_correlation_id", + autoIncrement: false + }, + alarmInfo: { + type: DataTypes.JSON, + allowNull: false, + defaultValue: null, + comment: null, + primaryKey: false, + field: "alarm_info", + autoIncrement: false + }, + confirmTime: { + type: DataTypes.DATE, + allowNull: false, + defaultValue: null, + comment: null, + primaryKey: false, + field: "confirm_time", + autoIncrement: false + }, + confirmContent: { + type: DataTypes.STRING, + allowNull: false, + defaultValue: null, + comment: null, + primaryKey: false, + field: "confirm_content", + autoIncrement: false + } + }, { + tableName: "alarm_confirm_log", + comment: "", + indexes: [] + }); + dc.models.AlarmConfirmLog = AlarmConfirmLog; + return AlarmConfirmLog; +}; \ No newline at end of file diff --git a/api/package.json b/api/package.json index cffb191..4d3e893 100644 --- a/api/package.json +++ b/api/package.json @@ -34,6 +34,7 @@ "pg": "^7.9.0", "redis": "^3.1.2", "request": "^2.88.2", + "sequelize-automate-freesun": "^1.2.2", "superagent": "^3.5.2", "uuid": "^3.3.2" },