- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 126
Closed
Milestone
Description
        model M1 {
            id String @id @default(uuid())
            value Int
            m2 M2?
            @@allow('read', true)
            @@allow('update', value > 0 && future().m2.m3?[value > 0])
        }
        model M2 {
            id String @id @default(uuid())
            m1 M1 @relation(fields: [m1Id], references:[id])
            m1Id String @unique
            m3 M3[]
            @@allow('all', true)
        }
        model M3 {
            id String @id @default(uuid())
            value Int
            m2 M2 @relation(fields: [m2Id], references:[id])
            m2Id String
            @@allow('all', true)
        }Metadata
Metadata
Assignees
Labels
No labels