FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Can I create new tables in the FusionAuth database?

    Scheduled Pinned Locked Moved Solved Q&A
    2 Posts 2 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      heitordanilo2003
      last edited by

      Currently, I need to relate my users with different schedules. To achieve this, I am creating schedules in another database and relating them with IDs. However, when I need to retrieve the data, I have to perform a select query on two different databases.

      Therefore, I would like to know if it's possible to create new tables and establish relationships in the FusionAuth database to simplify data retrieval and increase performance.

      danD 1 Reply Last reply
      Reply Quote 1
      • danD
        dan @heitordanilo2003
        last edited by

        @heitordanilo2003

        Welcome to the FusionAuth community!

        It isn't possible to create new tables inside FusionAuth. However, you have a few options within the current supported extension points.

        • You can correlate between two different databases, as you currently are.
        • You can use the user.data and user.registration.data fields. These are arbitrary JSON objects and you can define your own schema inside them. They are searchable.
        • You can use Entity Management. Entity Management lets you define your own entities (which also have data fields) and relationships between users and entities. This is paid functionality that requires a license key.

        Hope that helps.
        Dan

        --
        FusionAuth - Identity Without Constraints
        https://fusionauth.io

        1 Reply Last reply
        Reply Quote 0
        • H heitordanilo2003 has marked this topic as solved on
        • danD dan moved this topic from Q&A on
        • danD dan moved this topic from Frequently Asked Questions (FAQ) on

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post