Unique integer fields

Hi!

I would love to be able to set Integer Number fields to be unique within models.

My use case is for synchronising records with an external database, which uses an integer ID.

Any chance of implementing this as a feature? :blush:

Thanks!
Andrew

Hey @av,

That makes total sense :slight_smile: Let’s leave this feature request open and hope it gets some votes.

In the meantime, as a workaround, you can get a similar effect by using a single-string text field with a uniqueness validation and a custom regex like:

^[1-9]\d*$

That should match positive integers without leading zeros:

1 Like