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