字典功能 #5

Closed
jiangdingxuan wants to merge 9 commits from rzdata:feature/dict into main
4 changed files with 24 additions and 0 deletions
Showing only changes of commit a4315b8f6f - Show all commits

View File

@ -18,4 +18,10 @@
<app.port>4567</app.port>
</properties>
<dependencies>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -19,3 +19,5 @@ spring:
maximum-pool-size: 20
idle-timeout: 30000
max-lifetime: 1800000
liquibase:
change-log: classpath:/db/changelog/db.changelog-master.yaml

View File

@ -0,0 +1,3 @@
databaseChangeLog:
- includeAll:
path: db/changelog/sql

View 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 '字典';