Relative Content

Tag Archive for prisma

Prisma Seed Command Fails with TypeScript File Extension Error

I’m trying to seed my database using Prisma’s official CLI, but I’m encountering an unexpected error when running npx prisma db seed. My project was set up using the official Prisma CLI, and I’m following their documentation, yet I’m getting a file extension error that seems bizarre.

Prisma ORM – multiple 1 to n relations in one model

I’m having problems trying to apply multiple 1 to n relations to a model – the funny thing is it partly works so to clarify:
I have a “Vacancy” object, which could be created by either an “Internal” or an “Agent” those roles are separate and have their own models so I was planning to do something like this:

Error While Implementing Migrate Command in Prisma: How to Resolve?

I am Working on Twitter-Clone, where I am facing issue on Twitter-server side while implementing Prisma.
more details- when I am trying to create a dataBase table of MODEL USER in schema.prisma and trying to connect it with superBase by running “npx prisma migrate dev –name added_user_model” command then this goes under processing but does not execute as it has to be.
As you can see in terminal command is running and it keep on process like this only.

Creating user accounts with remix-auth-form and remix-auth and prisma

I’m learning authentication for remix. I’m creating a signup sheet where the user creates an account with an email, username, and password. I can create the account on my database but the authentication fails. Here’s my code. I would appreciate any insight or help you can give me.