学习文档
PDManer元数建模-v4-操作手册 (yuque.com)https://www.yuque.com/pdmaner/docs/pdmaner-manual#goEFW
建表
-- 创建用户表2
sql
-- 创建用户表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 √
sql
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 √
sql
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
sql
-- 创建权限表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
);