-- Create "UserFes" table
CREATE TABLE "public"."UserFes" (
  "Id" bigserial NOT NULL,
  "CreatedAt" timestamptz NULL,
  "UpdatedAt" timestamptz NULL,
  "DeletedAt" timestamptz NULL,
  "Name" character varying(100) NULL,
  "AuthPartner_Code" character varying(30) NULL,
  "User_Name" character varying(50) NULL,
  PRIMARY KEY ("Id"),
  CONSTRAINT "fk_UserFes_AuthPartner" FOREIGN KEY ("AuthPartner_Code") REFERENCES "public"."AuthPartner" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION,
  CONSTRAINT "fk_UserFes_User" FOREIGN KEY ("User_Name") REFERENCES "public"."User" ("Name") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Drop "ExtUser" table
DROP TABLE "public"."ExtUser";
