-- ----------------------------
-- 1¡¢²¿ÃÅ±í
-- ----------------------------
drop sequence seq_sys_dept;
create sequence seq_sys_dept
 increment by 1
 start with 200
 nomaxvalue
 nominvalue
 cache 20;

drop table sys_dept ;
create table sys_dept (
  dept_id           number(20)      not null,
  parent_id         number(20)      default 0,
  ancestors         varchar2(50)    default '',
  dept_name         varchar2(30)    default '',
  order_num         number(4)       default 0,
  leader            varchar2(20)    default null,
  phone             varchar2(11)    default null,
  email             varchar2(50)    default null,
  status            char(1)         default '0',
  del_flag          char(1)         default '0',
  create_by         varchar2(64)    default '',
  create_time 	    date,
  update_by         varchar2(64)    default '',
  update_time       date
);

alter table sys_dept add constraint pk_sys_dept primary key (dept_id);

comment on table  sys_dept              is '²¿ÃÅÐÅÏ¢±í';
comment on column sys_dept.dept_id      is '²¿ÃÅÖ÷¼üseq_sys_dept.nextval';
comment on column sys_dept.parent_id    is '¸¸²¿ÃÅid';
comment on column sys_dept.ancestors    is '×æ¼¶ÁÐ±í';
comment on column sys_dept.dept_name    is '²¿ÃÅÃû³Æ';
comment on column sys_dept.order_num    is 'ÏÔÊ¾Ë³Ðò';
comment on column sys_dept.leader       is '¸ºÔðÈË';
comment on column sys_dept.phone        is 'ÁªÏµµç»°';
comment on column sys_dept.email        is 'ÓÊÏä';
comment on column sys_dept.status       is '²¿ÃÅ×´Ì¬£¨0Õý³£ 1Í£ÓÃ£©';
comment on column sys_dept.del_flag     is 'É¾³ý±êÖ¾£¨0´ú±í´æÔÚ 2´ú±íÉ¾³ý£©';
comment on column sys_dept.create_by    is '´´½¨Õß';
comment on column sys_dept.create_time  is '´´½¨Ê±¼ä';
comment on column sys_dept.update_by    is '¸üÐÂÕß';
comment on column sys_dept.update_time  is '¸üÐÂÊ±¼ä';

