cr-database/mongodb-models/Stat.ts

10 lines
220 B
TypeScript
Raw Normal View History

2022-02-28 11:51:44 -05:00
import { prop } from '@typegoose/typegoose';
export default class Stat {
@prop({ required: true })
public name: 'messages' | 'commands' | 'pages' | 'requests';
@prop({ required: true })
public value: number;
}