cr-database/mongodb-models/Stat.ts

10 lines
220 B
TypeScript

import { prop } from '@typegoose/typegoose';
export default class Stat {
@prop({ required: true })
public name: 'messages' | 'commands' | 'pages' | 'requests';
@prop({ required: true })
public value: number;
}