joye-backend-utility 8.1.1 → 8.1.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.
- package/dist/schema/user_analytic.js +25 -0
- package/package.json +1 -1
|
@@ -142,6 +142,31 @@ const UserAnalytic = new mongoose_1.Schema({
|
|
|
142
142
|
type: Boolean,
|
|
143
143
|
required: false,
|
|
144
144
|
},
|
|
145
|
+
/** Claude model used for weekly insights generation (Databricks cron). */
|
|
146
|
+
model: {
|
|
147
|
+
type: String,
|
|
148
|
+
required: false,
|
|
149
|
+
},
|
|
150
|
+
inputToken: {
|
|
151
|
+
type: Number,
|
|
152
|
+
required: false,
|
|
153
|
+
},
|
|
154
|
+
outputToken: {
|
|
155
|
+
type: Number,
|
|
156
|
+
required: false,
|
|
157
|
+
},
|
|
158
|
+
cacheCreationInTokens: {
|
|
159
|
+
type: Number,
|
|
160
|
+
required: false,
|
|
161
|
+
},
|
|
162
|
+
cacheReadInTokens: {
|
|
163
|
+
type: Number,
|
|
164
|
+
required: false,
|
|
165
|
+
},
|
|
166
|
+
serviceTier: {
|
|
167
|
+
type: String,
|
|
168
|
+
required: false,
|
|
169
|
+
},
|
|
145
170
|
});
|
|
146
171
|
// Allowed compound indexes only — never add `dailySuggestion` (large object → high write RU).
|
|
147
172
|
// `autoIndex` is false in `database.ts`; create indexes manually in Cosmos if needed.
|