# Schema for external database

**URL:** <https://community.auth0.com/t/schema-for-external-database/107455>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [May 20, 2023, 9:07pm UTC](https://community.auth0.com/t/schema-for-external-database/107455 "2023-05-20T21:07:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pritisingh51201](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pritisingh51201/32/47422_2.png) [@pritisingh51201](https://community.auth0.com/u/pritisingh51201)\
**Post date:** [May 20, 2023, 9:07pm UTC](https://community.auth0.com/t/schema-for-external-database/107455/1 "2023-05-20T21:07:00Z")

</div>

Hey Guys, So I have used Auth0 (gmail auth) in my React project. Now I want to store it in an external database. But I want to customise the schema of the database as I don’t just want details present in “users” that we get upon logging in, but I want to add more details that are not present. How do I customise the schema of my external database?

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [November 30, 2023, 9:07pm UTC](https://community.auth0.com/t/schema-for-external-database/107455/3 "2023-11-30T21:07:47Z")

</div>

Hi @pritisingh51201

Welcome to the Auth0 Community!

Customizing the database schema will rely on properly designing it with keeping in mind that for database to work properly with Auth0 need to have appropriate fields

> Make sure that your database has the appropriate fields to store user profiles attributes, such as `id` , `nickname` , `email` , and `password` . To learn about Auth0’s user profile schema, read [Normalized User Profiles](https://auth0.com/docs/manage-users/user-accounts/user-profiles/normalized-user-profiles). To learn more about updating user profiles, read [Update User Profiles Using Your Database](https://auth0.com/docs/manage-users/user-accounts/user-profiles/update-user-profiles-using-your-database).

You can read more about custom database [here](https://auth0.com/docs/authenticate/database-connections/custom-db/create-db-connection)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 14, 2023, 9:08pm UTC](https://community.auth0.com/t/schema-for-external-database/107455/4 "2023-12-14T21:08:42Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
