# With Velo code, is it possible to add new fields (including text) to items in a database?

**URL:** <https://forum.wixstudio.com/t/with-velo-code-is-it-possible-to-add-new-fields-including-text-to-items-in-a-database/56303>\
**Category:** Ask the community\
**Tags:** cms, code, question\
**Created:** [February 11, 2024, 9:09am UTC](https://forum.wixstudio.com/t/with-velo-code-is-it-possible-to-add-new-fields-including-text-to-items-in-a-database/56303 "2024-02-11T09:09:38Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [February 20, 2024, 5:28pm UTC](https://forum.wixstudio.com/t/with-velo-code-is-it-possible-to-add-new-fields-including-text-to-items-in-a-database/56303/11 "2024-02-20T17:28:00Z")

</div>

**No this is surely not what you want!!!**

Better way → using either…

a) **ARRAY-FIELDS**  
…or even better, using…  
b) **OBJECT-FIELDS**

This way you can store for each of ROW (LINE) all messages related to a USER.

You surely don’t want to create an infinite DATABASE creating infinite COLUMNS!!!

Your issue has a lot of similarity to the following…

> [@Creating a Questionnaire with repeater, images, and checkboxes/radio buttons](https://forum.wixstudio.com/t/creating-a-questionnaire-with-repeater-images-and-checkboxes-radio-buttons/56442/6):
>
> Yes —\> OBJECT into an ARRAY !!! CORRECT! RESULT → OBJECT-ARRAY —\> [{data:‘tt’},{data:‘ff’},{data:‘dd’},{data:‘aa’}] But the same way you can put the ARRAY again into an OBJECT, You can do this infinite. Also works vice versa. → Will depend on your data and how you want to store it inside database. As i already said, you first have to structure your database, before you start to code. Make clear → how your database will look like at the end.

At the end you also can create a second database → for MESSAGES \<— and include them in your QUERY…

[https://www.wix.com/velo/reference/wix-data/wixdataquery/include](https://www.wix.com/velo/reference/wix-data/wixdataquery/include)

---

_[View the full topic](https://forum.wixstudio.com/t/with-velo-code-is-it-possible-to-add-new-fields-including-text-to-items-in-a-database/56303)._
