Hi, what is the best practice to keep track of ord...
# prisma-whats-new
a
Hi, what is the best practice to keep track of ordering/positioning/ranking in relations? Example:
Copy code
type List @model {
  id: ID! @isUnique
  name: String!
  tasks: [Task!]! @relation(name: "ListOnTask")
}

type Task @model {
  id: ID! @isUnique
  list: [List!]! @relation(name: "ListOnTask")
  name: String!
}
Given I can have one task in multiple lists how can I define order/position/rank of the task within each list separately?
n
the best practice is to create a third type, that stores the task, the list, and the position