Skip to content

포매터 및 코드

JSON을 Prisma 스키마 모델로

Generate a Prisma model block from a JSON sample.

Runs in your browser

편집자 노트

Understanding · A schema, not just a type.

이 심층 챕터는 현재 영어로만 제공됩니다. 위의 변환 도구는 귀하의 언어로 작동하지만, 긴 설명 글은 아직 번역되지 않았습니다.

자주 묻는 질문

Quick answers.

How does it map JSON types to Prisma?

JSON strings are mapped to `String`, numbers to `Int` or `Float`, and booleans to `Boolean`. If a string matches an ISO date format, it will be mapped to `DateTime`.

Can it handle nested JSON objects?

Yes. It will identify nested objects and arrays, though you may need to manually define the matching relation names within your main `schema.prisma` file.

Is my JSON data secure?

Your data never leaves your computer. The conversion logic is executed entirely within your browser's JavaScript engine.

Does it generate database-specific attributes?

It generates standard Prisma scalar types. You can manually add specific attributes like `@id`, `@default(autoincrement())`, or `@map()` after generating the base model.

사람들이 다음도 검색합니다.

관련 도구

More in this room.

모두 보기 포매터 및 코드