@abtnode/models 1.16.21-beta-46c675eb → 1.16.21-beta-e828f413

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,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.up = void 0;
4
+ const models_1 = require("../../models");
5
+ const models = (0, models_1.getBlockletModels)();
6
+ // eslint-disable-next-line import/prefer-default-export
7
+ const up = async ({ context }) => {
8
+ await context.createTable('notifications', models.Notification.GENESIS_ATTRIBUTES);
9
+ };
10
+ exports.up = up;
@@ -49,6 +49,7 @@ export declare function getBlockletModels(): {
49
49
  Tagging: import("../types").DynamicModel<import("./tagging").TaggingState>;
50
50
  Project: import("../types").DynamicModel<import("./project").ProjectState>;
51
51
  Release: import("../types").DynamicModel<import("./release").ReleaseState>;
52
+ Notification: import("../types").DynamicModel<import("@abtnode/types").TNotification>;
52
53
  };
53
54
  export declare function getServerModels(): {
54
55
  AccessKey: import("../types").DynamicModel<import("./access-key").AccessKeyState>;
@@ -129,6 +129,7 @@ function getBlockletModels() {
129
129
  Tagging: (0, tagging_1.createTaggingModel)(),
130
130
  Project: (0, project_1.createProjectModel)(),
131
131
  Release: (0, release_1.createReleaseModel)(),
132
+ Notification: (0, notification_1.createNotificationModel)(),
132
133
  };
133
134
  return models;
134
135
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/models",
3
- "version": "1.16.21-beta-46c675eb",
3
+ "version": "1.16.21-beta-e828f413",
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.21-beta-46c675eb",
36
- "@abtnode/types": "1.16.21-beta-46c675eb",
35
+ "@abtnode/logger": "1.16.21-beta-e828f413",
36
+ "@abtnode/types": "1.16.21-beta-e828f413",
37
37
  "lodash.clonedeep": "^4.5.0",
38
38
  "lodash.isempty": "^4.4.0",
39
39
  "sequelize": "^6.35.0",
@@ -52,5 +52,5 @@
52
52
  "typescript": "^5.0.4"
53
53
  },
54
54
  "resolutions": {},
55
- "gitHead": "a852c7930e8bc84c641579d8e4c009accf478078"
55
+ "gitHead": "936af9cb0549f341d3683ea63085b460bf6ddbf0"
56
56
  }