Join Slack
Powered by
Do you guys add native types to every field? If no...
# prisma-migrate
d
Daniell
01/31/2021, 2:42 PM
Do you guys add native types to every field? If not, when do you not add them?
d
do4gr
01/31/2021, 3:14 PM
if you're fine with the defaults prisma picks you dont need them
do4gr
01/31/2021, 3:15 PM
On Postgres String maps to text by default. But if you're sure the content is always 10 characters you could use Char(10) as a native type.
d
Daniell
01/31/2021, 3:22 PM
I see
Open in Slack
Previous
Next