# Create a database with an action

**URL:** <https://community.glideapps.com/t/create-a-database-with-an-action/74338>\
**Category:** Ask for Help\
**Created:** [June 23, 2024, 11:27pm UTC](https://community.glideapps.com/t/create-a-database-with-an-action/74338 "2024-06-23T23:27:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noa\_Moulaoui](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/noa_moulaoui/32/70062_2.png) [@Noa\_Moulaoui](https://community.glideapps.com/u/Noa_Moulaoui)\
**Post date:** [June 23, 2024, 11:27pm UTC](https://community.glideapps.com/t/create-a-database-with-an-action/74338/1 "2024-06-23T23:27:48Z")

</div>

Hello, I want to create a discussion group system, for that I saw that you need a database per discussion. I want to make sure that each user can create his group and therefore his database. Can we create a database with an action?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [June 23, 2024, 11:30pm UTC](https://community.glideapps.com/t/create-a-database-with-an-action/74338/2 "2024-06-23T23:30:36Z")

</div>

What do you mean by “database per discussion”? When you say one’s group, do you mean like a group chat? A structure like this would suffice.

**Groups**

| RowID | Group Name | Owner ID |
| --- | --- | --- |
| G001 | Test A | O001 |
| G002 | Test B | O002 |

**Group Messages**

| RowID | Group ID | Message Owner ID | Message | Timestamp |
| --- | --- | --- | --- | --- |
| M001 | G001 | O001 | Hello everyone! | 2024-06-23T23:30:00Z |

Then create a multiple relation from the Groups table to the Group Messages table, linking the rowID to Group Messages \> Group ID.
