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