ERD استخراجشده از مدلها
Mermaid ER diagram - روابط قطعی فقط در صورت استخراج مستقیم تکمیل میشوند.
erDiagram
TENANT {
string id
string name
string plan
string localeDefault
string timezone
string status
string createdAt
string updatedAt
}
USER {
string id
string tenantId
string name
string email
string passwordHash
string role
string locale
string theme
string directionPreference
number persianNumerals
}
BUILDING {
string id
string tenantId
string name
string buildingType
string address
string city
string country
number floors
number basementFloors
string occupancyProfile
}
ELEVATOR {
string id
string tenantId
string buildingId
string code
string elevatorType
string serviceType
string brand
string model
number nominalSpeed
number capacityKg
}
ALERT {
string id
string time
string tenantId
string buildingId
string elevatorId
string alertType
string severity
string status
string message
string assignedTo
}
TICKET {
string id
string time
string tenantId
string buildingId
string elevatorId
string title
string description
string priority
string status
string assignedTechnicianId
}
TECHNICIAN {
string id
string tenantId
string name
string phone
string email
number active
string territory
string createdAt
string updatedAt
}
SERVICEVISIT {
string id
string time
string tenantId
string buildingId
string elevatorId
string ticketId
string technicianId
string visitTime
string actionsTaken
string partsReplaced
}
REPORTEXPORT {
string id
string tenantId
string reportType
string filtersJson
string fileUrl
string generatedAt
}
SIMULATIONPROFILE {
string id
string label
string buildingProfile
string elevatorProfile
string trafficProfile
string environmentProfile
string degradationProfile
string faultProfile
string networkProfile
string storyline
}
FAULTCATALOG {
string id
string faultCode
string subsystem
string severity
string probableCause
string recommendedAction
}
EVENTCATALOG {
string id
string eventType
string severity
string category
string description
}
SCENARIOSTATE {
string id
string code
string status
number rate
number scenarioIntensity
string updatedAt
}
AUDITRECORD {
string id
string time
string actor
string action
string payloadJson
}
Tenant
Prisma model | جدول/collection: tenants
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
name | String | بله | - | - | - |
plan | String | بله | - | - | - |
localeDefault | String | بله | - | - | - |
timezone | String | بله | - | - | - |
status | String | بله | - | - | - |
createdAt | String | بله | - | - | - |
updatedAt | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.postgres.prisma:11- Tenant
User
Prisma model | جدول/collection: users
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
tenantId | String? | خیر | - | - | - |
name | String | بله | - | - | - |
email | String | بله | - | unique | - |
passwordHash | String | بله | - | - | - |
role | String | بله | - | - | - |
locale | String | بله | - | - | - |
theme | String | بله | - | - | - |
directionPreference | String? | خیر | - | - | - |
persianNumerals | Int | بله | - | - | - |
active | Int | بله | - | - | - |
impersonatedByUserId | String? | خیر | - | - | - |
elevatorScopeId | String? | خیر | - | - | - |
createdAt | String | بله | - | - | - |
updatedAt | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.postgres.prisma:24- User
Building
Prisma model | جدول/collection: buildings
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
tenantId | String | بله | - | - | - |
name | String | بله | - | - | - |
buildingType | String | بله | - | - | - |
address | String | بله | - | - | - |
city | String | بله | - | - | - |
country | String | بله | - | - | - |
floors | Int | بله | - | - | - |
basementFloors | Int | بله | - | - | - |
occupancyProfile | String? | خیر | - | - | - |
trafficProfile | String? | خیر | - | - | - |
climateProfile | String? | خیر | - | - | - |
powerProfile | String? | خیر | - | - | - |
networkProfile | String? | خیر | - | - | - |
createdAt | String | بله | - | - | - |
updatedAt | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.postgres.prisma:44- Building
Elevator
Prisma model | جدول/collection: elevators
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
tenantId | String | بله | - | - | - |
buildingId | String | بله | - | - | - |
code | String | بله | - | - | - |
elevatorType | String | بله | - | - | - |
serviceType | String | بله | - | - | - |
brand | String | بله | - | - | - |
model | String | بله | - | - | - |
nominalSpeed | Float | بله | - | - | - |
capacityKg | Int | بله | - | - | - |
maxPersons | Int | بله | - | - | - |
stopCount | Int | بله | - | - | - |
doorType | String | بله | - | - | - |
machineType | String | بله | - | - | - |
controllerType | String | بله | - | - | - |
commissioningDate | String? | خیر | - | - | - |
maintenanceStatus | String | بله | - | - | - |
dataSource | String | بله | - | - | - |
simulationProfileId | String? | خیر | - | - | - |
boardFirmwareVersion | String? | خیر | - | - | - |
gatewayFirmwareVersion | String? | خیر | - | - | - |
syntheticSeed | Int? | خیر | - | - | - |
syntheticStoryline | String? | خیر | - | - | - |
degradationStage | String? | خیر | - | - | - |
demoPriority | Int? | خیر | - | - | - |
createdAt | String | بله | - | - | - |
updatedAt | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.postgres.prisma:65- Elevator
Alert
Prisma model | جدول/collection: alerts
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
time | String | بله | - | - | - |
tenantId | String | بله | - | - | - |
buildingId | String | بله | - | - | - |
elevatorId | String | بله | - | - | - |
alertType | String | بله | - | - | - |
severity | String | بله | - | - | - |
status | String | بله | - | - | - |
message | String | بله | - | - | - |
assignedTo | String? | خیر | - | - | - |
منابع کد
apps/core-backend/prisma/schema.postgres.prisma:97- Alert
Ticket
Prisma model | جدول/collection: tickets
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
time | String | بله | - | - | - |
tenantId | String | بله | - | - | - |
buildingId | String | بله | - | - | - |
elevatorId | String | بله | - | - | - |
title | String | بله | - | - | - |
description | String | بله | - | - | - |
priority | String | بله | - | - | - |
status | String | بله | - | - | - |
assignedTechnicianId | String? | خیر | - | - | - |
dueAt | String? | خیر | - | - | - |
resolutionNotes | String? | خیر | - | - | - |
منابع کد
apps/core-backend/prisma/schema.postgres.prisma:112- Ticket
Technician
Prisma model | جدول/collection: technicians
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
tenantId | String | بله | - | - | - |
name | String | بله | - | - | - |
phone | String | بله | - | - | - |
email | String | بله | - | - | - |
active | Int | بله | - | - | - |
territory | String | بله | - | - | - |
createdAt | String | بله | - | - | - |
updatedAt | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.postgres.prisma:129- Technician
ServiceVisit
Prisma model | جدول/collection: service_visits
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
time | String | بله | - | - | - |
tenantId | String | بله | - | - | - |
buildingId | String | بله | - | - | - |
elevatorId | String | بله | - | - | - |
ticketId | String | بله | - | - | - |
technicianId | String | بله | - | - | - |
visitTime | String | بله | - | - | - |
actionsTaken | String? | خیر | - | - | - |
partsReplaced | String? | خیر | - | - | - |
downtimeMinutes | Int? | خیر | - | - | - |
notes | String? | خیر | - | - | - |
منابع کد
apps/core-backend/prisma/schema.postgres.prisma:143- ServiceVisit
ReportExport
Prisma model | جدول/collection: report_exports
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
tenantId | String | بله | - | - | - |
reportType | String | بله | - | - | - |
filtersJson | String | بله | - | - | - |
fileUrl | String | بله | - | - | - |
generatedAt | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.postgres.prisma:160- ReportExport
SimulationProfile
Prisma model | جدول/collection: simulation_profiles
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
label | String | بله | - | - | - |
buildingProfile | String | بله | - | - | - |
elevatorProfile | String | بله | - | - | - |
trafficProfile | String | بله | - | - | - |
environmentProfile | String | بله | - | - | - |
degradationProfile | String | بله | - | - | - |
faultProfile | String | بله | - | - | - |
networkProfile | String | بله | - | - | - |
storyline | String? | خیر | - | - | - |
منابع کد
apps/core-backend/prisma/schema.postgres.prisma:171- SimulationProfile
FaultCatalog
Prisma model | جدول/collection: fault_catalog
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
faultCode | String | بله | - | - | - |
subsystem | String | بله | - | - | - |
severity | String | بله | - | - | - |
probableCause | String | بله | - | - | - |
recommendedAction | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.postgres.prisma:186- FaultCatalog
EventCatalog
Prisma model | جدول/collection: event_catalog
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
eventType | String | بله | - | - | - |
severity | String | بله | - | - | - |
category | String | بله | - | - | - |
description | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.postgres.prisma:197- EventCatalog
ScenarioState
Prisma model | جدول/collection: scenario_state
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
code | String | بله | - | - | - |
status | String | بله | - | - | - |
rate | Float | بله | - | - | - |
scenarioIntensity | Float | بله | - | - | - |
updatedAt | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.postgres.prisma:207- ScenarioState
AuditRecord
Prisma model | جدول/collection: audit_records
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
time | String | بله | - | - | - |
actor | String | بله | - | - | - |
action | String | بله | - | - | - |
payloadJson | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.postgres.prisma:218- AuditRecord
Tenant
Prisma model | جدول/collection: Tenant
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | cuid( | id | - |
name | String | بله | - | - | - |
plan | String | بله | - | - | - |
localeDefault | String | بله | "en" | - | - |
timezone | String | بله | "UTC" | - | - |
status | String | بله | "active" | - | - |
users | User[] | بله | - | - | - |
buildings | Building[] | بله | - | - | - |
elevators | Elevator[] | بله | - | - | - |
technicians | Technician[] | بله | - | - | - |
tickets | Ticket[] | بله | - | - | - |
alerts | Alert[] | بله | - | - | - |
reports | ReportExport[] | بله | - | - | - |
createdAt | DateTime | بله | now( | - | - |
updatedAt | DateTime | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.prisma:20- Tenant
User
Prisma model | جدول/collection: User
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | cuid( | id | - |
tenantId | String | بله | - | - | - |
tenant | Tenant | بله | - | - | - |
name | String | بله | - | - | - |
email | String | بله | - | unique | - |
role | UserRole | بله | - | - | - |
locale | String | بله | "en" | - | - |
theme | String | بله | "system" | - | - |
directionPreference | String? | خیر | - | - | - |
createdAt | DateTime | بله | now( | - | - |
updatedAt | DateTime | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.prisma:38- User
Building
Prisma model | جدول/collection: Building
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | cuid( | id | - |
tenantId | String | بله | - | - | - |
tenant | Tenant | بله | - | - | - |
name | String | بله | - | - | - |
buildingType | String | بله | - | - | - |
address | String | بله | - | - | - |
city | String | بله | - | - | - |
country | String | بله | - | - | - |
floors | Int | بله | - | - | - |
basementFloors | Int | بله | 0 | - | - |
occupancyProfile | String? | خیر | - | - | - |
trafficProfile | String? | خیر | - | - | - |
climateProfile | String? | خیر | - | - | - |
powerProfile | String? | خیر | - | - | - |
networkProfile | String? | خیر | - | - | - |
elevators | Elevator[] | بله | - | - | - |
createdAt | DateTime | بله | now( | - | - |
updatedAt | DateTime | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.prisma:52- Building
Elevator
Prisma model | جدول/collection: Elevator
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | cuid( | id | - |
tenantId | String | بله | - | - | - |
tenant | Tenant | بله | - | - | - |
buildingId | String | بله | - | - | - |
building | Building | بله | - | - | - |
code | String | بله | - | - | - |
elevatorType | String | بله | - | - | - |
serviceType | String | بله | - | - | - |
brand | String | بله | - | - | - |
model | String | بله | - | - | - |
nominalSpeed | Float | بله | - | - | - |
capacityKg | Int | بله | - | - | - |
maxPersons | Int | بله | - | - | - |
stopCount | Int | بله | - | - | - |
doorType | String | بله | - | - | - |
machineType | String | بله | - | - | - |
controllerType | String | بله | - | - | - |
commissioningDate | DateTime? | خیر | - | - | - |
maintenanceStatus | String | بله | - | - | - |
dataSource | String | بله | "simulated" | - | - |
simulationProfileId | String? | خیر | - | - | - |
boardFirmwareVersion | String? | خیر | - | - | - |
gatewayFirmwareVersion | String? | خیر | - | - | - |
createdAt | DateTime | بله | now( | - | - |
updatedAt | DateTime | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.prisma:73- Elevator
Alert
Prisma model | جدول/collection: Alert
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | cuid( | id | - |
tenantId | String | بله | - | - | - |
tenant | Tenant | بله | - | - | - |
buildingId | String? | خیر | - | - | - |
elevatorId | String? | خیر | - | - | - |
sourceType | String | بله | - | - | - |
sourceId | String | بله | - | - | - |
alertType | String | بله | - | - | - |
severity | String | بله | - | - | - |
status | String | بله | - | - | - |
assignedTo | String? | خیر | - | - | - |
acknowledgedAt | DateTime? | خیر | - | - | - |
resolvedAt | DateTime? | خیر | - | - | - |
createdAt | DateTime | بله | now( | - | - |
updatedAt | DateTime | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.prisma:101- Alert
Ticket
Prisma model | جدول/collection: Ticket
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | cuid( | id | - |
tenantId | String | بله | - | - | - |
tenant | Tenant | بله | - | - | - |
buildingId | String? | خیر | - | - | - |
elevatorId | String? | خیر | - | - | - |
alertId | String? | خیر | - | - | - |
title | String | بله | - | - | - |
description | String | بله | - | - | - |
priority | String | بله | - | - | - |
status | String | بله | - | - | - |
assignedTechnicianId | String? | خیر | - | - | - |
dueAt | DateTime? | خیر | - | - | - |
resolutionNotes | String? | خیر | - | - | - |
serviceVisits | ServiceVisit[] | بله | - | - | - |
createdAt | DateTime | بله | now( | - | - |
updatedAt | DateTime | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.prisma:119- Ticket
Technician
Prisma model | جدول/collection: Technician
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | cuid( | id | - |
tenantId | String | بله | - | - | - |
tenant | Tenant | بله | - | - | - |
name | String | بله | - | - | - |
phone | String? | خیر | - | - | - |
email | String? | خیر | - | - | - |
active | Boolean | بله | true | - | - |
territory | String? | خیر | - | - | - |
visits | ServiceVisit[] | بله | - | - | - |
createdAt | DateTime | بله | now( | - | - |
updatedAt | DateTime | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.prisma:138- Technician
ServiceVisit
Prisma model | جدول/collection: ServiceVisit
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | cuid( | id | - |
ticketId | String | بله | - | - | - |
ticket | Ticket | بله | - | - | - |
technicianId | String | بله | - | - | - |
technician | Technician | بله | - | - | - |
visitTime | DateTime | بله | - | - | - |
actionsTaken | String? | خیر | - | - | - |
partsReplaced | String? | خیر | - | - | - |
downtimeMinutes | Int? | خیر | - | - | - |
notes | String? | خیر | - | - | - |
createdAt | DateTime | بله | now( | - | - |
منابع کد
apps/core-backend/prisma/schema.prisma:152- ServiceVisit
ReportExport
Prisma model | جدول/collection: ReportExport
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | cuid( | id | - |
tenantId | String | بله | - | - | - |
tenant | Tenant | بله | - | - | - |
reportType | String | بله | - | - | - |
filters | Json | بله | - | - | - |
fileUrl | String | بله | - | - | - |
generatedAt | DateTime | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.prisma:166- ReportExport
Tenant
Prisma model | جدول/collection: tenants
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
name | String | بله | - | - | - |
plan | String | بله | - | - | - |
localeDefault | String | بله | - | - | - |
timezone | String | بله | - | - | - |
status | String | بله | - | - | - |
createdAt | String | بله | - | - | - |
updatedAt | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.sqlite.prisma:11- Tenant
User
Prisma model | جدول/collection: users
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
tenantId | String? | خیر | - | - | - |
name | String | بله | - | - | - |
email | String | بله | - | unique | - |
passwordHash | String | بله | - | - | - |
role | String | بله | - | - | - |
locale | String | بله | - | - | - |
theme | String | بله | - | - | - |
directionPreference | String? | خیر | - | - | - |
persianNumerals | Int | بله | - | - | - |
active | Int | بله | - | - | - |
impersonatedByUserId | String? | خیر | - | - | - |
elevatorScopeId | String? | خیر | - | - | - |
createdAt | String | بله | - | - | - |
updatedAt | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.sqlite.prisma:24- User
Building
Prisma model | جدول/collection: buildings
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
tenantId | String | بله | - | - | - |
name | String | بله | - | - | - |
buildingType | String | بله | - | - | - |
address | String | بله | - | - | - |
city | String | بله | - | - | - |
country | String | بله | - | - | - |
floors | Int | بله | - | - | - |
basementFloors | Int | بله | - | - | - |
occupancyProfile | String? | خیر | - | - | - |
trafficProfile | String? | خیر | - | - | - |
climateProfile | String? | خیر | - | - | - |
powerProfile | String? | خیر | - | - | - |
networkProfile | String? | خیر | - | - | - |
createdAt | String | بله | - | - | - |
updatedAt | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.sqlite.prisma:44- Building
Elevator
Prisma model | جدول/collection: elevators
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
tenantId | String | بله | - | - | - |
buildingId | String | بله | - | - | - |
code | String | بله | - | - | - |
elevatorType | String | بله | - | - | - |
serviceType | String | بله | - | - | - |
brand | String | بله | - | - | - |
model | String | بله | - | - | - |
nominalSpeed | Float | بله | - | - | - |
capacityKg | Int | بله | - | - | - |
maxPersons | Int | بله | - | - | - |
stopCount | Int | بله | - | - | - |
doorType | String | بله | - | - | - |
machineType | String | بله | - | - | - |
controllerType | String | بله | - | - | - |
commissioningDate | String? | خیر | - | - | - |
maintenanceStatus | String | بله | - | - | - |
dataSource | String | بله | - | - | - |
simulationProfileId | String? | خیر | - | - | - |
boardFirmwareVersion | String? | خیر | - | - | - |
gatewayFirmwareVersion | String? | خیر | - | - | - |
syntheticSeed | Int? | خیر | - | - | - |
syntheticStoryline | String? | خیر | - | - | - |
degradationStage | String? | خیر | - | - | - |
demoPriority | Int? | خیر | - | - | - |
createdAt | String | بله | - | - | - |
updatedAt | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.sqlite.prisma:65- Elevator
Alert
Prisma model | جدول/collection: alerts
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
time | String | بله | - | - | - |
tenantId | String | بله | - | - | - |
buildingId | String | بله | - | - | - |
elevatorId | String | بله | - | - | - |
alertType | String | بله | - | - | - |
severity | String | بله | - | - | - |
status | String | بله | - | - | - |
message | String | بله | - | - | - |
assignedTo | String? | خیر | - | - | - |
منابع کد
apps/core-backend/prisma/schema.sqlite.prisma:97- Alert
Ticket
Prisma model | جدول/collection: tickets
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
time | String | بله | - | - | - |
tenantId | String | بله | - | - | - |
buildingId | String | بله | - | - | - |
elevatorId | String | بله | - | - | - |
title | String | بله | - | - | - |
description | String | بله | - | - | - |
priority | String | بله | - | - | - |
status | String | بله | - | - | - |
assignedTechnicianId | String? | خیر | - | - | - |
dueAt | String? | خیر | - | - | - |
resolutionNotes | String? | خیر | - | - | - |
منابع کد
apps/core-backend/prisma/schema.sqlite.prisma:112- Ticket
Technician
Prisma model | جدول/collection: technicians
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
tenantId | String | بله | - | - | - |
name | String | بله | - | - | - |
phone | String | بله | - | - | - |
email | String | بله | - | - | - |
active | Int | بله | - | - | - |
territory | String | بله | - | - | - |
createdAt | String | بله | - | - | - |
updatedAt | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.sqlite.prisma:129- Technician
ServiceVisit
Prisma model | جدول/collection: service_visits
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
time | String | بله | - | - | - |
tenantId | String | بله | - | - | - |
buildingId | String | بله | - | - | - |
elevatorId | String | بله | - | - | - |
ticketId | String | بله | - | - | - |
technicianId | String | بله | - | - | - |
visitTime | String | بله | - | - | - |
actionsTaken | String? | خیر | - | - | - |
partsReplaced | String? | خیر | - | - | - |
downtimeMinutes | Int? | خیر | - | - | - |
notes | String? | خیر | - | - | - |
منابع کد
apps/core-backend/prisma/schema.sqlite.prisma:143- ServiceVisit
ReportExport
Prisma model | جدول/collection: report_exports
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
tenantId | String | بله | - | - | - |
reportType | String | بله | - | - | - |
filtersJson | String | بله | - | - | - |
fileUrl | String | بله | - | - | - |
generatedAt | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.sqlite.prisma:160- ReportExport
SimulationProfile
Prisma model | جدول/collection: simulation_profiles
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
label | String | بله | - | - | - |
buildingProfile | String | بله | - | - | - |
elevatorProfile | String | بله | - | - | - |
trafficProfile | String | بله | - | - | - |
environmentProfile | String | بله | - | - | - |
degradationProfile | String | بله | - | - | - |
faultProfile | String | بله | - | - | - |
networkProfile | String | بله | - | - | - |
storyline | String? | خیر | - | - | - |
منابع کد
apps/core-backend/prisma/schema.sqlite.prisma:171- SimulationProfile
FaultCatalog
Prisma model | جدول/collection: fault_catalog
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
faultCode | String | بله | - | - | - |
subsystem | String | بله | - | - | - |
severity | String | بله | - | - | - |
probableCause | String | بله | - | - | - |
recommendedAction | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.sqlite.prisma:186- FaultCatalog
EventCatalog
Prisma model | جدول/collection: event_catalog
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
eventType | String | بله | - | - | - |
severity | String | بله | - | - | - |
category | String | بله | - | - | - |
description | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.sqlite.prisma:197- EventCatalog
ScenarioState
Prisma model | جدول/collection: scenario_state
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
code | String | بله | - | - | - |
status | String | بله | - | - | - |
rate | Float | بله | - | - | - |
scenarioIntensity | Float | بله | - | - | - |
updatedAt | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.sqlite.prisma:207- ScenarioState
AuditRecord
Prisma model | جدول/collection: audit_records
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | String | بله | - | id | - |
time | String | بله | - | - | - |
actor | String | بله | - | - | - |
action | String | بله | - | - | - |
payloadJson | String | بله | - | - | - |
منابع کد
apps/core-backend/prisma/schema.sqlite.prisma:218- AuditRecord
TenantRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:8- TenantRecord
UserRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:17- UserRecord
BuildingRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:33- BuildingRecord
ElevatorRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:50- ElevatorRecord
TelemetryRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:78- TelemetryRecord
EventRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:88- EventRecord
FaultRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:100- FaultRecord
HealthSnapshotRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:114- HealthSnapshotRecord
AlertRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:125- AlertRecord
TicketRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:138- TicketRecord
TechnicianRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:153- TechnicianRecord
ServiceVisitRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:163- ServiceVisitRecord
ReportExportRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:178- ReportExportRecord
SimulationProfileRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:187- SimulationProfileRecord
FaultCatalogRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:200- FaultCatalogRecord
EventCatalogRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:209- EventCatalogRecord
ScenarioStateRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
code | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:217- ScenarioStateRecord
AuditRecord
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/common/types.ts:225- AuditRecord
AuthTokenPayload
DTO / Schema | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
sub | string | نیازمند بررسی | - | - | - |
منابع کد
apps/core-backend/src/modules/auth/auth.types.ts:3- AuthTokenPayload