diff --git a/docker-compose.yaml b/docker-compose.yaml index 4ca10a7..e2032a6 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,4 +1,4 @@ -name: lanhu +name: lanhu-platform services: postgres: diff --git a/scripts/sql/fill.sql b/scripts/sql/fill.sql new file mode 100644 index 0000000..4ec1a38 --- /dev/null +++ b/scripts/sql/fill.sql @@ -0,0 +1,12 @@ +-- ==================== +-- region 填充数据 +-- ==================== + +insert into client ( + client_id, client_secret, redirect_uri, spec, name, type +) +values ( + 'web', '$2a$10$Ss12mXQgpYyo1CKIZ3URouDm.Lc2KcYJzsvEK2PTIXlv6fHQht45a', '', 3, 'web', 1 +); + +-- endregion diff --git a/scripts/sql/init.sql b/scripts/sql/init.sql index 4700451..6224dba 100644 --- a/scripts/sql/init.sql +++ b/scripts/sql/init.sql @@ -1059,16 +1059,3 @@ alter table coupon add constraint fk_coupon_user_id foreign key (user_id) references "user" (id) on delete cascade; -- endregion - --- ==================== --- region 填充数据 --- ==================== - -insert into client ( - client_id, client_secret, redirect_uri, spec, name, type -) -values ( - 'web', '$2a$10$Ss12mXQgpYyo1CKIZ3URouDm.Lc2KcYJzsvEK2PTIXlv6fHQht45a', '', 3, 'web', 1 -); - --- endregion