Oh it looks lke you have to manually add views as ...
# orm-help
k
Oh it looks lke you have to manually add views as a model to your `schema.prisma`https://www.prisma.io/docs/guides/database/advanced-database-tasks/sql-views-postgres#5-manually-add-the-draft-view-to-the-prisma-schema can anyone confirm if thats stil the case (its not able to pull the views)? The documentation says
Note that as you evolve the application, this process can be repeated for an indefinite number of times.
referring to the commands
prisma db pull
and
prisma generate
I wonder how that affects workflow when you want to pull again at a later date, does the manually added models (in this case the views) get deleted and you have to manually readd them? --- I just tried this
prisma db pull
will remove any manual models (views) you add to schema.prisma 😢
r
@Kay Khan 👋 We have a setup for views in the docs here.