blob: f8f76a6ab8d6ce049f5e797544843ad87f197eda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { Schema } from 'mongoose';
import model, { Event } from '../lib/event.model';
interface Context {
message: string;
}
export type CustomEvent = Event<Context>;
const contextSchema = new Schema({
message: String
});
const CustomEventModel = model<Context>('CustomEvent', contextSchema);
export default CustomEventModel;
|