SQL-to-Prisma-Schema-Generator icon indicating copy to clipboard operation
SQL-to-Prisma-Schema-Generator copied to clipboard

Issues in converting postgres schema

Open PJijin opened this issue 4 years ago • 0 comments

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.

PJijin avatar Oct 27 '20 13:10 PJijin