forked from Yara724/api
YARA-718
This commit is contained in:
@@ -17,4 +17,8 @@ export class InsurerExpertDbService {
|
||||
async findOne(filter: FilterQuery<InsurerExpertModel>) {
|
||||
return await this.insurerExpert.findOne(filter);
|
||||
}
|
||||
|
||||
async updateOne(filter: any, update: any) {
|
||||
return this.insurerExpert.updateOne(filter, update);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,21 @@ export class InsurerExpertModel {
|
||||
@Prop()
|
||||
clientKey: Types.ObjectId;
|
||||
|
||||
@Prop()
|
||||
phone?: string;
|
||||
|
||||
@Prop()
|
||||
mobile?: string;
|
||||
|
||||
@Prop()
|
||||
city?: string;
|
||||
|
||||
@Prop()
|
||||
state?: string;
|
||||
|
||||
@Prop()
|
||||
address?: string;
|
||||
|
||||
createdAt: Date;
|
||||
}
|
||||
export const InsurerExpertDbSchema =
|
||||
|
||||
Reference in New Issue
Block a user