Prisma: Always put createdAt, updatedAt fields on top in introspection result after @id

Created on 28 Jan 2020  路  3Comments  路  Source: prisma/prisma

Related issue: https://github.com/prisma/prisma2/issues/1364

Detecting created and updated at fields might need some heuristics. I suggest moving the following field names on top after the @id field, if it exists.

createdAt, updatedAt, created_at, updated_at

kinimprovement introspection introspection-configuration

Most helpful comment

We now use the order of the columns in the database as the source of truth. You can control the order in the PSL via that.

All 3 comments

I personally like to put the timestamps at the end of my tables 馃し鈥嶁檧

Internal note: dropping from current sprint

We now use the order of the columns in the database as the source of truth. You can control the order in the PSL via that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

janpio picture janpio  路  3Comments

divyenduz picture divyenduz  路  3Comments

steebchen picture steebchen  路  3Comments

zzyyzz1992 picture zzyyzz1992  路  3Comments

SameerChorge94 picture SameerChorge94  路  3Comments