|
|
@ -5,6 +5,7 @@ import {
|
|
|
|
Ref,
|
|
|
|
Ref,
|
|
|
|
modelOptions,
|
|
|
|
modelOptions,
|
|
|
|
Severity,
|
|
|
|
Severity,
|
|
|
|
|
|
|
|
index,
|
|
|
|
} from '@typegoose/typegoose';
|
|
|
|
} from '@typegoose/typegoose';
|
|
|
|
import { Base, TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
|
|
import { Base, TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
|
|
import type { Types } from 'mongoose';
|
|
|
|
import type { Types } from 'mongoose';
|
|
|
@ -18,6 +19,7 @@ import { User } from './user/user';
|
|
|
|
allowMixed: Severity.ALLOW,
|
|
|
|
allowMixed: Severity.ALLOW,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
@index({ bucketName: 1, objectName: 1 })
|
|
|
|
export class File extends TimeStamps implements Base {
|
|
|
|
export class File extends TimeStamps implements Base {
|
|
|
|
_id: Types.ObjectId;
|
|
|
|
_id: Types.ObjectId;
|
|
|
|
id: string;
|
|
|
|
id: string;
|
|
|
|