Use ENUM in array of objects
You have a few options,


You can just use CHECK conditions if it's on one table's jsonb column
CREATE TABLE with the possible values and set it as an fkey.
Reduce that jsonb to something more logical in the app, or in the db. Create a function such that f(jsonb)=&gt;k and store k on the table, or possibly as an ENUM