webiny-js icon indicating copy to clipboard operation
webiny-js copied to clipboard

Headless CMS content models - option for unique integer

Open plsalvado opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Certain field types like Text can be defined as Unique in the system, but not Integers.

There are use cases such storing employee IDs, or book ISBNs (or FWIW any integer based UUID) - where integers should be treated as unique in the system.

Describe the solution you'd like.

Include a "Unique" option in the Integer field type. Right now these are the only options available.

Screenshot 2022-04-11 at 15 59 59

Describe alternatives you've considered.

As an alternative one can define the field as a Unique Text and use a regex pattern that only accepts integers.

plsalvado avatar Apr 11 '22 15:04 plsalvado

This issue is stale because it was opened 120 days with no activity. Remove the "stale-issue" label or leave a comment to revive the issue. Otherwise, it will be closed in 7 days.

webiny-bot avatar Aug 10 '22 07:08 webiny-bot