Consistency in ACID means that every transaction moves the database from one valid state to another valid state without breaking the rules and logic of the system.
When it comes to implementing Consistency, the most effective approach is to move as many rules as possible to the database level instead of keeping them in the business logic layer.
For example, instead of validating data in the service layer, we can move the validation into Constraints or Triggers.
The main thing to remember is that the most reliable way to ensure Consistency is to enforce rules at the data level. That said, overusing native DB tools is not always a good idea, because it makes the system more complex. That is why in real life, data consistency is always about компроміси between simplicity and reliability.