cr-database/mongodb/File.ts

21 lines
410 B
TypeScript
Raw Permalink 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;
}