# Bubble Database setup

**URL:** <https://forum.bubble.io/t/bubble-database-setup/243799>\
**Category:** Database\
**Created:** [January 27, 2023, 3:00pm UTC](https://forum.bubble.io/t/bubble-database-setup/243799 "2023-01-27T15:00:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andyfultoncoaching](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@andyfultoncoaching](https://forum.bubble.io/u/andyfultoncoaching)\
**Post date:** [January 27, 2023, 3:00pm UTC](https://forum.bubble.io/t/bubble-database-setup/243799/1 "2023-01-27T15:00:59Z")

</div>

Hello all,

I have been playing about with Bubble for a while now as wanted to learn something new.

I have an idea which I’m currently working on but need help with the setup of the database.

I am building a sports attendance tracker so have the following tables -

User  
Team  
Players  
Fixture  
Attendance

What is the best way to link the tables for optimisation?

Would it be -

User - Team  
Team - players  
Team - Fixtures  
Fixtures - Attendance

Or would this be all wrong?

Any help would be great for a newish user

---

<div class="post-metadata">

**Author:** ![dbevan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dbevan/32/157741_2.png) [@dbevan](https://forum.bubble.io/u/dbevan)\
**Post date:** [January 27, 2023, 3:30pm UTC](https://forum.bubble.io/t/bubble-database-setup/243799/2 "2023-01-27T15:30:19Z")

</div>

I’m assuming based on your explanation (linked fields only):

USER table

- Team (or List of Teams)

TEAM table

- List of Users (Admin)
- List of Players
- List of Fixtures

PLAYERS table

- Team
- User (if applicable)

FIXTURE table

- List of Teams (or Team 1 and Team 2)
- Attendance

ATTENDANCE table

- Fixture
