wangting
2025-01-15 3c4babccb9de2107a0ca4d6a3e9582e672a23edc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
-- 图标库表
-- Create table
create table PLICON
(
    oid     VARCHAR2(64) not null,
    name    VARCHAR2(128),
    content CLOB,
    type    VARCHAR2(20),
    groups  VARCHAR2(500)
)
    tablespace MPM550_TEST
  pctfree 10
  initrans 1
  maxtrans 255
  storage
  (
    initial 64K
    next 1M
    minextents 1
    maxextents unlimited
  );
-- Add comments to the columns
comment on column PLICON.name
  is '图标名称';
comment on column PLICON.content
  is '图标svg内容';
comment on column PLICON.type
  is '图标类型。svg,png等';
comment on column PLICON.groups
  is '图标分组。多个用逗号分割。';
-- Create/Recreate indexes
create index PK_ICON_NAME on PLICON (NAME);
-- Create/Recreate primary, unique and foreign key constraints
alter table PLICON
    add constraint PK_ICON primary key (OID);
 
 
--用户配置表
-- Create table
create table PLUSERCONFIG
(
    oid      VARCHAR2(64) not null,
    name     VARCHAR2(64),
    type     VARCHAR2(64),
    content  CLOB,
    userid   VARCHAR2(20),
    username VARCHAR2(64)
);
-- Add comments to the columns
comment on column PLUSERCONFIG.name
  is '配置名称';
comment on column PLUSERCONFIG.type
  is '用户配置类型:home:首页配置,search:全局搜索';
comment on column PLUSERCONFIG.content
  is '用户配置内容。json格式';
comment on column PLUSERCONFIG.userid
  is '用户账号';
comment on column PLUSERCONFIG.username
  is '用户名称';
-- Create/Recreate indexes
create index PK_USERCONFIG_NAME on PLUSERCONFIG (NAME);
create index PK_USERCONFIG_NAME_TYPE on PLUSERCONFIG (TYPE, NAME);
create index PK_USERCONFIG_TYPE on PLUSERCONFIG (TYPE);
-- Create/Recreate primary, unique and foreign key constraints
alter table PLUSERCONFIG add constraint PK_USERCONFIG primary key (OID);