tryaii-mcp-server
Version:
TryAII MCP Server - 15+ AI models with comparison, cost tracking, and collective intelligence
22 lines • 539 B
JavaScript
import mongoose, { Schema } from 'mongoose';
const UserSchema = new Schema({
apiKeyQuota: {
maxKeys: {
type: Number,
default: 3,
min: 1,
max: 10
},
currentCount: {
type: Number,
default: 0,
min: 0
}
}
}, {
timestamps: true,
versionKey: false
});
// Don't recreate the model if it already exists
export const User = mongoose.models.User || mongoose.model('User', UserSchema);
//# sourceMappingURL=User.js.map