@tomei/sso 0.50.2 → 0.50.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ module.exports = {
9
9
  allowNull: false,
10
10
  },
11
11
  PrivilegeCode: {
12
- type: Sequelize.STRING(50),
12
+ type: Sequelize.STRING(200),
13
13
  allowNull: false,
14
14
  },
15
15
  SystemCode: {
@@ -21,7 +21,7 @@ module.exports = {
21
21
  onUpdate: 'CASCADE',
22
22
  },
23
23
  SystemPrivilegeId: {
24
- type: Sequelize.STRING(10),
24
+ type: Sequelize.STRING(30),
25
25
  allowNull: false,
26
26
  references: {
27
27
  model: 'sso_SystemPrivilege',
@@ -52,7 +52,9 @@ module.exports = {
52
52
  },
53
53
  UpdatedAt: {
54
54
  allowNull: false,
55
- defaultValue: Sequelize.literal('CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)'),
55
+ defaultValue: Sequelize.literal(
56
+ 'CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)',
57
+ ),
56
58
  type: Sequelize.DATE,
57
59
  },
58
60
  UpdatedById: {
@@ -65,11 +67,10 @@ module.exports = {
65
67
  onDelete: 'CASCADE',
66
68
  onUpdate: 'CASCADE',
67
69
  },
68
-
69
70
  });
70
71
  },
71
72
 
72
73
  async down(queryInterface, Sequelize) {
73
74
  await queryInterface.dropTable('sso_UserPrivilege');
74
- }
75
+ },
75
76
  };
@@ -21,7 +21,7 @@ module.exports = {
21
21
  onUpdate: 'CASCADE',
22
22
  },
23
23
  SystemPrivilegeId: {
24
- type: Sequelize.STRING(10),
24
+ type: Sequelize.STRING(30),
25
25
  allowNull: false,
26
26
  references: {
27
27
  model: 'sso_SystemPrivilege',
@@ -62,7 +62,9 @@ module.exports = {
62
62
  },
63
63
  UpdatedAt: {
64
64
  allowNull: false,
65
- defaultValue: Sequelize.literal('CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)'),
65
+ defaultValue: Sequelize.literal(
66
+ 'CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)',
67
+ ),
66
68
  type: Sequelize.DATE,
67
69
  },
68
70
  UpdatedById: {
@@ -75,11 +77,10 @@ module.exports = {
75
77
  onDelete: 'CASCADE',
76
78
  onUpdate: 'CASCADE',
77
79
  },
78
-
79
80
  });
80
81
  },
81
82
 
82
83
  async down(queryInterface, Sequelize) {
83
84
  await queryInterface.dropTable('sso_GroupPrivilege');
84
- }
85
+ },
85
86
  };
@@ -21,7 +21,7 @@ module.exports = {
21
21
  onUpdate: 'CASCADE',
22
22
  },
23
23
  SystemPrivilegeId: {
24
- type: Sequelize.STRING(10),
24
+ type: Sequelize.STRING(30),
25
25
  allowNull: false,
26
26
  references: {
27
27
  model: 'sso_SystemPrivilege',
@@ -21,7 +21,7 @@ module.exports = {
21
21
  onUpdate: 'CASCADE',
22
22
  },
23
23
  SystemPrivilegeId: {
24
- type: Sequelize.STRING(10),
24
+ type: Sequelize.STRING(30),
25
25
  allowNull: false,
26
26
  references: {
27
27
  model: 'sso_SystemPrivilege',
@@ -60,7 +60,9 @@ module.exports = {
60
60
  },
61
61
  UpdatedAt: {
62
62
  allowNull: false,
63
- defaultValue: Sequelize.literal('CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)'),
63
+ defaultValue: Sequelize.literal(
64
+ 'CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)',
65
+ ),
64
66
  type: Sequelize.DATE,
65
67
  },
66
68
  UpdatedById: {
@@ -73,11 +75,10 @@ module.exports = {
73
75
  onDelete: 'CASCADE',
74
76
  onUpdate: 'CASCADE',
75
77
  },
76
-
77
78
  });
78
79
  },
79
80
 
80
81
  async down(queryInterface, Sequelize) {
81
82
  await queryInterface.dropTable('sso_UserObjectPrivilege');
82
- }
83
+ },
83
84
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomei/sso",
3
- "version": "0.50.2",
3
+ "version": "0.50.3",
4
4
  "description": "Tomei SSO Package",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {