mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
16 lines
332 B
JavaScript
16 lines
332 B
JavaScript
const mongoose = require("mongoose");
|
|
const Schema = mongoose.Schema;
|
|
|
|
const analyticsSchema = new Schema(
|
|
{
|
|
event: { type: String, required: true },
|
|
data: { type: Schema.Types.Mixed },
|
|
},
|
|
{
|
|
timestamps: true,
|
|
}
|
|
);
|
|
|
|
const Analytics = mongoose.model("Analytics", analyticsSchema);
|
|
|
|
module.exports = { Analytics };
|