Socket
Socket
Sign inDemoInstall

@write-coin/automation-db

Package Overview
Dependencies
58
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0 to 2.2.0

25

models.js

@@ -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
}

2

package.json
{
"name": "@write-coin/automation-db",
"version": "2.1.0",
"version": "2.2.0",
"description": "ORM для базы данных automation_statistic",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc