From 101cfcf508933fe06b677ac71ee036d126029195 Mon Sep 17 00:00:00 2001 From: selfrelease Date: Sat, 15 Aug 2026 17:12:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E5=85=85=E7=BC=BA=E5=A4=B1?= =?UTF-8?q?=E7=9A=84DB=E5=AD=97=E6=AE=B5=20idType=20+=20contractCategory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 测试验证发现两个字段声明在优化计划中标记完成但实际未添加到schema: - Employee.idType:证件类型(ID_CARD/PASSPORT/HK_MACAO_TAIWAN/OTHER) - LaborContract.contractCategory:合同分类(LABOR_CONTRACT/LABOR_AGREEMENT/INTERNSHIP/FLEXIBLE) 已通过 prisma db push 应用到数据库,历史数据为NULL(兼容) Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- backend/prisma/schema.prisma | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/prisma/schema.prisma b/backend/prisma/schema.prisma index dd9bb12..b0f01e3 100644 --- a/backend/prisma/schema.prisma +++ b/backend/prisma/schema.prisma @@ -241,6 +241,7 @@ model Employee { gender String? phone String? idCardNumber String? // AES-256 加密存储 + idType String? // 证件类型:ID_CARD(身份证,默认)/PASSPORT/HK_MACAO_TAIWAN/OTHER idCardHash String? // SHA-256 哈希,用于按身份证号查询匹配 emergencyContact String? emergencyPhone String? @@ -316,6 +317,7 @@ model LaborContract { startDate DateTime endDate DateTime? contractType ContractType + contractCategory String? // 合同分类:LABOR_CONTRACT(劳动合同,默认)/LABOR_AGREEMENT(劳务协议)/INTERNSHIP(实习协议)/FLEXIBLE(灵活用工) signMethod SignMethod @default(PAPER) contractYears Int @default(3) probationMonths Int @default(0)