I'm just getting started with using Vapor and Fluent. I have created models, inserted those into the database, and performing queries. However, I would like to specify that one of my model properties is unique across the table (but not the
How can this be achieved? I am currently relying on
Model automatically creating the table schemas. I'm struggling to find where I can intercept it to augment a unique constraint.
I'm using PostgreSQL if that makes any difference.