@write-coin/automation-db
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -54,2 +54,4 @@ const sequelize = require('./db') | ||
const ActionTypeLogPropertyType = sequelize.define('action_type_log_property_type', {}) | ||
const ActionStatus = sequelize.define('aciton_status', { | ||
@@ -59,2 +61,10 @@ name: {type: DataTypes.STRING, unique: true, allowNull: false } | ||
const ProjectType = sequelize.define('project_type', { | ||
name: {type: DataTypes.STRING, unique: true, allowNull: false } | ||
}) | ||
const ProjectTypeProject = sequelize.define('project_type_project', {}) | ||
const ActionTypeProjectType = sequelize.define('action_type_project_type', {}) | ||
// Project.hasMany(ProjectAccount) | ||
@@ -108,2 +118,11 @@ // ProjectAccount.belongsTo(Project) | ||
LogPropertyType.belongsToMany(ActionType, {through: ActionTypeLogPropertyType }) | ||
ActionType.belongsToMany(LogPropertyType, {through: ActionTypeLogPropertyType }) | ||
Project.belongsToMany(ProjectType, {through: ProjectTypeProject }) | ||
ProjectType.belongsToMany(Project, {through: ProjectTypeProject }) | ||
ProjectType.belongsToMany(ActionType, {through: ActionTypeProjectType }) | ||
ActionType.belongsToMany(ProjectType, {through: ActionTypeProjectType }) | ||
module.exports = { | ||
@@ -123,3 +142,7 @@ Project, | ||
LogProperty, | ||
LogPropertyType | ||
LogPropertyType, | ||
ActionTypeLogPropertyType, | ||
ProjectType, | ||
ProjectTypeProject, | ||
ActionTypeProjectType | ||
} |
{ | ||
"name": "@write-coin/automation-db", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "ORM для базы данных automation_statistic", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
8589
142
6