Why the Prisma insert data into database will create schema "default$default"?


#1

I followed the tutorial of getting started from official website(postgresql).

I tried to check the data, so I enter the docker container and used psql CLI, but I got the response is empty.

So I tried to make backup file and I find something interesting.

The table create by prisma model is in the schema default$default, so the data is insert into the table in schema default$default.

No wonder I can’t find anything in the database, but when I called api, the response with data exist.

Why did the structure was designed like that?


#2

I think that is by default


#3

Yes. I can change that setting to my own database name?