22 lines
411 B
TypeScript
22 lines
411 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;
|
||
|
}
|