SQL-to-Prisma-Schema-Generator
SQL-to-Prisma-Schema-Generator copied to clipboard
Issues in converting postgres schema
Remove schema name from the generated model name.
Example pgsql
CREATE TABLE "public"."activity" (
"id" int8 NOT NULL DEFAULT nextval('activity_id_seq'::regclass),
"userId" int4 NOT NULL,
"message" text NOT NULL,
"type" int4 NOT NULL,
"created_at" timestamptz NOT NULL DEFAULT now(),
PRIMARY KEY ("id")
);
Remove public from generated Prisma schema.