PDManer元数建模

学习文档

PDManer元数建模-v4-操作手册 (yuque.com)https://www.yuque.com/pdmaner/docs/pdmaner-manual#goEFW

建表

-- 创建用户表2

-- 创建用户表2  √
create table USER_TEST_WXX2
(
--     主键自增generated by default as identity primary key
    USER_ID     NUMBER generated by default as identity primary key not null,
    NAME        NVARCHAR2(64)                                       not null,
    GENDER    NVARCHAR2(3),
    MOBILE    NVARCHAR2(32),
    JOB_NUMBER NVARCHAR2(32),
    PASSWORD NVARCHAR2(32),
    EMAIL NVARCHAR2(32),
    DEVELOPER_ID NVARCHAR2(32),  --开发者id
    IS_LEAVE NUMBER,  --是否离职,0为否,1为是
    REMARK NVARCHAR2(256),
    UPDATE_DATE DATE
);

-- 创建部门表3  √

create table DEPT_TEST_WXX3
(
--     主键自增generated by default as identity primary key
    DEPT_ID     NUMBER generated by default as identity primary key not null,
    NAME        NVARCHAR2(64)                                       not null,
    DESCRIBE    NVARCHAR2(256),
    PARENT_ID NUMBER,  --父级部门
    UPDATE_DATE DATE
);

-- 创建角色表2  √

create table ROLE_TEST_WXX2
(
--     主键自增generated by default as identity primary key
    ROLE_ID     NUMBER generated by default as identity primary key not null,
    NAME        NVARCHAR2(64)                                       not null,
    DESCRIBE    NVARCHAR2(256),
    IS_ENABLE   NUMBER,
    UPDATE_DATE DATE
);

-- 创建权限表2

-- 创建权限表2 √
create table PERM_TEST_WXX2
(
--     主键自增generated by default as identity primary key
    PERM_ID     NUMBER generated by default as identity primary key not null,
    NAME        NVARCHAR2(64)                                       not null,
    PARENT_ID NUMBER,  --父级权限
    URL   NVARCHAR2(256),
    APP_ID NUMBER,  --应用程序ID
    PAGE_ID NUMBER, --页面ID
    PAGE_PARENT_ID NUMBER, --页面上级ID
    DESCRIBE    NVARCHAR2(256),
    IS_ENABLE   NUMBER,
    UPDATE_DATE DATE
);

1.连接数据库,导入数据表

PDManer元数建模_第1张图片

PDManer元数建模_第2张图片

  2.为表设置显示名称和标题

PDManer元数建模_第3张图片

 3.将设好的表拖动到关系图空白区

PDManer元数建模_第4张图片

 4.建立关联

由源字段锚点向目标字段锚点拖动,默认建立源字段至目标字段的1对N关系

PDManer元数建模_第5张图片

 最后效果

PDManer元数建模_第6张图片

 

 

 

你可能感兴趣的:(数据库,oracle,pl/sql)