Sounds like we are trying to populate a "Select" component, within a form, with the Enum types we have on a table, and then use this form to create a new row for that table.
Here is how we can do this:
I'm using this "moody_users" table for the example:
The "mood" column is type Enum with the following values:
First, create a query to get the Enum types from the table:
Note: we need to transform the results to an array to easily populate our "Select" component.
Then, add the query as a "Data source" to the "Select" component:
Note: Select the "Mapped Mode" to easily connect the query to the component.
Finally, create a "Resource query" to "Insert a record" to the table, using GUI mode is the easiest way: