Skip to main content

Service Person

Service person schema for managing service providers who perform appointments. Links user accounts to services they can provide.

Schema: ServicePersonSchema Source: src/core/business-mgt/service-person.schema.ts


Attributes​

AttributeTypeRequiredDefaultDescription
idstring——Unique identifier for the service person
accountIdstringYes—User account ID for authentication and scheduling
descriptionstringNo—Professional bio: qualifications, specializations, experience
serviceIdstringYes—References Business Service this person provides
createdAtnumber——Unix timestamp when created
updatedAtnumber——Unix timestamp when last updated

Example​

{
"id": "sp_abc123",
"accountId": "user_stylist01",
"description": "Senior stylist with 10 years experience. Specializes in color treatments and modern cuts. Fluent in English and Spanish.",
"serviceId": "svc_haircut",
"createdAt": 1709856000000,
"updatedAt": 1709856000000
}

Create / Update Schemas​

SchemaDescriptionOmits
CreateServicePersonSchemaFor creating service personsid, createdAt, updatedAt
UpdateServicePersonSchemaFor partial updatesAll fields optional except id

Create Example​

const newServicePerson: CreateServicePerson = {
accountId: "user_stylist02",
description: "Junior stylist specializing in men's cuts",
serviceId: "svc_haircut"
};