In mariadb got error ``` Member ✖ The field `w...
# orm-help
j
In mariadb got error
Copy code
Member
    ✖ The field `webhardPay` must provide a relation link mode. Either specify it on this field or the opposite field. Valid values are: `@relation(link: TABLE)`,`@relation(link: INLINE)`

  WebhardPay
    ✖ The field `member` must provide a relation link mode. Either specify it on this field or the opposite field. Valid values are: `@relation(link: TABLE)`,`@relation(link: INLINE)`
h
You will need to provide a link method. That will decide whether Prisma will create a link table or a inline foreign key. Use the following datamodel:
Copy code
type Member {
  webhardPay: [WebhardPay] @relation(link: INLINE, onDelete: CASCADE)
}

type WebhardPay @db(name: "mmsv_webhard_pay") {
  member: Member @relation(onDelete: SET_NULL)
}