Does prisma support generated columns (postgres)? ...
# orm-help
g
Does prisma support generated columns (postgres)? for example, if i have a
user
model which has
wallet_balance(int)
and `bank_balance(int)`and I want to have a generated column saying
total_balance = wallet_balance + bank_balance
?
r
@Garrick Chippendale 👋 You could try adding the generated syntax to the column created in the migration
.sql
file using
--create-only
and then apply the migration. The
schema.prisma
file won’t be able to show you that at the moment.