Copyright ©
2022- basebox GmbH, all rights reserved.
Licensed to be used in conjunction with basebox, only.
Licensed to be used in conjunction with basebox, only.
@bb_owned
Syntax\ Owned:\
type
ObjectType@bb_owned
{
\ ObjectFields\}
The @bb_owned
directive tells the compiler that the object type is an owned object. This would included the .ownerId
column in the corresponding database table which would indicate an owner for each record in the table.
Note that only the user that owns a record or a user that is explicitly given access to this user's details can query or modify a specific owned record.
This example tells the compiler that any records in the Patient object/table willhave an owned. In this case it could likely be the logged in user that owns the record. The compiler will create a.ownerId
column in the database and, when an patient record is inserted into the database, it will also add the id of the IdP user that created the entry (i.e. the logged in user).
Last update:
2023-11-14