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​
| Attribute | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | — | — | Unique identifier for the service person |
accountId | string | Yes | — | User account ID for authentication and scheduling |
description | string | No | — | Professional bio: qualifications, specializations, experience |
serviceId | string | Yes | — | References Business Service this person provides |
createdAt | number | — | — | Unix timestamp when created |
updatedAt | number | — | — | 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​
| Schema | Description | Omits |
|---|---|---|
CreateServicePersonSchema | For creating service persons | id, createdAt, updatedAt |
UpdateServicePersonSchema | For partial updates | All fields optional except id |
Create Example​
const newServicePerson: CreateServicePerson = {
accountId: "user_stylist02",
description: "Junior stylist specializing in men's cuts",
serviceId: "svc_haircut"
};