@abtnode/models 1.17.2-beta-20251113-233840-b720c2e6 → 1.17.2
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createUserSessionModel = createUserSessionModel;
|
|
4
|
+
const constant_1 = require("@abtnode/constant");
|
|
4
5
|
const sequelize_1 = require("sequelize");
|
|
5
6
|
const util_1 = require("../util");
|
|
6
7
|
function createUserSessionModel() {
|
|
@@ -62,10 +63,10 @@ function createUserSessionModel() {
|
|
|
62
63
|
allowNull: true,
|
|
63
64
|
},
|
|
64
65
|
status: {
|
|
65
|
-
// disabled |
|
|
66
|
+
// disabled | USER_SESSION_STATUS.ONLINE | USER_SESSION_STATUS.OFFLINE | USER_SESSION_STATUS.EXPIRED
|
|
66
67
|
type: sequelize_1.DataTypes.STRING(16),
|
|
67
68
|
allowNull: false,
|
|
68
|
-
defaultValue:
|
|
69
|
+
defaultValue: constant_1.USER_SESSION_STATUS.ONLINE,
|
|
69
70
|
},
|
|
70
71
|
lastLoginIp: {
|
|
71
72
|
type: sequelize_1.DataTypes.STRING(128),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/models",
|
|
3
|
-
"version": "1.17.2
|
|
3
|
+
"version": "1.17.2",
|
|
4
4
|
"description": "Sequelize models for blocklet server and blocklet service",
|
|
5
5
|
"homepage": "https://github.com/ArcBlock/blocklet-server#readme",
|
|
6
6
|
"publishConfig": {
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@abtnode/constant": "1.17.2
|
|
37
|
-
"@abtnode/db-cache": "1.17.2
|
|
38
|
-
"@abtnode/logger": "1.17.2
|
|
39
|
-
"@abtnode/types": "1.17.2
|
|
40
|
-
"@abtnode/util": "1.17.2
|
|
41
|
-
"@arcblock/did": "^1.27.
|
|
42
|
-
"@arcblock/validator": "^1.27.
|
|
36
|
+
"@abtnode/constant": "1.17.2",
|
|
37
|
+
"@abtnode/db-cache": "1.17.2",
|
|
38
|
+
"@abtnode/logger": "1.17.2",
|
|
39
|
+
"@abtnode/types": "1.17.2",
|
|
40
|
+
"@abtnode/util": "1.17.2",
|
|
41
|
+
"@arcblock/did": "^1.27.6",
|
|
42
|
+
"@arcblock/validator": "^1.27.6",
|
|
43
43
|
"lodash.clonedeep": "^4.5.0",
|
|
44
44
|
"lodash.isempty": "^4.4.0",
|
|
45
45
|
"pg": "^8.16.3",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"typescript": "^5.6.3"
|
|
58
58
|
},
|
|
59
59
|
"resolutions": {},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "d11c73575f9211d0794ccb72ea8981c50700ad10"
|
|
61
61
|
}
|