blame and claim refactored

This commit is contained in:
2026-02-24 12:19:25 +03:30
parent 0d8858f458
commit 35732dd70a
81 changed files with 11603 additions and 77 deletions

View File

@@ -241,6 +241,22 @@ export class ClaimRequestManagementModel {
@Prop({ type: RequestManagementModel, unique: true })
blameFile: RequestManagementModel;
/**
* Human-friendly shared id across blame+claim (e.g. A14235).
* Copied from the source blame request.
*
* NOTE: `sparse` keeps existing documents without this field valid.
*/
@Prop({ type: String, unique: true, index: true, sparse: true, trim: true })
publicId?: string;
/**
* Explicit reference to the blame request id (in addition to embedded blameFile).
* This will be the preferred reference going forward.
*/
@Prop({ type: Types.ObjectId, index: true })
blameRequestId?: Types.ObjectId;
@Prop({ type: Number, default: 100 })
requestNumber?: number;