Hello Hanxuan,
If i understood your question correct, you want to restrict the duplicate entry store in database.
you can constraint it on entity level with validation rule tab.
or
on save button, you can call microflow and check whether same value exist in database if “yes” don’t save it again and throw error message. if “NO” continue save the data.
Thanks