datasource mysql {
  provider = "mysql"
  url      = env("MYSQL_URL")
}

generator photon {
  provider = "photonjs"
}

model Author {
  id    String  @default(cuid()) @id @unique
  email String  @unique
  name  String?
  posts Post[]
}

model Post {
  id        String   @default(cuid()) @id @unique
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
  published Boolean
  title     String
  content   String?
  author    Author?
}