definition user {} definition document { relation reader: user | user:* relation writer: user permission read = reader + writer permission write = writer }