
-- ----------------------------
-- Table structure for MenuButtonRelationship
-- ----------------------------
DROP TABLE IF EXISTS "public"."MenuButtonRelationship";
CREATE SEQUENCE "MenuButtonRelationship_MenuButtonRelationshipId_seq";
CREATE TABLE "public"."MenuButtonRelationship" (
  "MenuButtonRelationshipId" int4 NOT NULL DEFAULT nextval('"MenuButtonRelationship_MenuButtonRelationshipId_seq"'::regclass),
  "RoleId" int4 NOT NULL,
  "MenuButtonId" int4 NOT NULL
)
;
ALTER TABLE "public"."MenuButtonRelationship" OWNER TO "postgres";

-- ----------------------------
-- Primary Key structure for table MenuButtonRelationship
-- ----------------------------
ALTER TABLE "public"."MenuButtonRelationship" ADD CONSTRAINT "MenuButtonRelationship_pkey" PRIMARY KEY ("MenuButtonRelationshipId");

-- ----------------------------
-- Foreign Keys structure for table MenuButtonRelationship
-- ----------------------------
ALTER TABLE "public"."MenuButtonRelationship" ADD CONSTRAINT "FK_MenuButton_MenuButtonId" FOREIGN KEY ("MenuButtonId") REFERENCES "public"."MenuButton" ("MenuButtonId") ON DELETE NO ACTION ON UPDATE NO ACTION;
ALTER TABLE "public"."MenuButtonRelationship" ADD CONSTRAINT "FK_MenuButton_RoleId" FOREIGN KEY ("RoleId") REFERENCES "public"."Role" ("RoleId") ON DELETE NO ACTION ON UPDATE NO ACTION;
