@abtnode/models 1.16.11-next-7cff3891 → 1.16.11-next-87306f82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.down = exports.up = void 0;
4
+ const up = async ({ context }) => {
5
+ await context.bulkDelete('passports', { id: null });
6
+ await context.bulkDelete('connected_accounts', { did: null });
7
+ };
8
+ exports.up = up;
9
+ const down = async () => {
10
+ // Do nothing
11
+ };
12
+ exports.down = down;
@@ -27,9 +27,11 @@ function createConnectedAccountModel() {
27
27
  did: {
28
28
  type: sequelize_1.DataTypes.STRING(40),
29
29
  primaryKey: true,
30
+ allowNull: false,
30
31
  },
31
32
  pk: {
32
33
  type: sequelize_1.DataTypes.STRING(256),
34
+ allowNull: false,
33
35
  },
34
36
  userDid: {
35
37
  type: sequelize_1.DataTypes.STRING(40),
@@ -41,6 +43,7 @@ function createConnectedAccountModel() {
41
43
  },
42
44
  provider: {
43
45
  type: sequelize_1.DataTypes.STRING(32),
46
+ allowNull: false,
44
47
  },
45
48
  id: {
46
49
  type: sequelize_1.DataTypes.STRING(64),
@@ -27,6 +27,7 @@ function createPassportModel() {
27
27
  id: {
28
28
  type: sequelize_1.DataTypes.STRING(40),
29
29
  primaryKey: true,
30
+ allowNull: false,
30
31
  },
31
32
  userDid: {
32
33
  type: sequelize_1.DataTypes.STRING(40),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/models",
3
- "version": "1.16.11-next-7cff3891",
3
+ "version": "1.16.11-next-87306f82",
4
4
  "description": "Sequelize models for blocklet server and blocklet service",
5
5
  "homepage": "https://github.com/ArcBlock/blocklet-server#readme",
6
6
  "publishConfig": {
@@ -32,8 +32,8 @@
32
32
  "url": "https://github.com/ArcBlock/blocklet-server/issues"
33
33
  },
34
34
  "dependencies": {
35
- "@abtnode/logger": "1.16.11-next-7cff3891",
36
- "@abtnode/types": "1.16.11-next-7cff3891",
35
+ "@abtnode/logger": "1.16.11-next-87306f82",
36
+ "@abtnode/types": "1.16.11-next-87306f82",
37
37
  "@nedb/core": "^2.1.5",
38
38
  "lodash.clonedeep": "^4.5.0",
39
39
  "lodash.get": "^4.4.2",
@@ -54,5 +54,5 @@
54
54
  "typescript": "^5.0.4"
55
55
  },
56
56
  "resolutions": {},
57
- "gitHead": "53ffbcdca9cda278337d80bfafa44e7ef5635af1"
57
+ "gitHead": "5758c9e4a5210981f9538e888d7391d1837d204a"
58
58
  }