2021-12-25 13:58:49 -05:00
|
|
|
import { prop } from '@typegoose/typegoose';
|
2021-12-25 13:37:42 -05:00
|
|
|
|
2021-12-25 13:58:49 -05:00
|
|
|
export default class File {
|
|
|
|
@prop({ required: true })
|
|
|
|
public name: string;
|
|
|
|
|
|
|
|
@prop({ required: true })
|
|
|
|
public identifier: string;
|
|
|
|
|
|
|
|
@prop({ required: true })
|
|
|
|
public mimeType: string;
|
2021-12-25 13:37:42 -05:00
|
|
|
|
2021-12-25 13:58:49 -05:00
|
|
|
@prop({ required: true })
|
|
|
|
public data: Buffer;
|
2021-12-25 13:37:42 -05:00
|
|
|
|
2021-12-25 13:58:49 -05:00
|
|
|
@prop({ required: true })
|
|
|
|
public downloaded: number;
|
|
|
|
|
|
|
|
@prop({ required: true })
|
|
|
|
public maxDownloads: number;
|
|
|
|
}
|