Skip to content

enum path error #115

@MinJungHyun

Description

@MinJungHyun
  1. add code schema.prisma
  2. start:dev
  3. enum path error
model Place {
  id   Int    @id @default(autoincrement())
  name String

  stamps Stamp[]
}

model Stamp {
  id       Int      @id @default(autoincrement())
  count    String
  mealType MealType @default(breakfast)

  place   Place? @relation(fields: [placeId], references: [id])
  placeId Int?
}

enum MealType {
  breakfast
  lunch
  dinner
  night
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions