diff --git a/service/system/pom.xml b/service/system/pom.xml
index 5843d8a..0b490c7 100644
--- a/service/system/pom.xml
+++ b/service/system/pom.xml
@@ -18,4 +18,10 @@
4567
+
+
+ org.liquibase
+ liquibase-core
+
+
diff --git a/service/system/src/main/resources/config/application.yml b/service/system/src/main/resources/config/application.yml
index 8e7d599..24b174d 100644
--- a/service/system/src/main/resources/config/application.yml
+++ b/service/system/src/main/resources/config/application.yml
@@ -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
diff --git a/service/system/src/main/resources/db/changelog/db.changelog-master.yaml b/service/system/src/main/resources/db/changelog/db.changelog-master.yaml
new file mode 100644
index 0000000..062d441
--- /dev/null
+++ b/service/system/src/main/resources/db/changelog/db.changelog-master.yaml
@@ -0,0 +1,3 @@
+databaseChangeLog:
+ - includeAll:
+ path: db/changelog/sql
diff --git a/service/system/src/main/resources/db/changelog/sql/dict.sql b/service/system/src/main/resources/db/changelog/sql/dict.sql
new file mode 100644
index 0000000..fa331fc
--- /dev/null
+++ b/service/system/src/main/resources/db/changelog/sql/dict.sql
@@ -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 '字典';
+