CREATE TABLE "RETAIL"."BD_REGION_VERTEX" (
                                     "PK_ID" NUMBER(6,0),
                                     "NAME" VARCHAR2(200) NOT NULL,
                                     "DEL_FLAG" NUMBER(1,0) DEFAULT 0 NOT NULL ENABLE,
                                     "PK_COUNTRY" NUMBER(4,0) DEFAULT 1 NOT NULL ENABLE,
                                     "CREATION_TIME" DATE DEFAULT sysdate NOT NULL ENABLE,
                                     "MODIFIED_TIME" DATE,
                                     "PK_CREATOR" NUMBER(20,0) NOT NULL ENABLE,
                                     "PK_MODIFIED" NUMBER(20,0)
)
;

COMMENT ON COLUMN "RETAIL"."BD_REGION_VERTEX"."CREATION_TIME" IS '创建时间';

COMMENT ON COLUMN "RETAIL"."BD_REGION_VERTEX"."MODIFIED_TIME" IS '更新时间';

COMMENT ON COLUMN "RETAIL"."BD_REGION_VERTEX"."NAME" IS '区域体系分组名称';

COMMENT ON TABLE "RETAIL"."BD_REGION_VERTEX" IS '区域体系分组配置表';

CREATE SEQUENCE BD_REGION_VERTEX_SEQ
    START WITH 1
    INCREMENT BY 1;

ALTER TABLE "RETAIL"."BD_VERTEX"
    ADD ("REGION_VERTEX_PK_ID" NUMBER(6,0));

COMMENT ON COLUMN "RETAIL"."BD_VERTEX"."REGION_VERTEX_PK_ID" IS '区域体系分组配置表ID';

ALTER TABLE "RETAIL"."CU_MEMBER_RETAIL_REGION"
    ADD ("REGION_VERTEX_PK_ID" NUMBER(6,0));

COMMENT ON COLUMN "RETAIL"."CU_MEMBER_RETAIL_REGION"."REGION_VERTEX_PK_ID" IS '区域体系分组配置表ID'
