Simple, single-user event aggregation platform, for use in personal websites and other related places.
event-streaming single-user events event-aggregation
at develop 18 lines 346 B view raw
1import { Schema, model } from "mongoose"; 2 3export const Event = model( 4 "Event", 5 new Schema( 6 { 7 source: { type: String, required: true }, 8 key: { type: String, required: true }, 9 data: { type: Object, default: {} }, 10 }, 11 { 12 timestamps: { 13 createdAt: true, 14 updatedAt: false, 15 }, 16 }, 17 ), 18);