
-- ----------------------------
-- Table structure for MenuButton
-- ----------------------------
DROP TABLE IF EXISTS "public"."MenuButton";
CREATE SEQUENCE "MenuButton_MenuButtonId_seq";
CREATE TABLE "public"."MenuButton" (
  "MenuButtonId" int4 NOT NULL DEFAULT nextval('"MenuButton_MenuButtonId_seq"'::regclass),
  "Code" varchar(6) COLLATE "pg_catalog"."default" NOT NULL,
  "Name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "MenuId" int4 NOT NULL
)
;
ALTER TABLE "public"."MenuButton" OWNER TO "postgres";

-- ----------------------------
-- Primary Key structure for table MenuButton
-- ----------------------------
ALTER TABLE "public"."MenuButton" ADD CONSTRAINT "MenuButton_pkey" PRIMARY KEY ("MenuButtonId");

-- ----------------------------
-- Foreign Keys structure for table MenuButton
-- ----------------------------
ALTER TABLE "public"."MenuButton" ADD CONSTRAINT "FK_MenuButton_MenuId" FOREIGN KEY ("MenuId") REFERENCES "public"."Menu" ("MenuId") ON DELETE NO ACTION ON UPDATE NO ACTION;
