(llm-first): context budget, validation, and eval harness, orchestration general-prompt
This commit is contained in:
@@ -14,61 +14,86 @@ enum EquipmentStatus {
|
||||
WriteOff
|
||||
}
|
||||
|
||||
enum RepairKind {
|
||||
TO
|
||||
TR
|
||||
TRE
|
||||
KR
|
||||
AR
|
||||
MP
|
||||
enum laborOperation {
|
||||
Manual
|
||||
MachineManual
|
||||
Machine
|
||||
}
|
||||
|
||||
enum RepairOrderStatus {
|
||||
Draft
|
||||
Approved
|
||||
InWork
|
||||
Done
|
||||
Cancelled
|
||||
enum EnumPeriodicityTO {
|
||||
EZHEDNEVNOE @map("Ежедневное")
|
||||
EZHENEDELNOE @map("Еженедельное")
|
||||
EZHEMESYACHNOE @map("Ежемесячное")
|
||||
POLUGODOVOE @map("Полугодовое")
|
||||
GODOVOE @map("Годовое")
|
||||
}
|
||||
|
||||
model EquipmentType {
|
||||
code String @id
|
||||
name String
|
||||
manufacturer String?
|
||||
maintenanceIntervalHours Int?
|
||||
overhaulIntervalHours Int?
|
||||
equipment Equipment[]
|
||||
enum Role {
|
||||
ISPOLNITEL @map("Исполнитель")
|
||||
PODPISANT @map("Подписант")
|
||||
POLZOVATEL @map("Пользователь")
|
||||
}
|
||||
|
||||
enum CategoryPart {
|
||||
RASKHODNIK @map("Расходник")
|
||||
ZAPCHAST @map("Запчасть")
|
||||
INSTRUMENT @map("Инструмент")
|
||||
SPETSODEZHDA @map("Спецодежда")
|
||||
}
|
||||
|
||||
enum EquipmentType {
|
||||
PROIZVODSTVENNOE @map("Производственное")
|
||||
ENERGETICHESKOE @map("Энергетическое")
|
||||
NASOSNOE @map("Насосное")
|
||||
KOMPRESSORNOE @map("Компрессорное")
|
||||
}
|
||||
|
||||
model Equipment {
|
||||
id String @id @default(uuid())
|
||||
inventoryNumber String @unique
|
||||
serialNumber String?
|
||||
name String
|
||||
equipmentTypeCode String
|
||||
status EquipmentStatus @default(Active)
|
||||
location String?
|
||||
commissionedAt DateTime?
|
||||
totalEngineHours Decimal?
|
||||
id String @id @default(uuid())
|
||||
name String
|
||||
serialNumber String
|
||||
inventoryNumber String @unique
|
||||
equipmentType EquipmentType
|
||||
dateOfInspection DateTime?
|
||||
periodicityTO EnumPeriodicityTO
|
||||
location String?
|
||||
status EquipmentStatus
|
||||
commissionedAt DateTime?
|
||||
totalEngineHours Decimal?
|
||||
engineHoursSinceLastRepair Decimal?
|
||||
lastRepairAt DateTime?
|
||||
notes String?
|
||||
equipmentType EquipmentType @relation(fields: [equipmentTypeCode], references: [code])
|
||||
repairOrders RepairOrder[]
|
||||
lastRepairAt DateTime?
|
||||
notes String?
|
||||
workAsPartOf laborOperation?
|
||||
fuelConsumed Float?
|
||||
}
|
||||
|
||||
model RepairOrder {
|
||||
id String @id @default(uuid())
|
||||
number String @unique
|
||||
equipmentId String
|
||||
repairKind RepairKind
|
||||
status RepairOrderStatus @default(Draft)
|
||||
plannedAt DateTime
|
||||
startedAt DateTime?
|
||||
completedAt DateTime?
|
||||
contractor String?
|
||||
engineHoursAtRepair Decimal?
|
||||
description String?
|
||||
notes String?
|
||||
equipment Equipment @relation(fields: [equipmentId], references: [id])
|
||||
model Employee {
|
||||
code String @id
|
||||
fullName String
|
||||
role Role
|
||||
position String
|
||||
bossCode String?
|
||||
boss Employee? @relation("EmployeeBoss", fields: [bossCode], references: [code])
|
||||
subordinates Employee[] @relation("EmployeeBoss")
|
||||
price Float?
|
||||
phoneNumber Float?
|
||||
categoryResources CategoryResource[]
|
||||
}
|
||||
|
||||
model Part {
|
||||
id String @id @default(uuid())
|
||||
name String
|
||||
categories CategoryPart?
|
||||
price Float?
|
||||
description String?
|
||||
serialNumber String?
|
||||
categoryResources CategoryResource[]
|
||||
}
|
||||
|
||||
model CategoryResource {
|
||||
id String @id @default(uuid())
|
||||
partId String?
|
||||
employeeCode String?
|
||||
part Part? @relation(fields: [partId], references: [id])
|
||||
employee Employee? @relation(fields: [employeeCode], references: [code])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user