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