prisma / studio

🎙️ The easiest way to explore and manipulate your data in all of your Prisma projects.
https://www.prisma.io/studio
1.87k stars 48 forks source link

prisma studio #1210

Closed KendimaNhub closed 3 months ago

KendimaNhub commented 7 months ago

Bug description

Error starting Prisma Client: { "message": "\nYou don't have any \u001b[1mmodels\u001b[22m defined in your \u001b[1mschema.prisma\u001b[22m, so nothing will be generated.\nYou can define a model like this:\n\n\u001b[1m\u001b[36mmodel User\u001b[39m \u001b[34m{\u001b[39m\n id\u001b[1m\u001b[34m Int\u001b[39m\u001b[22m\u001b[1m \u001b[36m@id @default(autoincrement())\u001b[39m\n email\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m \u001b[36m@unique\u001b[39m\n name\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m?\n\u001b[34m}\u001b[39m\u001b[22m\n\nMore information in our documentation:\n\u001b[4mhttps://pris.ly/d/prisma-schema\u001b[24m\n", "stack": "\nYou don't have any \u001b[1mmodels\u001b[22m defined in your \u001b[1mschema.prisma\u001b[22m, so nothing will be generated.\nYou can define a model like this:\n\n\u001b[1m\u001b[36mmodel User\u001b[39m \u001b[34m{\u001b[39m\n id\u001b[1m\u001b[34m Int\u001b[39m\u001b[22m\u001b[1m \u001b[36m@id @default(autoincrement())\u001b[39m\n email\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m \u001b[36m@unique\u001b[39m\n name\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m?\n\u001b[34m}\u001b[39m\u001b[22m\n\nMore information in our documentation:\n\u001b[4mhttps://pris.ly/d/prisma-schema\u001b[24m\n" } Error: Error starting Prisma Client: { "message": "\nYou don't have any \u001b[1mmodels\u001b[22m defined in your \u001b[1mschema.prisma\u001b[22m, so nothing will be generated.\nYou can define a model like this:\n\n\u001b[1m\u001b[36mmodel User\u001b[39m \u001b[34m{\u001b[39m\n id\u001b[1m\u001b[34m Int\u001b[39m\u001b[22m\u001b[1m \u001b[36m@id @default(autoincrement())\u001b[39m\n email\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m \u001b[36m@unique\u001b[39m\n name\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m?\n\u001b[34m}\u001b[39m\u001b[22m\n\nMore information in our documentation:\n\u001b[4mhttps://pris.ly/d/prisma-schema\u001b[24m\n", "stack": "\nYou don't have any \u001b[1mmodels\u001b[22m defined in your \u001b[1mschema.prisma\u001b[22m, so nothing will be generated.\nYou can define a model like this:\n\n\u001b[1m\u001b[36mmodel User\u001b[39m \u001b[34m{\u001b[39m\n id\u001b[1m\u001b[34m Int\u001b[39m\u001b[22m\u001b[1m \u001b[36m@id @default(autoincrement())\u001b[39m\n email\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m \u001b[36m@unique\u001b[39m\n name\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m?\n\u001b[34m}\u001b[39m\u001b[22m\n\nMore information in our documentation:\n\u001b[4mhttps://pris.ly/d/prisma-schema\u001b[24m\n" } at qs.init (http://localhost:5555/assets/index.js:1:82961)

How to reproduce

Expected behavior

No response

Prisma information

Environment & setup

Prisma logs

No response

KendimaNhub commented 7 months ago

please i need help for this problem my prisma studio not opening

janpio commented 7 months ago

You don't have any models defined in your schema.prisma, so Studio does not know what it should display.