-- ----------------------------
-- ³õÊ¼»¯-²¿ÃÅ±íÊý¾Ý
-- ----------------------------
insert into sys_dept values(100,  0,   '0',          'ÈôÒÀ¿Æ¼¼',   0, 'ÈôÒÀ', '15888888888', 'ry@qq.com', '0', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'));
insert into sys_dept values(101,  100, '0,100',      'ÉîÛÚ×Ü¹«Ë¾', 1, 'ÈôÒÀ', '15888888888', 'ry@qq.com', '0', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'));
insert into sys_dept values(102,  100, '0,100',      '³¤É³·Ö¹«Ë¾', 2, 'ÈôÒÀ', '15888888888', 'ry@qq.com', '0', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'));
insert into sys_dept values(103,  101, '0,100,101',  'ÑÐ·¢²¿ÃÅ',   1, 'ÈôÒÀ', '15888888888', 'ry@qq.com', '0', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'));
insert into sys_dept values(104,  101, '0,100,101',  'ÊÐ³¡²¿ÃÅ',   2, 'ÈôÒÀ', '15888888888', 'ry@qq.com', '0', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'));
insert into sys_dept values(105,  101, '0,100,101',  '²âÊÔ²¿ÃÅ',   3, 'ÈôÒÀ', '15888888888', 'ry@qq.com', '0', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'));
insert into sys_dept values(106,  101, '0,100,101',  '²ÆÎñ²¿ÃÅ',   4, 'ÈôÒÀ', '15888888888', 'ry@qq.com', '0', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'));
insert into sys_dept values(107,  101, '0,100,101',  'ÔËÎ¬²¿ÃÅ',   5, 'ÈôÒÀ', '15888888888', 'ry@qq.com', '0', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'));
insert into sys_dept values(108,  102, '0,100,102',  'ÊÐ³¡²¿ÃÅ',   1, 'ÈôÒÀ', '15888888888', 'ry@qq.com', '0', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'));
insert into sys_dept values(109,  102, '0,100,102',  '²ÆÎñ²¿ÃÅ',   2, 'ÈôÒÀ', '15888888888', 'ry@qq.com', '0', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'));

-- ----------------------------
-- 2¡¢ÓÃ»§ÐÅÏ¢±í
-- ----------------------------
drop sequence seq_sys_user;
create sequence seq_sys_user
 increment by 1
 start with 100
 nomaxvalue
 nominvalue
 cache 20;

drop table sys_user;
create table sys_user (
  user_id           number(20)      not null,
  dept_id           number(20)      default null,
  user_name         varchar2(30)    not null,
  nick_name         varchar2(30)    default '',
  user_type         varchar2(2)     default '00',
  email             varchar2(50)    default '',
  phonenumber       varchar2(11)    default '',
  sex               char(1)         default '0',
  avatar            varchar2(200)   default '',
  password          varchar2(100)   default '',
  status            char(1)         default '0',
  del_flag          char(1)         default '0',
  login_ip          varchar2(50)    default '',
  login_date        date,
  create_by         varchar2(64),
  create_time 	    date,
  update_by         varchar2(64)    default '',
  update_time       date,
  remark            varchar2(500)   default ''
);

alter table sys_user add constraint pk_sys_user primary key (user_id);

comment on table  sys_user              is 'ÓÃ»§ÐÅÏ¢±í';
comment on column sys_user.user_id      is 'ÓÃ»§Ö÷¼üseq_sys_user.nextval';
comment on column sys_user.dept_id      is '²¿ÃÅID';
comment on column sys_user.user_name    is 'ÓÃ»§ÕËºÅ';
comment on column sys_user.nick_name    is 'ÓÃ»§êÇ³Æ';
comment on column sys_user.user_type    is 'ÓÃ»§ÀàÐÍ£¨00ÏµÍ³ÓÃ»§ 01×¢²áÓÃ»§£©';
comment on column sys_user.email        is 'ÓÃ»§ÓÊÏä';
comment on column sys_user.phonenumber  is 'ÊÖ»úºÅÂë';
comment on column sys_user.sex          is 'ÓÃ»§ÐÔ±ð£¨0ÄÐ 1Å® 2Î´Öª£©';
comment on column sys_user.avatar       is 'Í·ÏñÂ·¾¶';
comment on column sys_user.password     is 'ÃÜÂë';
comment on column sys_user.status       is 'ÕÊºÅ×´Ì¬£¨0Õý³£ 1Í£ÓÃ£©';
comment on column sys_user.del_flag     is 'É¾³ý±êÖ¾£¨0´ú±í´æÔÚ 2´ú±íÉ¾³ý£©';
comment on column sys_user.login_ip     is '×îºóµÇÂ½IP';
comment on column sys_user.login_date   is '×îºóµÇÂ½Ê±¼ä';
comment on column sys_user.create_by    is '´´½¨Õß';
comment on column sys_user.create_time  is '´´½¨Ê±¼ä';
comment on column sys_user.update_by    is '¸üÐÂÕß';
comment on column sys_user.update_time  is '¸üÐÂÊ±¼ä';
comment on column sys_user.remark       is '±¸×¢';

-- ----------------------------
-- ³õÊ¼»¯-ÓÃ»§ÐÅÏ¢±íÊý¾Ý
-- ----------------------------
insert into sys_user values(1,  103, 'admin', 'ÈôÒÀ', '00', 'ry@163.com', '15888888888', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '¹ÜÀíÔ±');
insert into sys_user values(2,  105, 'ry',    'ÈôÒÀ', '00', 'ry@qq.com',  '15666666666', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '²âÊÔÔ±');


-- ----------------------------
-- 3¡¢¸ÚÎ»ÐÅÏ¢±í
-- ----------------------------
drop sequence seq_sys_post;
create sequence seq_sys_post
 increment by 1
 start with 10
 nomaxvalue
 nominvalue
 cache 20;

drop table sys_post;
create table sys_post
(
  post_id           number(20)      not null,
  post_code         varchar2(64)    not null,
  post_name         varchar2(50)    not null,
  post_sort         number(4)       not null,
  status            char(1)         not null,
  create_by         varchar2(64)    default '',
  create_time       date,
  update_by         varchar2(64)    default '',
  update_time       date,
  remark            varchar2(500)
);

alter table sys_post add constraint pk_sys_post primary key (post_id);

comment on table  sys_post              is '¸ÚÎ»ÐÅÏ¢±í';
comment on column sys_post.post_id      is '¸ÚÎ»Ö÷¼üseq_sys_post.nextval';
comment on column sys_post.post_code    is '¸ÚÎ»±àÂë';
comment on column sys_post.post_name    is '¸ÚÎ»Ãû³Æ';
comment on column sys_post.post_sort    is 'ÏÔÊ¾Ë³Ðò';
comment on column sys_post.status       is '×´Ì¬£¨0Õý³£ 1Í£ÓÃ£©';
comment on column sys_post.create_by    is '´´½¨Õß';
comment on column sys_post.create_time  is '´´½¨Ê±¼ä';
comment on column sys_post.update_by    is '¸üÐÂÕß';
comment on column sys_post.update_time  is '¸üÐÂÊ±¼ä';
comment on column sys_post.remark       is '±¸×¢';

-- ----------------------------
-- ³õÊ¼»¯-¸ÚÎ»ÐÅÏ¢±íÊý¾Ý
-- ----------------------------
insert into sys_post values(1, 'ceo',  '¶­ÊÂ³¤',    1, '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '');
insert into sys_post values(2, 'se',   'ÏîÄ¿¾­Àí',  2, '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '');
insert into sys_post values(3, 'hr',   'ÈËÁ¦×ÊÔ´',  3, '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '');
insert into sys_post values(4, 'user', 'ÆÕÍ¨Ô±¹¤',  4, '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '');


-- ----------------------------
-- 4¡¢½ÇÉ«ÐÅÏ¢±í
-- ----------------------------
drop sequence seq_sys_role;
create sequence seq_sys_role
 increment by 1
 start with 100
 nomaxvalue
 nominvalue
 cache 20;

drop table sys_role;
create table sys_role (
  role_id           number(20)      not null,
  role_name         varchar2(30)    not null,
  role_key          varchar2(100)   not null,
  role_sort         number(4)       not null,
  data_scope        char(1)         default '1',
  status            char(1)         not null,
  del_flag          char(1)         default '0',
  create_by         varchar2(64)    default '',
  create_time       date,
  update_by         varchar2(64)    default '',
  update_time       date,
  remark            varchar2(500)   default null
);

alter table sys_role add constraint pk_sys_role primary key (role_id);

comment on table  sys_role              is '½ÇÉ«ÐÅÏ¢±í';
comment on column sys_role.role_id      is '½ÇÉ«Ö÷¼üseq_sys_post.nextval';
comment on column sys_role.role_name    is '½ÇÉ«Ãû³Æ';
comment on column sys_role.role_key     is '½ÇÉ«È¨ÏÞ×Ö·û´®';
comment on column sys_role.role_sort    is 'ÏÔÊ¾Ë³Ðò';
comment on column sys_role.data_scope   is 'Êý¾Ý·¶Î§£¨1£ºÈ«²¿Êý¾ÝÈ¨ÏÞ 2£º×Ô¶¨Êý¾ÝÈ¨ÏÞ£©';
comment on column sys_role.status       is '½ÇÉ«×´Ì¬£¨0Õý³£ 1Í£ÓÃ£©';
comment on column sys_role.del_flag     is 'É¾³ý±êÖ¾£¨0´ú±í´æÔÚ 2´ú±íÉ¾³ý£©';
comment on column sys_role.create_by    is '´´½¨Õß';
comment on column sys_role.create_time  is '´´½¨Ê±¼ä';
comment on column sys_role.update_by    is '¸üÐÂÕß';
comment on column sys_role.update_time  is '¸üÐÂÊ±¼ä';
comment on column sys_role.remark       is '±¸×¢';

-- ----------------------------
-- ³õÊ¼»¯-½ÇÉ«ÐÅÏ¢±íÊý¾Ý
-- ----------------------------
insert into sys_role values('1', '¹ÜÀíÔ±',   'admin',  1, 1, '0', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '¹ÜÀíÔ±');
insert into sys_role values('2', 'ÆÕÍ¨½ÇÉ«', 'common', 2, 2, '0', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÆÕÍ¨½ÇÉ«');


-- ----------------------------
-- 5¡¢²Ëµ¥È¨ÏÞ±í
-- ----------------------------
drop sequence seq_sys_menu;
create sequence seq_sys_menu
 increment by 1
 start with 2000
 nomaxvalue
 nominvalue
 cache 20;

drop table sys_menu ;
create table sys_menu (
  menu_id           number(20)      not null,
  menu_name         varchar2(50)    not null,
  parent_id         number(20)      default 0,
  order_num         number(4)       default 0,
  path              varchar(200)    default '',
  component         varchar(255)    default null,
  is_frame          number(1)       default 1,
  menu_type         char(1)         default '',
  visible           char(1)         default 0,
  status            char(1)         default 0,
  perms             varchar2(100)   default null,
  icon              varchar2(100)   default '#',
  create_by         varchar2(64)    default '',
  create_time       date,
  update_by         varchar2(64)    default '',
  update_time       date ,
  remark            varchar2(500)   default ''
);

alter table sys_menu add constraint pk_sys_menu primary key (menu_id);

comment on table  sys_menu              is '²Ëµ¥È¨ÏÞ±í';
comment on column sys_menu.menu_id      is '²Ëµ¥Ö÷¼üseq_sys_post.nextval';
comment on column sys_menu.menu_name    is '²Ëµ¥Ãû³Æ';
comment on column sys_menu.parent_id    is '¸¸²Ëµ¥ID';
comment on column sys_menu.order_num    is 'ÏÔÊ¾Ë³Ðò';
comment on column sys_menu.path         is 'ÇëÇóµØÖ·';
comment on column sys_menu.component    is 'Â·ÓÉµØÖ·';
comment on column sys_menu.is_frame     is 'ÊÇ·ñÎªÍâÁ´£¨0ÊÇ 1·ñ£©';
comment on column sys_menu.menu_type    is '²Ëµ¥ÀàÐÍ£¨MÄ¿Â¼ C²Ëµ¥ F°´Å¥£©';
comment on column sys_menu.visible      is '²Ëµ¥×´Ì¬£¨0ÏÔÊ¾ 1Òþ²Ø£©';
comment on column sys_menu.status       is '²Ëµ¥×´Ì¬£¨0Õý³£ 1Í£ÓÃ£©';
comment on column sys_menu.perms        is 'È¨ÏÞ±êÊ¶';
comment on column sys_menu.icon         is '²Ëµ¥Í¼±ê';
comment on column sys_menu.create_by    is '´´½¨Õß';
comment on column sys_menu.create_time  is '´´½¨Ê±¼ä';
comment on column sys_menu.update_by    is '¸üÐÂÕß';
comment on column sys_menu.update_time  is '¸üÐÂÊ±¼ä';
comment on column sys_menu.remark       is '±¸×¢';

-- ----------------------------
-- ³õÊ¼»¯-²Ëµ¥ÐÅÏ¢±íÊý¾Ý
-- ----------------------------
-- Ò»¼¶²Ëµ¥
insert into sys_menu values('1', 'ÏµÍ³¹ÜÀí', '0', '1', 'system',           null,   1, 'M', '0', '0', '', 'system',   'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ÏµÍ³¹ÜÀíÄ¿Â¼');
insert into sys_menu values('2', 'ÏµÍ³¼à¿Ø', '0', '2', 'monitor',          null,   1, 'M', '0', '0', '', 'monitor',  'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ÏµÍ³¼à¿ØÄ¿Â¼');
insert into sys_menu values('3', 'ÏµÍ³¹¤¾ß', '0', '3', 'tool',             null,   1, 'M', '0', '0', '', 'tool',     'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ÏµÍ³¹¤¾ßÄ¿Â¼');
insert into sys_menu values('4', 'ÈôÒÀ¹ÙÍø', '0', '4', 'http://ruoyi.vip', null ,  0, 'M', '0', '0', '', 'guide',    'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ÈôÒÀ¹ÙÍøµØÖ·');
-- ¶þ¼¶²Ëµ¥
insert into sys_menu values('100',  'ÓÃ»§¹ÜÀí', '1',   '1', 'user',       'system/user/index',        1, 'C', '0', '0', 'system:user:list',        'user',          'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ÓÃ»§¹ÜÀí²Ëµ¥');
insert into sys_menu values('101',  '½ÇÉ«¹ÜÀí', '1',   '2', 'role',       'system/role/index',        1, 'C', '0', '0', 'system:role:list',        'peoples',       'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'½ÇÉ«¹ÜÀí²Ëµ¥');
insert into sys_menu values('102',  '²Ëµ¥¹ÜÀí', '1',   '3', 'menu',       'system/menu/index',        1, 'C', '0', '0', 'system:menu:list',        'tree-table',    'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'²Ëµ¥¹ÜÀí²Ëµ¥');
insert into sys_menu values('103',  '²¿ÃÅ¹ÜÀí', '1',   '4', 'dept',       'system/dept/index',        1, 'C', '0', '0', 'system:dept:list',        'tree',          'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'²¿ÃÅ¹ÜÀí²Ëµ¥');
insert into sys_menu values('104',  '¸ÚÎ»¹ÜÀí', '1',   '5', 'post',       'system/post/index',        1, 'C', '0', '0', 'system:post:list',        'post',          'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'¸ÚÎ»¹ÜÀí²Ëµ¥');
insert into sys_menu values('105',  '×Öµä¹ÜÀí', '1',   '6', 'dict',       'system/dict/index',        1, 'C', '0', '0', 'system:dict:list',        'dict',          'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'×Öµä¹ÜÀí²Ëµ¥');
insert into sys_menu values('106',  '²ÎÊýÉèÖÃ', '1',   '7', 'config',     'system/config/index',      1, 'C', '0', '0', 'system:config:list',      'edit',          'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'²ÎÊýÉèÖÃ²Ëµ¥');
insert into sys_menu values('107',  'Í¨Öª¹«¸æ', '1',   '8', 'notice',     'system/notice/index',      1, 'C', '0', '0', 'system:notice:list',      'message',       'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'Í¨Öª¹«¸æ²Ëµ¥');
insert into sys_menu values('108',  'ÈÕÖ¾¹ÜÀí', '1',   '9', 'log',        'system/log/index',         1, 'M', '0', '0', '',                        'log',           'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ÈÕÖ¾¹ÜÀí²Ëµ¥');
insert into sys_menu values('109',  'ÔÚÏßÓÃ»§', '2',   '1', 'online',     'monitor/online/index',     1, 'C', '0', '0', 'monitor:online:list',     'online',        'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ÔÚÏßÓÃ»§²Ëµ¥');
insert into sys_menu values('110',  '¶¨Ê±ÈÎÎñ', '2',   '2', 'job',        'monitor/job/index',        1, 'C', '0', '0', 'monitor:job:list',        'job',           'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'¶¨Ê±ÈÎÎñ²Ëµ¥');
insert into sys_menu values('111',  'Êý¾Ý¼à¿Ø', '2',   '3', 'druid',      'monitor/druid/index',      1, 'C', '0', '0', 'monitor:druid:list',      'druid',         'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'Êý¾Ý¼à¿Ø²Ëµ¥');
insert into sys_menu values('112',  '·þÎñ¼à¿Ø', '2',   '4', 'server',     'monitor/server/index',     1, 'C', '0', '0', 'monitor:server:list',     'server',        'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'·þÎñ¼à¿Ø²Ëµ¥');
insert into sys_menu values('113',  '±íµ¥¹¹½¨', '3',   '1', 'build',      'tool/build/index',         1 ,'C', '0', '0', 'tool:build:list',         'build',         'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'±íµ¥¹¹½¨²Ëµ¥');
insert into sys_menu values('114',  '´úÂëÉú³É', '3',   '2', 'gen',        'tool/gen/index',           1, 'C', '0', '0', 'tool:gen:list',           'code',          'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'´úÂëÉú³É²Ëµ¥');
insert into sys_menu values('115',  'ÏµÍ³½Ó¿Ú', '3',   '3', 'swagger',    'tool/swagger/index',       1, 'C', '0', '0', 'tool:swagger:list',       'swagger',       'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ÏµÍ³½Ó¿Ú²Ëµ¥');
-- Èý¼¶²Ëµ¥
insert into sys_menu values('500',  '²Ù×÷ÈÕÖ¾', '108', '1', 'operlog',    'monitor/operlog/index',    1, 'C', '0', '0', 'monitor:operlog:list',    'form',          'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'²Ù×÷ÈÕÖ¾²Ëµ¥');
insert into sys_menu values('501',  'µÇÂ¼ÈÕÖ¾', '108', '2', 'logininfor', 'monitor/logininfor/index', 1, 'C', '0', '0', 'monitor:logininfor:list', 'logininfor',    'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'µÇÂ¼ÈÕÖ¾²Ëµ¥');
-- ÓÃ»§¹ÜÀí°´Å¥
insert into sys_menu values('1001', 'ÓÃ»§²éÑ¯', '100', '1',  '', '', 1, 'F', '0', '0', 'system:user:query',          '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1002', 'ÓÃ»§ÐÂÔö', '100', '2',  '', '', 1, 'F', '0', '0', 'system:user:add',            '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1003', 'ÓÃ»§ÐÞ¸Ä', '100', '3',  '', '', 1, 'F', '0', '0', 'system:user:edit',           '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1004', 'ÓÃ»§É¾³ý', '100', '4',  '', '', 1, 'F', '0', '0', 'system:user:remove',         '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1005', 'ÓÃ»§µ¼³ö', '100', '5',  '', '', 1, 'F', '0', '0', 'system:user:export',         '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1006', 'ÓÃ»§µ¼Èë', '100', '6',  '', '', 1, 'F', '0', '0', 'system:user:import',         '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1007', 'ÖØÖÃÃÜÂë', '100', '7',  '', '', 1, 'F', '0', '0', 'system:user:resetPwd',       '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
-- ½ÇÉ«¹ÜÀí°´Å¥
insert into sys_menu values('1008', '½ÇÉ«²éÑ¯', '101', '1',  '', '', 1, 'F', '0', '0', 'system:role:query',          '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1009', '½ÇÉ«ÐÂÔö', '101', '2',  '', '', 1, 'F', '0', '0', 'system:role:add',            '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1010', '½ÇÉ«ÐÞ¸Ä', '101', '3',  '', '', 1, 'F', '0', '0', 'system:role:edit',           '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1011', '½ÇÉ«É¾³ý', '101', '4',  '', '', 1, 'F', '0', '0', 'system:role:remove',         '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1012', '½ÇÉ«µ¼³ö', '101', '5',  '', '', 1, 'F', '0', '0', 'system:role:export',         '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
-- ²Ëµ¥¹ÜÀí°´Å¥
insert into sys_menu values('1013', '²Ëµ¥²éÑ¯', '102', '1',  '', '', 1, 'F', '0', '0', 'system:menu:query',          '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1014', '²Ëµ¥ÐÂÔö', '102', '2',  '', '', 1, 'F', '0', '0', 'system:menu:add',            '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1015', '²Ëµ¥ÐÞ¸Ä', '102', '3',  '', '', 1, 'F', '0', '0', 'system:menu:edit',           '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1016', '²Ëµ¥É¾³ý', '102', '4',  '', '', 1, 'F', '0', '0', 'system:menu:remove',         '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
-- ²¿ÃÅ¹ÜÀí°´Å¥
insert into sys_menu values('1017', '²¿ÃÅ²éÑ¯', '103', '1',  '', '', 1, 'F', '0', '0', 'system:dept:query',          '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1018', '²¿ÃÅÐÂÔö', '103', '2',  '', '', 1, 'F', '0', '0', 'system:dept:add',            '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1019', '²¿ÃÅÐÞ¸Ä', '103', '3',  '', '', 1, 'F', '0', '0', 'system:dept:edit',           '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1020', '²¿ÃÅÉ¾³ý', '103', '4',  '', '', 1, 'F', '0', '0', 'system:dept:remove',         '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
-- ¸ÚÎ»¹ÜÀí°´Å¥
insert into sys_menu values('1021', '¸ÚÎ»²éÑ¯', '104', '1',  '', '', 1, 'F', '0', '0', 'system:post:query',          '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1022', '¸ÚÎ»ÐÂÔö', '104', '2',  '', '', 1, 'F', '0', '0', 'system:post:add',            '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1023', '¸ÚÎ»ÐÞ¸Ä', '104', '3',  '', '', 1, 'F', '0', '0', 'system:post:edit',           '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1024', '¸ÚÎ»É¾³ý', '104', '4',  '', '', 1, 'F', '0', '0', 'system:post:remove',         '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1025', '¸ÚÎ»µ¼³ö', '104', '5',  '', '', 1, 'F', '0', '0', 'system:post:export',         '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
-- ×Öµä¹ÜÀí°´Å¥
insert into sys_menu values('1026', '×Öµä²éÑ¯', '105', '1', '#', '', 1, 'F', '0', '0', 'system:dict:query',          '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1027', '×ÖµäÐÂÔö', '105', '2', '#', '', 1, 'F', '0', '0', 'system:dict:add',            '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1028', '×ÖµäÐÞ¸Ä', '105', '3', '#', '', 1, 'F', '0', '0', 'system:dict:edit',           '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1029', '×ÖµäÉ¾³ý', '105', '4', '#', '', 1, 'F', '0', '0', 'system:dict:remove',         '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1030', '×Öµäµ¼³ö', '105', '5', '#', '', 1, 'F', '0', '0', 'system:dict:export',         '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
-- ²ÎÊýÉèÖÃ°´Å¥
insert into sys_menu values('1031', '²ÎÊý²éÑ¯', '106', '1', '#', '', 1, 'F', '0', '0', 'system:config:query',        '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1032', '²ÎÊýÐÂÔö', '106', '2', '#', '', 1, 'F', '0', '0', 'system:config:add',          '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1033', '²ÎÊýÐÞ¸Ä', '106', '3', '#', '', 1, 'F', '0', '0', 'system:config:edit',         '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1034', '²ÎÊýÉ¾³ý', '106', '4', '#', '', 1, 'F', '0', '0', 'system:config:remove',       '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1035', '²ÎÊýµ¼³ö', '106', '5', '#', '', 1, 'F', '0', '0', 'system:config:export',       '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
-- Í¨Öª¹«¸æ°´Å¥
insert into sys_menu values('1036', '¹«¸æ²éÑ¯', '107', '1', '#', '', 1, 'F', '0', '0', 'system:notice:query',        '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1037', '¹«¸æÐÂÔö', '107', '2', '#', '', 1, 'F', '0', '0', 'system:notice:add',          '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1038', '¹«¸æÐÞ¸Ä', '107', '3', '#', '', 1, 'F', '0', '0', 'system:notice:edit',         '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1039', '¹«¸æÉ¾³ý', '107', '4', '#', '', 1, 'F', '0', '0', 'system:notice:remove',       '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
-- ²Ù×÷ÈÕÖ¾°´Å¥
insert into sys_menu values('1040', '²Ù×÷²éÑ¯', '500', '1', '#', '', 1, 'F', '0', '0', 'monitor:operlog:query',      '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1041', '²Ù×÷É¾³ý', '500', '2', '#', '', 1, 'F', '0', '0', 'monitor:operlog:remove',     '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1042', 'ÈÕÖ¾µ¼³ö', '500', '4', '#', '', 1, 'F', '0', '0', 'monitor:operlog:export',     '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
-- µÇÂ¼ÈÕÖ¾°´Å¥
insert into sys_menu values('1043', 'µÇÂ¼²éÑ¯', '501', '1', '#', '', 1, 'F', '0', '0', 'monitor:logininfor:query',   '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1044', 'µÇÂ¼É¾³ý', '501', '2', '#', '', 1, 'F', '0', '0', 'monitor:logininfor:remove',  '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1045', 'ÈÕÖ¾µ¼³ö', '501', '3', '#', '', 1, 'F', '0', '0', 'monitor:logininfor:export',  '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
-- ÔÚÏßÓÃ»§°´Å¥
insert into sys_menu values('1046', 'ÔÚÏß²éÑ¯', '109', '1', '#', '', 1, 'F', '0', '0', 'monitor:online:query',       '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1047', 'ÅúÁ¿Ç¿ÍË', '109', '2', '#', '', 1, 'F', '0', '0', 'monitor:online:batchLogout', '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1048', 'µ¥ÌõÇ¿ÍË', '109', '3', '#', '', 1, 'F', '0', '0', 'monitor:online:forceLogout', '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
-- ¶¨Ê±ÈÎÎñ°´Å¥
insert into sys_menu values('1049', 'ÈÎÎñ²éÑ¯', '110', '1', '#', '', 1, 'F', '0', '0', 'monitor:job:query',          '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1050', 'ÈÎÎñÐÂÔö', '110', '2', '#', '', 1, 'F', '0', '0', 'monitor:job:add',            '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1051', 'ÈÎÎñÐÞ¸Ä', '110', '3', '#', '', 1, 'F', '0', '0', 'monitor:job:edit',           '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1052', 'ÈÎÎñÉ¾³ý', '110', '4', '#', '', 1, 'F', '0', '0', 'monitor:job:remove',         '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1053', '×´Ì¬ÐÞ¸Ä', '110', '5', '#', '', 1, 'F', '0', '0', 'monitor:job:changeStatus',   '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1054', 'ÈÎÎñµ¼³ö', '110', '7', '#', '', 1, 'F', '0', '0', 'monitor:job:export',         '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
-- ´úÂëÉú³É°´Å¥
insert into sys_menu values('1055', 'Éú³É²éÑ¯', '114', '1', '#', '', 1, 'F', '0', '0', 'tool:gen:query',             '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1056', 'Éú³ÉÐÞ¸Ä', '114', '2', '#', '', 1, 'F', '0', '0', 'tool:gen:edit',              '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1057', 'Éú³ÉÉ¾³ý', '114', '3', '#', '', 1, 'F', '0', '0', 'tool:gen:remove',            '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1058', 'µ¼Èë´úÂë', '114', '2', '#', '', 1, 'F', '0', '0', 'tool:gen:import',            '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1059', 'Ô¤ÀÀ´úÂë', '114', '4', '#', '', 1, 'F', '0', '0', 'tool:gen:preview',           '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');
insert into sys_menu values('1060', 'Éú³É´úÂë', '114', '5', '#', '', 1, 'F', '0', '0', 'tool:gen:code',              '#', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'),'');


-- ----------------------------
-- 6¡¢ÓÃ»§ºÍ½ÇÉ«¹ØÁª±í  ÓÃ»§N-1½ÇÉ«
-- ----------------------------
drop table sys_user_role;
create table sys_user_role (
  user_id 	number(20)  not null,
  role_id 	number(20)  not null
);

alter table sys_user_role add constraint pk_sys_user_role primary key (user_id, role_id);

comment on table  sys_user_role              is 'ÓÃ»§ºÍ½ÇÉ«¹ØÁª±í';
comment on column sys_user_role.user_id      is 'ÓÃ»§ID';
comment on column sys_user_role.role_id      is '½ÇÉ«ID';

-- ----------------------------
-- ³õÊ¼»¯-ÓÃ»§ºÍ½ÇÉ«¹ØÁª±íÊý¾Ý
-- ----------------------------
insert into sys_user_role values ('1', '1');
insert into sys_user_role values ('2', '2');


-- ----------------------------
-- 7¡¢½ÇÉ«ºÍ²Ëµ¥¹ØÁª±í  ½ÇÉ«1-N²Ëµ¥
-- ----------------------------
drop table sys_role_menu;
create table sys_role_menu (
  role_id 	number(20)  not null,
  menu_id 	number(20)  not null
);

alter table sys_role_menu add constraint pk_sys_role_menu primary key (role_id, menu_id);

comment on table  sys_role_menu              is '½ÇÉ«ºÍ²Ëµ¥¹ØÁª±í';
comment on column sys_role_menu.role_id      is '½ÇÉ«ID';
comment on column sys_role_menu.menu_id      is '²Ëµ¥ID';

-- ----------------------------
-- ³õÊ¼»¯-½ÇÉ«ºÍ²Ëµ¥¹ØÁª±íÊý¾Ý
-- ----------------------------
insert into sys_role_menu values ('2', '1');
insert into sys_role_menu values ('2', '2');
insert into sys_role_menu values ('2', '3');
insert into sys_role_menu values ('2', '4');
insert into sys_role_menu values ('2', '100');
insert into sys_role_menu values ('2', '101');
insert into sys_role_menu values ('2', '102');
insert into sys_role_menu values ('2', '103');
insert into sys_role_menu values ('2', '104');
insert into sys_role_menu values ('2', '105');
insert into sys_role_menu values ('2', '106');
insert into sys_role_menu values ('2', '107');
insert into sys_role_menu values ('2', '108');
insert into sys_role_menu values ('2', '109');
insert into sys_role_menu values ('2', '110');
insert into sys_role_menu values ('2', '111');
insert into sys_role_menu values ('2', '112');
insert into sys_role_menu values ('2', '113');
insert into sys_role_menu values ('2', '114');
insert into sys_role_menu values ('2', '115');
insert into sys_role_menu values ('2', '500');
insert into sys_role_menu values ('2', '501');
insert into sys_role_menu values ('2', '1000');
insert into sys_role_menu values ('2', '1001');
insert into sys_role_menu values ('2', '1002');
insert into sys_role_menu values ('2', '1003');
insert into sys_role_menu values ('2', '1004');
insert into sys_role_menu values ('2', '1005');
insert into sys_role_menu values ('2', '1006');
insert into sys_role_menu values ('2', '1007');
insert into sys_role_menu values ('2', '1008');
insert into sys_role_menu values ('2', '1009');
insert into sys_role_menu values ('2', '1010');
insert into sys_role_menu values ('2', '1011');
insert into sys_role_menu values ('2', '1012');
insert into sys_role_menu values ('2', '1013');
insert into sys_role_menu values ('2', '1014');
insert into sys_role_menu values ('2', '1015');
insert into sys_role_menu values ('2', '1016');
insert into sys_role_menu values ('2', '1017');
insert into sys_role_menu values ('2', '1018');
insert into sys_role_menu values ('2', '1019');
insert into sys_role_menu values ('2', '1020');
insert into sys_role_menu values ('2', '1021');
insert into sys_role_menu values ('2', '1022');
insert into sys_role_menu values ('2', '1023');
insert into sys_role_menu values ('2', '1024');
insert into sys_role_menu values ('2', '1025');
insert into sys_role_menu values ('2', '1026');
insert into sys_role_menu values ('2', '1027');
insert into sys_role_menu values ('2', '1028');
insert into sys_role_menu values ('2', '1029');
insert into sys_role_menu values ('2', '1030');
insert into sys_role_menu values ('2', '1031');
insert into sys_role_menu values ('2', '1032');
insert into sys_role_menu values ('2', '1033');
insert into sys_role_menu values ('2', '1034');
insert into sys_role_menu values ('2', '1035');
insert into sys_role_menu values ('2', '1036');
insert into sys_role_menu values ('2', '1037');
insert into sys_role_menu values ('2', '1038');
insert into sys_role_menu values ('2', '1039');
insert into sys_role_menu values ('2', '1040');
insert into sys_role_menu values ('2', '1041');
insert into sys_role_menu values ('2', '1042');
insert into sys_role_menu values ('2', '1043');
insert into sys_role_menu values ('2', '1044');
insert into sys_role_menu values ('2', '1045');
insert into sys_role_menu values ('2', '1046');
insert into sys_role_menu values ('2', '1047');
insert into sys_role_menu values ('2', '1048');
insert into sys_role_menu values ('2', '1049');
insert into sys_role_menu values ('2', '1050');
insert into sys_role_menu values ('2', '1051');
insert into sys_role_menu values ('2', '1052');
insert into sys_role_menu values ('2', '1053');
insert into sys_role_menu values ('2', '1054');
insert into sys_role_menu values ('2', '1055');
insert into sys_role_menu values ('2', '1056');
insert into sys_role_menu values ('2', '1057');
insert into sys_role_menu values ('2', '1058');
insert into sys_role_menu values ('2', '1059');
insert into sys_role_menu values ('2', '1060');

-- ----------------------------
-- 8¡¢½ÇÉ«ºÍ²¿ÃÅ¹ØÁª±í  ½ÇÉ«1-N²¿ÃÅ
-- ----------------------------
drop table sys_role_dept;
create table sys_role_dept (
  role_id 	number(20)  not null,
  dept_id 	number(20)  not null
);

alter table sys_role_dept add constraint pk_sys_role_dept primary key (role_id, dept_id);

comment on table  sys_role_dept              is '½ÇÉ«ºÍ²¿ÃÅ¹ØÁª±í';
comment on column sys_role_dept.role_id      is '½ÇÉ«ID';
comment on column sys_role_dept.dept_id      is '²¿ÃÅID';

-- ----------------------------
-- ³õÊ¼»¯-½ÇÉ«ºÍ²¿ÃÅ¹ØÁª±íÊý¾Ý
-- ----------------------------
insert into sys_role_dept values ('2', '100');
insert into sys_role_dept values ('2', '101');
insert into sys_role_dept values ('2', '105');

-- ----------------------------
-- 9¡¢ÓÃ»§Óë¸ÚÎ»¹ØÁª±í  ÓÃ»§1-N¸ÚÎ»
-- ----------------------------
drop table sys_user_post;
create table sys_user_post
(
	user_id number(20)  not null,
	post_id number(20)  not null
);

alter table sys_user_post add constraint pk_sys_user_post primary key (user_id, post_id);

comment on table  sys_user_post              is 'ÓÃ»§Óë¸ÚÎ»¹ØÁª±í';
comment on column sys_user_post.user_id      is 'ÓÃ»§ID';
comment on column sys_user_post.post_id      is '¸ÚÎ»ID';

-- ----------------------------
-- ³õÊ¼»¯-ÓÃ»§Óë¸ÚÎ»¹ØÁª±íÊý¾Ý
-- ----------------------------
insert into sys_user_post values ('1', '1');
insert into sys_user_post values ('2', '2');


-- ----------------------------
-- 10¡¢²Ù×÷ÈÕÖ¾¼ÇÂ¼
-- ----------------------------
drop sequence seq_sys_oper_log;
create sequence seq_sys_oper_log
 increment by 1
 start with 100
 nomaxvalue
 nominvalue
 cache 20;

drop table sys_oper_log ;
create table sys_oper_log (
  oper_id           number(20)      not null ,
  title             varchar2(50)    default '',
  business_type     number(2)       default 0,
  method            varchar2(100)   default '',
  request_method    varchar(10)     default '',
  operator_type     number(1)       default 0,
  oper_name         varchar2(50)    default '',
  dept_name         varchar2(50)    default '',
  oper_url          varchar2(255) 	default '',
  oper_ip           varchar2(50)    default '',
  oper_location     varchar2(255)   default '',
  oper_param        varchar2(2000)  default '',
  json_result       varchar2(2000)  default '',
  status            number(1)       default 0,
  error_msg         varchar2(2000)  default '' ,
  oper_time         date
);

alter table sys_oper_log add constraint pk_sys_oper_log primary key (oper_id);

comment on table  sys_oper_log                is '²Ù×÷ÈÕÖ¾¼ÇÂ¼';
comment on column sys_oper_log.oper_id        is 'ÈÕÖ¾Ö÷¼üseq_sys_oper_log.nextval';
comment on column sys_oper_log.title          is 'Ä£¿é±êÌâ';
comment on column sys_oper_log.business_type  is 'ÒµÎñÀàÐÍ£¨0ÆäËü 1ÐÂÔö 2ÐÞ¸Ä 3É¾³ý£©';
comment on column sys_oper_log.method         is '·½·¨Ãû³Æ';
comment on column sys_oper_log.request_method is 'ÇëÇó·½Ê½';
comment on column sys_oper_log.operator_type  is '²Ù×÷Àà±ð£¨0ÆäËü 1ºóÌ¨ÓÃ»§ 2ÊÖ»ú¶ËÓÃ»§£©';
comment on column sys_oper_log.oper_name      is '²Ù×÷ÈËÔ±';
comment on column sys_oper_log.dept_name      is '²¿ÃÅÃû³Æ';
comment on column sys_oper_log.oper_url       is 'ÇëÇóURL';
comment on column sys_oper_log.oper_ip        is 'Ö÷»úµØÖ·';
comment on column sys_oper_log.oper_location  is '²Ù×÷µØµã';
comment on column sys_oper_log.oper_param     is 'ÇëÇó²ÎÊý';
comment on column sys_oper_log.json_result    is '·µ»Ø²ÎÊý';
comment on column sys_oper_log.status         is '²Ù×÷×´Ì¬£¨0Õý³£ 1Òì³££©';
comment on column sys_oper_log.error_msg      is '´íÎóÏûÏ¢';
comment on column sys_oper_log.oper_time      is '²Ù×÷Ê±¼ä';


-- ----------------------------
-- 11¡¢×ÖµäÀàÐÍ±í
-- ----------------------------
drop sequence seq_sys_dict_type;
create sequence seq_sys_dict_type
 increment by 1
 start with 100
 nomaxvalue
 nominvalue
 cache 20;

drop table sys_dict_type;
create table sys_dict_type
(
  dict_id          number(20)      not null,
  dict_name        varchar2(100)   default '',
  dict_type        varchar2(100)   default '',
  status           char(1)         default '0',
  create_by        varchar2(64)    default '',
  create_time      date,
  update_by        varchar2(64)    default '',
  update_time      date,
  remark           varchar2(500)   default null
);

alter table sys_dict_type add constraint pk_sys_dict_type primary key (dict_id);


create unique index sys_dict_type_index1 on sys_dict_type (dict_type);
comment on table  sys_dict_type               is '×ÖµäÀàÐÍ±í';
comment on column sys_dict_type.dict_id       is '×ÖµäÖ÷¼üseq_sys_dict_type.nextval';
comment on column sys_dict_type.dict_name     is '×ÖµäÃû³Æ';
comment on column sys_dict_type.dict_type     is '×ÖµäÀàÐÍ';
comment on column sys_dict_type.status        is '×´Ì¬£¨0Õý³£ 1Í£ÓÃ£©';
comment on column sys_dict_type.create_by     is '´´½¨Õß';
comment on column sys_dict_type.create_time   is '´´½¨Ê±¼ä';
comment on column sys_dict_type.update_by     is '¸üÐÂÕß';
comment on column sys_dict_type.update_time   is '¸üÐÂÊ±¼ä';
comment on column sys_dict_type.remark        is '±¸×¢';

insert into sys_dict_type values(1,  'ÓÃ»§ÐÔ±ð', 'sys_user_sex',        '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÓÃ»§ÐÔ±ðÁÐ±í');
insert into sys_dict_type values(2,  '²Ëµ¥×´Ì¬', 'sys_show_hide',       '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '²Ëµ¥×´Ì¬ÁÐ±í');
insert into sys_dict_type values(3,  'ÏµÍ³¿ª¹Ø', 'sys_normal_disable',  '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÏµÍ³¿ª¹ØÁÐ±í');
insert into sys_dict_type values(4,  'ÈÎÎñ×´Ì¬', 'sys_job_status',      '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÈÎÎñ×´Ì¬ÁÐ±í');
insert into sys_dict_type values(5,  'ÈÎÎñ·Ö×é', 'sys_job_group',       '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÈÎÎñ·Ö×éÁÐ±í');
insert into sys_dict_type values(6,  'ÏµÍ³ÊÇ·ñ', 'sys_yes_no',          '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÏµÍ³ÊÇ·ñÁÐ±í');
insert into sys_dict_type values(7,  'Í¨ÖªÀàÐÍ', 'sys_notice_type',     '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'Í¨ÖªÀàÐÍÁÐ±í');
insert into sys_dict_type values(8,  'Í¨Öª×´Ì¬', 'sys_notice_status',   '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'Í¨Öª×´Ì¬ÁÐ±í');
insert into sys_dict_type values(9,  '²Ù×÷ÀàÐÍ', 'sys_oper_type',       '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '²Ù×÷ÀàÐÍÁÐ±í');
insert into sys_dict_type values(10, 'ÏµÍ³×´Ì¬', 'sys_common_status',   '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'µÇÂ¼×´Ì¬ÁÐ±í');


-- ----------------------------
-- 12¡¢×ÖµäÊý¾Ý±í
-- ----------------------------
drop sequence seq_sys_dict_data;
create sequence seq_sys_dict_data
 increment by 1
 start with 100
 nomaxvalue
 nominvalue
 cache 20;

drop table sys_dict_data;
create table sys_dict_data
(
  dict_code        number(20)      not null,
  dict_sort        number(4)       default 0,
  dict_label       varchar2(100)   default '',
  dict_value       varchar2(100)   default '',
  dict_type        varchar2(100)   default '',
  css_class        varchar2(100)   default null,
  list_class       varchar2(100)   default null,
  is_default       char(1)         default 'N',
  status           char(1)         default '0',
  create_by        varchar2(64)    default '',
  create_time      date,
  update_by        varchar2(64)    default '',
  update_time      date,
  remark           varchar2(500)   default null
);

alter table sys_dict_data add constraint pk_sys_dict_data primary key (dict_code);

comment on table  sys_dict_data               is '×ÖµäÊý¾Ý±í';
comment on column sys_dict_data.dict_code     is '×ÖµäÖ÷¼üseq_sys_dict_data.nextval';
comment on column sys_dict_data.dict_sort     is '×ÖµäÅÅÐò';
comment on column sys_dict_data.dict_label    is '×Öµä±êÇ©';
comment on column sys_dict_data.dict_value    is '×Öµä¼üÖµ';
comment on column sys_dict_data.dict_type     is '×ÖµäÀàÐÍ';
comment on column sys_dict_data.css_class     is 'ÑùÊ½ÊôÐÔ£¨ÆäËûÑùÊ½À©Õ¹£©';
comment on column sys_dict_data.list_class    is '±í¸ñ»ØÏÔÑùÊ½';
comment on column sys_dict_data.is_default    is 'ÊÇ·ñÄ¬ÈÏ£¨YÊÇ N·ñ£©';
comment on column sys_dict_data.status        is '×´Ì¬£¨0Õý³£ 1Í£ÓÃ£©';
comment on column sys_dict_data.create_by     is '´´½¨Õß';
comment on column sys_dict_data.create_time   is '´´½¨Ê±¼ä';
comment on column sys_dict_data.update_by     is '¸üÐÂÕß';
comment on column sys_dict_data.update_time   is '¸üÐÂÊ±¼ä';
comment on column sys_dict_data.remark        is '±¸×¢';

insert into sys_dict_data values(1,  1,  'ÄÐ',       '0',       'sys_user_sex',        '',   '',        'Y', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÐÔ±ðÄÐ');
insert into sys_dict_data values(2,  2,  'Å®',       '1',       'sys_user_sex',        '',   '',        'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÐÔ±ðÅ®');
insert into sys_dict_data values(3,  3,  'Î´Öª',     '2',       'sys_user_sex',        '',   '',        'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÐÔ±ðÎ´Öª');
insert into sys_dict_data values(4,  1,  'ÏÔÊ¾',     '0',       'sys_show_hide',       '',   'primary', 'Y', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÏÔÊ¾²Ëµ¥');
insert into sys_dict_data values(5,  2,  'Òþ²Ø',     '1',       'sys_show_hide',       '',   'danger',  'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'Òþ²Ø²Ëµ¥');
insert into sys_dict_data values(6,  1,  'Õý³£',     '0',       'sys_normal_disable',  '',   'primary', 'Y', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'Õý³£×´Ì¬');
insert into sys_dict_data values(7,  2,  'Í£ÓÃ',     '1',       'sys_normal_disable',  '',   'danger',  'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'Í£ÓÃ×´Ì¬');
insert into sys_dict_data values(8,  1,  'Õý³£',     '0',       'sys_job_status',      '',   'primary', 'Y', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'Õý³£×´Ì¬');
insert into sys_dict_data values(9,  2,  'ÔÝÍ£',     '1',       'sys_job_status',      '',   'danger',  'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'Í£ÓÃ×´Ì¬');
insert into sys_dict_data values(10, 1,  'Ä¬ÈÏ',     'DEFAULT', 'sys_job_group',       '',   '',        'Y', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'Ä¬ÈÏ·Ö×é');
insert into sys_dict_data values(11, 2,  'ÏµÍ³',     'SYSTEM',  'sys_job_group',       '',   '',        'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÏµÍ³·Ö×é');
insert into sys_dict_data values(12, 1,  'ÊÇ',       'Y',       'sys_yes_no',          '',   'primary', 'Y', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÏµÍ³Ä¬ÈÏÊÇ');
insert into sys_dict_data values(13, 2,  '·ñ',       'N',       'sys_yes_no',          '',   'danger',  'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÏµÍ³Ä¬ÈÏ·ñ');
insert into sys_dict_data values(14, 1,  'Í¨Öª',     '1',       'sys_notice_type',     '',   'warning', 'Y', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'Í¨Öª');
insert into sys_dict_data values(15, 2,  '¹«¸æ',     '2',       'sys_notice_type',     '',   'success', 'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '¹«¸æ');
insert into sys_dict_data values(16, 1,  'Õý³£',     '0',       'sys_notice_status',   '',   'primary', 'Y', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'Õý³£×´Ì¬');
insert into sys_dict_data values(17, 2,  '¹Ø±Õ',     '1',       'sys_notice_status',   '',   'danger',  'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '¹Ø±Õ×´Ì¬');
insert into sys_dict_data values(18, 99, 'ÆäËû',     '0',       'sys_oper_type',       '',   'info',    'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÆäËû²Ù×÷');
insert into sys_dict_data values(19, 1,  'ÐÂÔö',     '1',       'sys_oper_type',       '',   'info',    'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÐÂÔö²Ù×÷');
insert into sys_dict_data values(20, 2,  'ÐÞ¸Ä',     '2',       'sys_oper_type',       '',   'info',    'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÐÞ¸Ä²Ù×÷');
insert into sys_dict_data values(21, 3,  'É¾³ý',     '3',       'sys_oper_type',       '',   'danger',  'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'É¾³ý²Ù×÷');
insert into sys_dict_data values(22, 4,  'ÊÚÈ¨',     '4',       'sys_oper_type',       '',   'primary', 'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÊÚÈ¨²Ù×÷');
insert into sys_dict_data values(23, 5,  'µ¼³ö',     '5',       'sys_oper_type',       '',   'warning', 'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'µ¼³ö²Ù×÷');
insert into sys_dict_data values(24, 6,  'µ¼Èë',     '6',       'sys_oper_type',       '',   'warning', 'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'µ¼Èë²Ù×÷');
insert into sys_dict_data values(25, 7,  'Ç¿ÍË',     '7',       'sys_oper_type',       '',   'danger',  'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'Ç¿ÍË²Ù×÷');
insert into sys_dict_data values(26, 8,  'Éú³É´úÂë', '8',       'sys_oper_type',       '',   'warning', 'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'Éú³É²Ù×÷');
insert into sys_dict_data values(27, 9,  'Çå¿ÕÊý¾Ý', '9',       'sys_oper_type',       '',   'danger',  'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'Çå¿Õ²Ù×÷');
insert into sys_dict_data values(28, 1,  '³É¹¦',     '0',       'sys_common_status',   '',   'primary', 'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'Õý³£×´Ì¬');
insert into sys_dict_data values(29, 2,  'Ê§°Ü',     '1',       'sys_common_status',   '',   'danger',  'N', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'Í£ÓÃ×´Ì¬');


-- ----------------------------
-- 13¡¢²ÎÊýÅäÖÃ±í
-- ----------------------------
drop sequence seq_sys_config;
create sequence seq_sys_config
 increment by 1
 start with 100
 nomaxvalue
 nominvalue
 cache 20;

drop table sys_config;
create table sys_config (
  config_id         number(20)     not null,
  config_name       varchar2(100)  default '',
  config_key        varchar2(100)  default '',
  config_value      varchar2(100)  default '',
  config_type       char(1)        default 'N',
  create_by         varchar2(64)   default '',
  create_time       date,
  update_by         varchar2(64)   default '',
  update_time       date,
  remark            varchar2(500)  default null
);
alter table sys_config add constraint pk_sys_config primary key (config_id);

comment on table  sys_config               is '²ÎÊýÅäÖÃ±í';
comment on column sys_config.config_id     is '²ÎÊýÖ÷¼üseq_sys_config.nextval';
comment on column sys_config.config_name   is '²ÎÊýÃû³Æ';
comment on column sys_config.config_key    is '²ÎÊý¼üÃû';
comment on column sys_config.config_value  is '²ÎÊý¼üÖµ';
comment on column sys_config.config_type   is 'ÏµÍ³ÄÚÖÃ£¨YÊÇ N·ñ£©';
comment on column sys_config.create_by     is '´´½¨Õß';
comment on column sys_config.create_time   is '´´½¨Ê±¼ä';
comment on column sys_config.update_by     is '¸üÐÂÕß';
comment on column sys_config.update_time   is '¸üÐÂÊ±¼ä';
comment on column sys_config.remark        is '±¸×¢';

insert into sys_config values(1, 'Ö÷¿ò¼ÜÒ³-Ä¬ÈÏÆ¤·ôÑùÊ½Ãû³Æ',     'sys.index.skinName',       'skin-blue',     'Y', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'À¶É« skin-blue¡¢ÂÌÉ« skin-green¡¢×ÏÉ« skin-purple¡¢ºìÉ« skin-red¡¢»ÆÉ« skin-yellow');
insert into sys_config values(2, 'ÓÃ»§¹ÜÀí-ÕËºÅ³õÊ¼ÃÜÂë',         'sys.user.initPassword',    '123456',        'Y', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '³õÊ¼»¯ÃÜÂë 123456');
insert into sys_config values(3, 'Ö÷¿ò¼ÜÒ³-²à±ßÀ¸Ö÷Ìâ',           'sys.index.sideTheme',      'theme-dark',    'Y', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÉîºÚÖ÷Ìâtheme-dark£¬Ç³É«Ö÷Ìâtheme-light£¬ÉîÀ¶Ö÷Ìâtheme-blue');
insert into sys_config values(4, 'ÕËºÅ×ÔÖú-ÊÇ·ñ¿ªÆôÓÃ»§×¢²á¹¦ÄÜ', 'sys.account.registerUser', 'false',         'Y', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ÊÇ·ñ¿ªÆô×¢²áÓÃ»§¹¦ÄÜ');


-- ----------------------------
-- 14¡¢ÏµÍ³·ÃÎÊ¼ÇÂ¼
-- ----------------------------
drop sequence seq_sys_logininfor;
create sequence seq_sys_logininfor
 increment by 1
 start with 100
 nomaxvalue
 nominvalue
 cache 20;

drop  table sys_logininfor;
create table sys_logininfor (
  info_id         number(20)     not null,
  user_name       varchar2(50)   default '',
  ipaddr          varchar2(50)   default '',
  login_location  varchar2(255)  default '',
  browser         varchar2(50)   default '',
  os              varchar2(50)   default '',
  status          char(1)        default '0',
  msg             varchar2(255)  default '',
  login_time      date
);

alter table sys_logininfor add constraint pk_sys_logininfor primary key (info_id);

comment on table  sys_logininfor                is 'ÏµÍ³·ÃÎÊ¼ÇÂ¼';
comment on column sys_logininfor.info_id        is '·ÃÎÊÖ÷¼üseq_seq_sys_logininfor.nextval';
comment on column sys_logininfor.user_name      is 'µÇÂ¼ÕËºÅ';
comment on column sys_logininfor.ipaddr         is 'µÇÂ¼IPµØÖ·';
comment on column sys_logininfor.login_location is 'µÇÂ¼µØµã';
comment on column sys_logininfor.browser        is 'ä¯ÀÀÆ÷ÀàÐÍ';
comment on column sys_logininfor.os             is '²Ù×÷ÏµÍ³';
comment on column sys_logininfor.status         is 'µÇÂ¼×´Ì¬£¨0³É¹¦ 1Ê§°Ü£©';
comment on column sys_logininfor.msg            is 'ÌáÊ¾ÏûÏ¢';
comment on column sys_logininfor.login_time     is '·ÃÎÊÊ±¼ä';


-- ----------------------------
-- 15¡¢¶¨Ê±ÈÎÎñµ÷¶È±í
-- ----------------------------
drop  sequence seq_sys_job;
create sequence seq_sys_job
 increment by 1
 start with 100
 nomaxvalue
 nominvalue
 cache 20;

drop table sys_job;
create table sys_job (
  job_id              number(20)     not null,
  job_name            varchar2(64)   default '',
  job_group           varchar2(64)   default '',
  invoke_target       varchar2(500)  not null ,
  cron_expression     varchar2(255)  default '',
  misfire_policy      varchar2(20)   default '3',
  concurrent          char(1)        default '1',
  status              char(1)        default '0',
  create_by           varchar2(64)   default '',
  create_time         date,
  update_by           varchar2(64)   default '',
  update_time         date,
  remark              varchar2(500)  default ''
);

alter table sys_job add constraint pk_sys_job primary key (job_id, job_name, job_group);

comment on table  sys_job                   is '¶¨Ê±ÈÎÎñµ÷¶È±í';
comment on column sys_job.job_id            is 'ÈÎÎñÖ÷¼üseq_sys_job.nextval';
comment on column sys_job.job_name          is 'ÈÎÎñÃû³Æ';
comment on column sys_job.job_group         is 'ÈÎÎñ×éÃû';
comment on column sys_job.invoke_target     is 'µ÷ÓÃÄ¿±ê×Ö·û´®';
comment on column sys_job.cron_expression   is 'cronÖ´ÐÐ±í´ïÊ½';
comment on column sys_job.misfire_policy    is '¼Æ»®Ö´ÐÐ´íÎó²ßÂÔ£¨1Á¢¼´Ö´ÐÐ 2Ö´ÐÐÒ»´Î 3·ÅÆúÖ´ÐÐ£©';
comment on column sys_job.concurrent        is 'ÊÇ·ñ²¢·¢Ö´ÐÐ£¨0ÔÊÐí 1½ûÖ¹£©';
comment on column sys_job.status            is '×´Ì¬£¨0Õý³£ 1ÔÝÍ££©';
comment on column sys_job.create_by         is '´´½¨Õß';
comment on column sys_job.create_time       is '´´½¨Ê±¼ä';
comment on column sys_job.update_by         is '¸üÐÂÕß';
comment on column sys_job.update_time       is '¸üÐÂÊ±¼ä';
comment on column sys_job.remark            is '±¸×¢ÐÅÏ¢';

insert into sys_job values(1, 'ÏµÍ³Ä¬ÈÏ£¨ÎÞ²Î£©', 'DEFAULT', 'ryTask.ryNoParams',        '0/10 * * * * ?', '3', '1', '1', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '');
insert into sys_job values(2, 'ÏµÍ³Ä¬ÈÏ£¨ÓÐ²Î£©', 'DEFAULT', 'ryTask.ryParams(''ry'')',  '0/15 * * * * ?', '3', '1', '1', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '');
insert into sys_job values(3, 'ÏµÍ³Ä¬ÈÏ£¨¶à²Î£©', 'DEFAULT', 'ryTask.ryMultipleParams(''ry'', true, 2000L, 316.50D, 100)',  '0/20 * * * * ?', '3', '1', '1', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '');


-- ----------------------------
-- 16¡¢¶¨Ê±ÈÎÎñµ÷¶ÈÈÕÖ¾±í
-- ----------------------------
drop sequence seq_sys_job_log;
create sequence seq_sys_job_log
 increment by 1
 start with 1
 nomaxvalue
 nominvalue
 cache 20;

drop table sys_job_log;
create table sys_job_log (
  job_log_id          number(20)       not null,
  job_name            varchar2(64)     not null,
  job_group           varchar2(64)     not null,
  invoke_target       varchar2(500)    not null ,
  job_message         varchar2(500),
  status              char(1)          default '0',
  exception_info      varchar2(2000)   default '',
  create_time         date
);

alter table sys_job_log add constraint pk_sys_job_log primary key (job_log_id);

comment on table  sys_job_log                   is '¶¨Ê±ÈÎÎñµ÷¶ÈÈÕÖ¾±í';
comment on column sys_job_log.job_log_id        is 'ÈÕÖ¾Ö÷¼üseq_sys_job_log.nextval';
comment on column sys_job_log.job_name          is 'ÈÎÎñÃû³Æ';
comment on column sys_job_log.job_group         is 'ÈÎÎñ×éÃû';
comment on column sys_job_log.invoke_target     is 'µ÷ÓÃÄ¿±ê×Ö·û´®';
comment on column sys_job_log.job_message       is 'ÈÕÖ¾ÐÅÏ¢';
comment on column sys_job_log.status            is 'Ö´ÐÐ×´Ì¬£¨0Õý³£ 1Ê§°Ü£©';
comment on column sys_job_log.exception_info    is 'Òì³£ÐÅÏ¢';
comment on column sys_job_log.create_time       is '´´½¨Ê±¼ä';


-- ----------------------------
-- 17¡¢Í¨Öª¹«¸æ±í
-- ----------------------------
drop sequence seq_sys_notice;
create sequence seq_sys_notice
 increment by 1
 start with 100
 nomaxvalue
 nominvalue
 cache 20;

drop  table sys_notice;
create table sys_notice (
  notice_id         number(20)      not null,
  notice_title      varchar2(50)    not null,
  notice_type       char(1)         not null,
  notice_content    varchar2(2000)  default null,
  status            char(1)         default '0',
  create_by         varchar2(64)    default '',
  create_time       date,
  update_by         varchar2(64)    default '',
  update_time       date,
  remark            varchar2(255)   default null
);

alter table sys_notice add constraint pk_sys_notice primary key (notice_id);

comment on table  sys_notice                   is 'Í¨Öª¹«¸æ±í';
comment on column sys_notice.notice_id         is '¹«¸æÖ÷¼üseq_sys_notice.nextval';
comment on column sys_notice.notice_title      is '¹«¸æ±êÌâ';
comment on column sys_notice.notice_type       is '¹«¸æÀàÐÍ£¨1Í¨Öª 2¹«¸æ£©';
comment on column sys_notice.notice_content    is '¹«¸æÄÚÈÝ';
comment on column sys_notice.status            is '¹«¸æ×´Ì¬£¨0Õý³£ 1¹Ø±Õ£©';
comment on column sys_notice.create_by         is '´´½¨Õß';
comment on column sys_notice.create_time       is '´´½¨Ê±¼ä';
comment on column sys_notice.update_by         is '¸üÐÂÕß';
comment on column sys_notice.update_time       is '¸üÐÂÊ±¼ä';
comment on column sys_notice.remark            is '±¸×¢';

-- ----------------------------
-- ³õÊ¼»¯-¹«¸æÐÅÏ¢±íÊý¾Ý
-- ----------------------------
insert into sys_notice values('1', 'ÎÂÜ°ÌáÐÑ£º2018-07-01 ÈôÒÀÐÂ°æ±¾·¢²¼À²', '2', 'ÐÂ°æ±¾ÄÚÈÝ', '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '¹ÜÀíÔ±');
insert into sys_notice values('2', 'Î¬»¤Í¨Öª£º2018-07-01 ÈôÒÀÏµÍ³Áè³¿Î¬»¤', '1', 'Î¬»¤ÄÚÈÝ',   '0', 'admin', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), 'ry', TO_DATE('2018-03-16 11-33-00', 'YYYY-MM-DD HH24:MI:SS'), '¹ÜÀíÔ±');
commit;


-- ----------------------------
-- 18¡¢´úÂëÉú³ÉÒµÎñ±í
-- ----------------------------
drop sequence seq_gen_table;
create sequence seq_gen_table
 increment by 1
 start with 100
 nomaxvalue
 nominvalue
 cache 20;

drop  table gen_table ;
create table gen_table (
  table_id          number(20)       not null,
  table_name        varchar2(200)    default '',
  table_comment     varchar2(500)    default '',
  class_name        varchar2(100)    default '',
  tpl_category      varchar2(200)    default 'crud',
  package_name      varchar2(100),
  module_name       varchar2(30),
  business_name     varchar2(30),
  function_name     varchar2(50),
  function_author   varchar2(50),
  gen_type          char(1) default '0',
  gen_path          varchar2(200)    default '/',
  options           varchar2(1000),
  create_by         varchar2(64)     default '',
  create_time       date,
  update_by         varchar2(64)     default '',
  update_time       date,
  remark            varchar2(500)    default null
);

alter table gen_table add constraint pk_gen_table primary key (table_id);

comment on table  gen_table                  is '´úÂëÉú³ÉÒµÎñ±í';
comment on column gen_table.table_id         is '±àºÅ';
comment on column gen_table.table_name       is '±íÃû³Æ';
comment on column gen_table.table_comment    is '±íÃèÊö';
comment on column gen_table.class_name       is 'ÊµÌåÀàÃû³Æ';
comment on column gen_table.tpl_category     is 'Ê¹ÓÃµÄÄ£°å£¨crudµ¥±í²Ù×÷ treeÊ÷±í²Ù×÷£©';
comment on column gen_table.package_name     is 'Éú³É°üÂ·¾¶';
comment on column gen_table.module_name      is 'Éú³ÉÄ£¿éÃû';
comment on column gen_table.business_name    is 'Éú³ÉÒµÎñÃû';
comment on column gen_table.function_name    is 'Éú³É¹¦ÄÜÃû';
comment on column gen_table.function_author  is 'Éú³É¹¦ÄÜ×÷Õß';
comment on column gen_table.gen_type          is 'Éú³É´úÂë·½Ê½£¨0zipÑ¹Ëõ°ü 1×Ô¶¨ÒåÂ·¾¶£©';
comment on column gen_table.gen_path          is 'Éú³ÉÂ·¾¶£¨²»ÌîÄ¬ÈÏÏîÄ¿Â·¾¶£©';
comment on column gen_table.options          is 'ÆäËüÉú³ÉÑ¡Ïî';
comment on column gen_table.create_by        is '´´½¨Õß';
comment on column gen_table.create_time      is '´´½¨Ê±¼ä';
comment on column gen_table.update_by        is '¸üÐÂÕß';
comment on column gen_table.update_time      is '¸üÐÂÊ±¼ä';
comment on column gen_table.remark           is '±¸×¢';


-- ----------------------------
-- 19¡¢´úÂëÉú³ÉÒµÎñ±í×Ö¶Î
-- ----------------------------
drop sequence seq_gen_table_column;
create sequence seq_gen_table_column
 increment by 1
 start with 100
 nomaxvalue
 nominvalue
 cache 20;


drop table gen_table_column ;
create table gen_table_column (
  column_id         number(20)      not null,
  table_id          varchar2(64),
  column_name       varchar2(200),
  column_comment    varchar2(500),
  column_type       varchar2(100),
  java_type         varchar2(500),
  java_field        varchar2(200),
  is_pk             char(1),
  is_increment      char(1),
  is_required       char(1),
  is_insert         char(1),
  is_edit           char(1),
  is_list           char(1),
  is_query          char(1),
  query_type        varchar(200)    default 'EQ',
  html_type         varchar(200),
  dict_type         varchar(200)    default '',
  sort              number(4),
  create_by         varchar(64)     default '',
  create_time       date ,
  update_by         varchar(64)     default '',
  update_time       date
);

alter table gen_table_column add constraint [REDACTED]primary key (column_id);

comment on table  gen_table_column                is '´úÂëÉú³ÉÒµÎñ±í×Ö¶Î';
comment on column gen_table_column.column_id      is '±àºÅ';
comment on column gen_table_column.table_id       is '¹éÊô±í±àºÅ';
comment on column gen_table_column.column_name    is 'ÁÐÃû³Æ';
comment on column gen_table_column.column_comment is 'ÁÐÃèÊö';
comment on column gen_table_column.column_type    is 'ÁÐÀàÐÍ';
comment on column gen_table_column.java_type      is 'JAVAÀàÐÍ';
comment on column gen_table_column.java_field     is 'JAVA×Ö¶ÎÃû';
comment on column gen_table_column.is_pk          is 'ÊÇ·ñÖ÷¼ü£¨1ÊÇ£©';
comment on column gen_table_column.is_increment   is 'ÊÇ·ñ×ÔÔö£¨1ÊÇ£©';
comment on column gen_table_column.is_required    is 'ÊÇ·ñ±ØÌî£¨1ÊÇ£©';
comment on column gen_table_column.is_insert      is 'ÊÇ·ñÎª²åÈë×Ö¶Î£¨1ÊÇ£©';
comment on column gen_table_column.is_edit        is 'ÊÇ·ñ±à¼­×Ö¶Î£¨1ÊÇ£©';
comment on column gen_table_column.is_list        is 'ÊÇ·ñÁÐ±í×Ö¶Î£¨1ÊÇ£©';
comment on column gen_table_column.is_query       is 'ÊÇ·ñ²éÑ¯×Ö¶Î£¨1ÊÇ£©';
comment on column gen_table_column.query_type     is '²éÑ¯·½Ê½£¨µÈÓÚ¡¢²»µÈÓÚ¡¢´óÓÚ¡¢Ð¡ÓÚ¡¢·¶Î§£©';
comment on column gen_table_column.html_type      is 'ÏÔÊ¾ÀàÐÍ£¨ÎÄ±¾¿ò¡¢ÎÄ±¾Óò¡¢ÏÂÀ­¿ò¡¢¸´Ñ¡¿ò¡¢µ¥Ñ¡¿ò¡¢ÈÕÆÚ¿Ø¼þ£©';
comment on column gen_table_column.dict_type      is '×ÖµäÀàÐÍ';
comment on column gen_table_column.sort           is 'ÅÅÐò';
comment on column gen_table_column.create_by      is '´´½¨Õß';
comment on column gen_table_column.create_time    is '´´½¨Ê±¼ä';
comment on column gen_table_column.update_by      is '¸üÐÂÕß';
comment on column gen_table_column.update_time    is '¸üÐÂÊ±¼ä';


-- ----------------------------
-- º¯Êý £¬´úÌæmysqlµÄfind_in_set
-- ÀýÈç£º select * from sys_dept where FIND_IN_SET (101,ancestors) <> 0
-- mysql¿É½ÓÊÜ0»òÆäËünumber×öÎªwhere Ìõ¼þ£¬oracleÖ»½ÓÊÜ±í´ïÊ½×öÎªwhere Ìõ¼þ
-- ----------------------------
create or replace function find_in_set(arg1 in varchar2,arg2 in varchar)
return number is Result number;
begin
select instr(','||arg2||',' , ','||arg1||',') into Result from dual;
return(Result);
end find_in_set;
