cr-database/mongodb-models/File.ts

22 lines
411 B
TypeScript
Raw Normal View History

2022-02-28 11:51:44 -05:00
import { prop } from '@typegoose/typegoose';
export default class File {
@prop({ required: true })
public name: string;
@prop({ required: true })
public identifier: string;
@prop({ required: true })
public mimeType: string;
@prop({ required: true })
public data: Buffer;
@prop({ required: true })
public downloaded: number;
@prop({ required: true })
public maxDownloads: number;
}