Fix collaboration request schema field types
فشلت بعض الفحوصات
Deploy To Ghaymah / deploy (push) Has been cancelled

هذا الالتزام موجود في:
boutmoun123
2026-06-06 23:37:01 +03:00
الأصل 768b84772b
التزام 64719357bc

عرض الملف

@@ -21,19 +21,30 @@ export class CollaborationRequest {
@Prop({ type: Types.ObjectId, ref: User.name, required: true, index: true })
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';
@Prop({ enum: COLLABORATION_TYPES, default: null, index: true })
@Prop({
type: String,
enum: COLLABORATION_TYPES,
required: false,
default: null,
index: true,
})
collaborationType?: CollaborationType | null;
@Prop({ default: '', trim: true, maxlength: 1000 })
@Prop({ type: String, required: false, default: '', trim: true, maxlength: 1000 })
message!: string;
@Prop({ default: '', trim: true, maxlength: 500 })
@Prop({ type: String, required: false, default: '', trim: true, maxlength: 500 })
attachmentUrl!: string;
@Prop({ enum: COLLABORATION_ATTACHMENT_TYPES, default: null })
@Prop({
type: String,
enum: COLLABORATION_ATTACHMENT_TYPES,
required: false,
default: null,
})
attachmentType?: CollaborationAttachmentType | null;
}