Data dictionary. Source: Survey* entities (TenantDb + MembershipDb), SurveyModel.cs.


Entities

Term Definition Key fields
Survey A questionnaire instance. SurveyTypeId, SurveyStatusId, Description, IsAnonymous
SurveyQuestion A question on a survey. SurveyId, ReviewResponseTypeId, Description
SurveyResponseOption An answer option for a question.
SurveyResponse A person's answer.
EmployeeSurvey A survey assigned to a person. PersonId, EmployeeSurveyStatusId
SurveyTemplate A reusable question set — Custom (TenantDb) or Default (MembershipDb). • SurveyTemplateQuestion, SurveyTemplateResponseOption
Views Read models ViewSurvey, ViewEmployeeSurvey, ViewSurveyResponse(+Option)

Enums (SurveyModel.cs)

Enum Values
SurveyTypeParams / SurveyTemplateTypeParams General · Confirmation · Exit
SurveyStatuParams / SurveyTemplateStatuParams New · Ready
EmployeeSurveyStatuParams Not started · In progress · Completed

Concepts

Term Definition
Survey type Purpose — General (engagement), Confirmation (probation), Exit (leaving).
Anonymous IsAnonymous — responses not attributed to individuals; permanent once set.
Custom template The company's own reusable question set (TenantDb).
Default template PaidHR-provided template (MembershipDb).
Response type The answer format (ReviewResponseTypeId, shared with Reviews).
Assign Issue a Ready survey to employees → EmployeeSurvey.
Status (survey) New (draft) → Ready (usable).
Status (employee survey) Not started → In progress → Completed.

Conversations (a Performance feature — see Performance Legacy)

Conversation, ConversationRound, ConversationRoundItem, ConversationPrompt, ConversationType/Status — driven by _performanceService, not the survey services. Types: Check-in / Onboarding / Career / Re-alignment.

⚠️ Not in the product

AI — no OpenAI/Anthropic/GPT/LLM code anywhere. "AI conversation rounds" is not implemented; ConversationPrompt is human-authored.

Services, routes, host

Component Detail
SurveyService 1,649 lines
AdminSurveysService 925
Employee/SurveysService 133
Admin/SurveysController 27 endpoints
SurveyController / Employee/SurveysController 3 / 2
Routes /dashboard/survey, /dashboard/survey/new
Host (live) middleware-dev.paidhr.com/admin/surveys/* (core-backend also has Admin/Surveys/*)

Related