@ -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);