forked from rzdata/demo-empty
字典功能 #2
@ -18,4 +18,10 @@
|
|||||||
<app.port>4567</app.port>
|
<app.port>4567</app.port>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.liquibase</groupId>
|
||||||
|
<artifactId>liquibase-core</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
@ -19,3 +19,5 @@ spring:
|
|||||||
maximum-pool-size: 20
|
maximum-pool-size: 20
|
||||||
idle-timeout: 30000
|
idle-timeout: 30000
|
||||||
max-lifetime: 1800000
|
max-lifetime: 1800000
|
||||||
|
liquibase:
|
||||||
|
change-log: classpath:/db/changelog/db.changelog-master.yaml
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
databaseChangeLog:
|
||||||
|
- includeAll:
|
||||||
|
path: db/changelog/sql
|
13
service/system/src/main/resources/db/changelog/sql/dict.sql
Normal file
13
service/system/src/main/resources/db/changelog/sql/dict.sql
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
create table dict
|
||||||
|
(
|
||||||
|
id varchar(64) not null comment '字典主键',
|
||||||
|
label varchar(255) not null comment '字典标签',
|
||||||
|
value varchar(255) not null comment '字典键值',
|
||||||
|
type varchar(255) not null comment '字典类型',
|
||||||
|
sort int default 1 not null comment '字典排序',
|
||||||
|
disabled bool default false not null comment '是否停用',
|
||||||
|
parent_id varchar(64) default 0 not null comment '父级字典主键',
|
||||||
|
constraint table_name_pk primary key (id),
|
||||||
|
constraint table_name_uk_type_value unique (type, value)
|
||||||
|
) comment '字典';
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user