From a460b1dd1bf61572d615b37a185b6f5d51713fa5 Mon Sep 17 00:00:00 2001 From: huangyw <1207046171@qq.com> Date: Wed, 9 Oct 2024 10:52:08 +0800 Subject: [PATCH] =?UTF-8?q?release:=20=E6=B7=BB=E5=8A=A0index?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luoo_user/src/main/resources/sql/20240904.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/luoo_user/src/main/resources/sql/20240904.sql b/luoo_user/src/main/resources/sql/20240904.sql index caf998a..1e40810 100644 --- a/luoo_user/src/main/resources/sql/20240904.sql +++ b/luoo_user/src/main/resources/sql/20240904.sql @@ -15,3 +15,7 @@ create index tb_lottery_user_id_index create index tb_lottery_user_user_id_index on tb_lottery_user (user_id); + +alter table tb_lottery_user + add constraint tb_lottery_user_pk + unique (lottery_id, user_id); \ No newline at end of file