# Admin User - Company - Employee Users (Database Structure)

**URL:** <https://forum.bubble.io/t/admin-user-company-employee-users-database-structure/128897>\
**Category:** Database\
**Created:** [January 4, 2021, 9:25pm UTC](https://forum.bubble.io/t/admin-user-company-employee-users-database-structure/128897 "2021-01-04T21:25:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![olowusamson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/olowusamson/32/80978_2.png) [@olowusamson](https://forum.bubble.io/u/olowusamson)\
**Post date:** [January 4, 2021, 9:25pm UTC](https://forum.bubble.io/t/admin-user-company-employee-users-database-structure/128897/1 "2021-01-04T21:25:27Z")

</div>

I would really appreciate some help. I can’t seem to wrap my mind around my data structure. I am creating an app for Admin users to manage a company that has employee users.  
Only admin users can sign up, create a company , and add employee users  
Employees users can login and be redirected to their landing page.  
A typical example:

Admin User \> Username  
\> photo  
\>company  
company\> company name  
\> company logo  
\> company address  
\> employee user(s)  
employee user \> name  
\>age  
\>department  
\>skills

How do i structure my database AND workflow to achieve the tasks

SO FAR:  
**My Database**

 ![D1](https://us1.discourse-cdn.com/bubble/original/3X/8/7/87d68b32452d70db2e3e79fdca1da3793605847b.jpeg) ![D2](https://us1.discourse-cdn.com/bubble/original/3X/5/8/5860722437a3a1a28a0eca5984e6bd1ab603b473.jpeg) ![D3](https://us1.discourse-cdn.com/bubble/original/3X/9/e/9ecb150fc6bfacaac12c12ef01ba9a9573903853.jpeg)

**My workflows**  
Sign the user up and login  
 ![1](https://us1.discourse-cdn.com/bubble/original/3X/c/9/c9adbd2d6b9b9d1a53f325ce08fee2e0c012a10a.jpeg) ![2](https://us1.discourse-cdn.com/bubble/original/3X/c/6/c671199329a011d242aeaf972e4af94e397907dd.jpeg)  
Create a new company and make changes to current users company  
 ![3](https://us1.discourse-cdn.com/bubble/original/3X/4/2/428eed851173a7cc6063ffd39bcfb33b5c47756d.jpeg) ![4](https://us1.discourse-cdn.com/bubble/original/3X/b/1/b1b7b398881c469546c5374c8054c297e274c794.jpeg)  
(The user gets signed up and the company is created, but the company is not added to the current user)  
I’m wobbled up and don’t know how to fix this . Kindly help. Thanks

---

<div class="post-metadata">

**Author:** ![browneyes104](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@browneyes104](https://forum.bubble.io/u/browneyes104)\
**Post date:** [February 7, 2021, 5:26pm UTC](https://forum.bubble.io/t/admin-user-company-employee-users-database-structure/128897/2 "2021-02-07T17:26:16Z")

</div>

I’m struggling with something similar. Have you found a solution?

---

<div class="post-metadata">

**Author:** ![olowusamson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/olowusamson/32/80978_2.png) [@olowusamson](https://forum.bubble.io/u/olowusamson)\
**Post date:** [February 16, 2021, 3:53pm UTC](https://forum.bubble.io/t/admin-user-company-employee-users-database-structure/128897/3 "2021-02-16T15:53:46Z")

</div>

Yes i did

---

<div class="post-metadata">

**Author:** ![melon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/melon/32/31427_2.png) [@melon](https://forum.bubble.io/u/melon)\
**Post date:** [February 16, 2021, 3:58pm UTC](https://forum.bubble.io/t/admin-user-company-employee-users-database-structure/128897/4 "2021-02-16T15:58:19Z")

</div>

Make changes to the current user then add or Link the previously made company to a field in the user database

**User**

- Name
- Ager
- Linked Company → List of Companies (Add here)
