https://supertokens.com/ logo
Title
a

Arne

10/31/2022, 6:48 AM
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

nkshah2

10/31/2022, 6:51 AM
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

rp

10/31/2022, 7:13 AM
actually, you can give a custom schema
your postgresql connection uri can have a schema in it which will be used