Kay Khan
07/01/2022, 10:56 AMmodel Contract {
id String @id @default(auto()) @map("_id") @db.ObjectId
address String @unique
active Boolean
last_fetch DateTime
}
I expect that if i insert a colletion with the same address it should fail? becuase of "@unique"
But i am able to insert 2 contracts with the same addressKay Khan
07/01/2022, 10:59 AMdb push
, not entirely sure why, i thought migrations were nto handled in mongodb