mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Co-authored-by: Alf Eaton <alf.eaton@overleaf.com> GitOrigin-RevId: 79bb329932b1e6fcc88f648bca9cc4bee215cd41
22 lines
442 B
JavaScript
22 lines
442 B
JavaScript
const mongoose = require('../infrastructure/Mongoose')
|
|
const { Schema } = mongoose
|
|
|
|
const Usage = new Schema({
|
|
usage: { type: Number },
|
|
periodStart: { type: Date },
|
|
})
|
|
|
|
const UserFeatureUsageSchema = new Schema({
|
|
features: {
|
|
aiErrorAssistant: Usage,
|
|
aiWorkbench: Usage,
|
|
},
|
|
})
|
|
|
|
exports.UserFeatureUsage = mongoose.model(
|
|
'UserFeatureUsage',
|
|
UserFeatureUsageSchema
|
|
)
|
|
|
|
exports.UserFeatureUsageSchema = UserFeatureUsageSchema
|