# Two different user roles

**URL:** <https://community.thunkable.com/t/two-different-user-roles/1267170>\
**Category:** Questions about Thunkable X\
**Created:** [May 6, 2021, 4:48pm UTC](https://community.thunkable.com/t/two-different-user-roles/1267170 "2021-05-06T16:48:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![esukhanova929bd](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/esukhanova929bd/32/102866_2.png) [@esukhanova929bd](https://community.thunkable.com/u/esukhanova929bd)\
**Post date:** [May 6, 2021, 4:48pm UTC](https://community.thunkable.com/t/two-different-user-roles/1267170/1 "2021-05-06T16:48:38Z")

</div>

Hi,

I’ve got an app with two types of users - restaurants and consumers. Restaurants upload the data about the available foods and consumers view the nearest available foods. What’s the best way to define these kinds of user roles in thunkable?

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [May 6, 2021, 6:23pm UTC](https://community.thunkable.com/t/two-different-user-roles/1267170/2 "2021-05-06T18:23:19Z")

</div>

Your consumers might or might not need to be logged in to your app. Your restaurants definitely do, since they’re going to upload data. Firebase sign-in could be a good option for restaurants. You could put a button in the app that opens the restaurant sign-in screen and takes restaurant owners to their pages to add data after they sign in. Alternately, you could build a separate process (a second app, or another method) that takes data from restaurants and puts it in firebase, where your Thunkable app retrieves it.

---

<div class="post-metadata">

**Author:** ![esukhanova929bd](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/esukhanova929bd/32/102866_2.png) [@esukhanova929bd](https://community.thunkable.com/u/esukhanova929bd)\
**Post date:** [May 6, 2021, 7:46pm UTC](https://community.thunkable.com/t/two-different-user-roles/1267170/3 "2021-05-06T19:46:32Z")

</div>

thank you! does that mean it’s possible to link two apps together and send data from one to another?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 6, 2021, 8:28pm UTC](https://community.thunkable.com/t/two-different-user-roles/1267170/4 "2021-05-06T20:28:49Z")

</div>

Most definitely.

Realistically every single app you will ever create in your entire life could probably share the same database. You might run out of space or server capacity or just get charged for all the usage without ever running out but yes. One back end could talk to 1000 apps and 1000 apps equally could speak to their own discreet back end.

Share what you want to keep private what you will

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [May 6, 2021, 9:16pm UTC](https://community.thunkable.com/t/two-different-user-roles/1267170/5 "2021-05-06T21:16:24Z")

</div>

Not directly from one app to another, but they can share a common data source, so basically yes. 🙂

---

<div class="post-metadata">

**Author:** ![esukhanova929bd](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/esukhanova929bd/32/102866_2.png) [@esukhanova929bd](https://community.thunkable.com/u/esukhanova929bd)\
**Post date:** [May 7, 2021, 8:35am UTC](https://community.thunkable.com/t/two-different-user-roles/1267170/6 "2021-05-07T08:35:28Z")

</div>

Thank you both! Now I just have to figure out the dynamic data 🙂 I’m coming here from Bubble, so quite a few different things to get used to!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:22pm UTC](https://community.thunkable.com/t/two-different-user-roles/1267170/7 "2024-11-08T13:22:41Z")

</div>


