tweak(rnd): Move to the PG within Supabase (#8085)

* move to supabase pg instance

* remove postgres and bind supabase port

* Updated setup
- Switched db name to postgres to work with prisma studio
- Added platform schema
- Added Market-migartions
- bound prisma studio port

* remove studio port

* updated .env

* updated readmes

---------

Co-authored-by: SwiftyOS <craigswift13@gmail.com>
This commit is contained in:
Aarushi
2024-09-23 14:04:26 +01:00
committed by GitHub
parent c533044cdc
commit 88e278b736
6 changed files with 53 additions and 56 deletions

View File

@@ -42,13 +42,10 @@ This is useful when running on docker so you can copy the secrets into the conta
## Database selection
### SQLite
By default, the server uses SQLite as the database. SQLite is a file-based database that is easy to set up and use. However, it is not recommended for production usecases where auth is required because that subsystem requires Postgres.
### PostgreSQL
For production use, it is recommended to use PostgreSQL as the database. You will swap the commands you use to generate and run prisma to the following
We use a Supabase PostgreSQL as the database. You will swap the commands you use to generate and run prisma to the following
```bash
poetry run prisma generate --schema postgres/schema.prisma