agrs-sequelize-sdk 1.4.24 → 1.4.25
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.
- package/models/Users.js +10 -0
- package/package.json +1 -1
package/models/Users.js
CHANGED
|
@@ -112,6 +112,16 @@ module.exports = (sequelize, DataTypes) => {
|
|
|
112
112
|
type: DataTypes.JSONB,
|
|
113
113
|
allowNull: true
|
|
114
114
|
},
|
|
115
|
+
ApiRateLimits: {
|
|
116
|
+
type: DataTypes.JSONB,
|
|
117
|
+
allowNull: true,
|
|
118
|
+
defaultValue: null,
|
|
119
|
+
// Per-user public API rate-limit override. Null = use system defaults
|
|
120
|
+
// (read 120, write 20, ai 3, dryRun 600 — all per minute), defined in
|
|
121
|
+
// server/middleware/publicApiRateLimit.js BUCKETS.
|
|
122
|
+
// Shape when set: { read: 200, write: 50, ai: 5, dryRun: 1000 } — any
|
|
123
|
+
// missing key falls back to the system default for that bucket.
|
|
124
|
+
},
|
|
115
125
|
managed_by: {
|
|
116
126
|
type: DataTypes.UUID, // A UUID to store the ID of the user who manages this user
|
|
117
127
|
allowNull: true,
|