feat: Add isAvailable field to AgentProfile model and DTO for managing agent availability status.
This commit is contained in:
@@ -174,6 +174,7 @@ model AgentProfile {
|
|||||||
profileCompleteness Int @default(0)
|
profileCompleteness Int @default(0)
|
||||||
isPublic Boolean @default(true)
|
isPublic Boolean @default(true)
|
||||||
isFeatured Boolean @default(false)
|
isFeatured Boolean @default(false)
|
||||||
|
isAvailable Boolean @default(true) // Agent availability status for connect requests
|
||||||
|
|
||||||
// Stats (denormalized for performance)
|
// Stats (denormalized for performance)
|
||||||
totalReviews Int @default(0)
|
totalReviews Int @default(0)
|
||||||
@@ -196,6 +197,7 @@ model AgentProfile {
|
|||||||
@@index([verificationStatus])
|
@@index([verificationStatus])
|
||||||
@@index([isPublic])
|
@@index([isPublic])
|
||||||
@@index([isFeatured])
|
@@index([isFeatured])
|
||||||
|
@@index([isAvailable])
|
||||||
@@map("agent_profiles")
|
@@map("agent_profiles")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import {
|
|||||||
IsInt,
|
IsInt,
|
||||||
IsUrl,
|
IsUrl,
|
||||||
IsUUID,
|
IsUUID,
|
||||||
|
IsBoolean,
|
||||||
MinLength,
|
MinLength,
|
||||||
MaxLength,
|
MaxLength,
|
||||||
Min,
|
Min,
|
||||||
@@ -131,4 +132,12 @@ export class CreateAgentProfileDto {
|
|||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsString()
|
@IsString()
|
||||||
avatar?: string;
|
avatar?: string;
|
||||||
|
|
||||||
|
@ApiPropertyOptional({
|
||||||
|
example: true,
|
||||||
|
description: 'Agent availability status for connect requests',
|
||||||
|
})
|
||||||
|
@IsOptional()
|
||||||
|
@IsBoolean()
|
||||||
|
isAvailable?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user