Skip to content

0.9.0

Compare
Choose a tag to compare
@marcjulian marcjulian released this 04 Apr 06:46
· 29 commits to main since this release

Features

  • primitive list: add support for primitive list (30)
  • add map db name option (50ef8cf), #18
generator dbml {
  provider    = "node ./dist/generator.js"
  mapToDbSchema = "true" // πŸ‘ˆ  enable mapToDbSchema with the new option
}

model User {
  id        Int      @id @default(autoincrement())
  createdAt DateTime @default(now()) 
  updatedAt DateTime @updatedAt
  email     String   @unique
  name      String? 

  @@map("user") // πŸ‘ˆ  this will be used in the dbml schema
}

Credits

Thanks to @PabloSzx for adding primitive list support.