When self-hosting with a Postgres backend, can I i...
# support-questions-legacy
a
When self-hosting with a Postgres backend, can I instruct Supertokens to create its tables in a specific schema (i.e. supertokens)?By default, which schema does Supertokens use?
n
Hi @Arne, You cannot give it custom schemas but if you want to store some additional information you can use the UserMetadata feature (https://supertokens.com/docs/passwordless/common-customizations/usermetadata/about) The docs have a section for the database schemas, for example for passwordless you can refer to: https://supertokens.com/docs/passwordless/pre-built-ui/setup/database-setup/postgresql
r
actually, you can give a custom schema
your postgresql connection uri can have a schema in it which will be used
2 Views