各 DTO 增加 Swagger ApiProperty/ApiPropertyOptional 描述与示例(尤其 phone/password) seed.ts 为新增完整 seed 脚本(幂等 upsert + 角色样例 + 患者 + 工程师分配)
16 lines
444 B
TypeScript
16 lines
444 B
TypeScript
// This file was generated by Prisma, and assumes you have installed the following:
|
|
// npm install --save-dev prisma dotenv
|
|
import "dotenv/config";
|
|
import { defineConfig } from "prisma/config";
|
|
|
|
export default defineConfig({
|
|
schema: "prisma/schema.prisma",
|
|
migrations: {
|
|
path: "prisma/migrations",
|
|
seed: "node --env-file=.env --loader ts-node/esm prisma/seed.ts",
|
|
},
|
|
datasource: {
|
|
url: process.env["DATABASE_URL"],
|
|
},
|
|
});
|