supabase-community / seed

Automatically seed your database with production-like dummy data based on your schema for local development and testing.
MIT License
468 stars 17 forks source link

improvements(adapters): `prisma.schema` is used to define the seed client aliases #140

Closed jgoux closed 6 months ago

jgoux commented 6 months ago

Fixes S-2090 and S-2028

In this PR:

linear[bot] commented 6 months ago
S-2090 Analyse the `schema.prisma` and use it to configure seedConfig.alias

[image.png](https://uploads.linear.app/829dfb09-cf0d-4576-95be-cdb6a6e066dd/86cc86b5-8498-48d3-add1-c4f2fe32cbf3/835b72b7-063b-4e2e-8f06-50ff203343e4)

S-2028 Rework config/projectConfig

It was ported 1:1 from the old repo and there is a lot of needless logic in it.