forked from Yara724/api
blame and claim refactored
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user