Fix collaboration request schema field types
فشلت بعض الفحوصات
Deploy To Ghaymah / deploy (push) Has been cancelled
فشلت بعض الفحوصات
Deploy To Ghaymah / deploy (push) Has been cancelled
هذا الالتزام موجود في:
@@ -21,19 +21,30 @@ export class CollaborationRequest {
|
|||||||
@Prop({ type: Types.ObjectId, ref: User.name, required: true, index: true })
|
@Prop({ type: Types.ObjectId, ref: User.name, required: true, index: true })
|
||||||
targetUserId!: Types.ObjectId;
|
targetUserId!: Types.ObjectId;
|
||||||
|
|
||||||
@Prop({ enum: ['pending', 'approved', 'rejected'], default: 'pending', index: true })
|
@Prop({ type: String, enum: ['pending', 'approved', 'rejected'], default: 'pending', index: true })
|
||||||
status!: 'pending' | 'approved' | 'rejected';
|
status!: 'pending' | 'approved' | 'rejected';
|
||||||
|
|
||||||
@Prop({ enum: COLLABORATION_TYPES, default: null, index: true })
|
@Prop({
|
||||||
|
type: String,
|
||||||
|
enum: COLLABORATION_TYPES,
|
||||||
|
required: false,
|
||||||
|
default: null,
|
||||||
|
index: true,
|
||||||
|
})
|
||||||
collaborationType?: CollaborationType | null;
|
collaborationType?: CollaborationType | null;
|
||||||
|
|
||||||
@Prop({ default: '', trim: true, maxlength: 1000 })
|
@Prop({ type: String, required: false, default: '', trim: true, maxlength: 1000 })
|
||||||
message!: string;
|
message!: string;
|
||||||
|
|
||||||
@Prop({ default: '', trim: true, maxlength: 500 })
|
@Prop({ type: String, required: false, default: '', trim: true, maxlength: 500 })
|
||||||
attachmentUrl!: string;
|
attachmentUrl!: string;
|
||||||
|
|
||||||
@Prop({ enum: COLLABORATION_ATTACHMENT_TYPES, default: null })
|
@Prop({
|
||||||
|
type: String,
|
||||||
|
enum: COLLABORATION_ATTACHMENT_TYPES,
|
||||||
|
required: false,
|
||||||
|
default: null,
|
||||||
|
})
|
||||||
attachmentType?: CollaborationAttachmentType | null;
|
attachmentType?: CollaborationAttachmentType | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم