Custom Input - how to structure

My goal here is to allow my user-base to create a set of inputs they wish to collect from their customers. This would be text fields and booleans with a descriptive text for each so the customers know what they're filling out.

What I do not know is how to go about this type of setup for the back-end.

I think it should be its own table which references an account. We'll call it "application" for example here.

What would I use as field types for the table?

How do I structure the setup so that the user-base can create 5 fields or 10 fields, or any other number they wish, along with selecting the types of fields?

5 replies