Join Slack
Powered by
Does anyone know if I can make arrays in the datam...
# orm-help
m
Max Ast
01/02/2019, 12:48 PM
Does anyone know if I can make arrays in the datamodel unique? In this example, I want every room to have a set of allowed domains (e.g.
prisma.io
and
prisma.com
) and these domains must not be used by other rooms
-.txt
f
fgreinus
01/02/2019, 1:03 PM
To do so you would have to define the relation from Domain -> Room as 1-n. So that the relation there is a Room, not a list of rooms.
m
Max Ast
01/02/2019, 9:06 PM
good point, thanks 🙂
3
Views
Open in Slack
Previous
Next