Properties
NAME | TYPE | DESCRIPTION |
$id | string | Membership ID. |
$createdAt | integer | Membership creation date in Unix timestamp. |
$updatedAt | integer | Membership update date in Unix timestamp. |
userId | string | User ID. |
userName | string | User name. |
userEmail | string | User email address. |
teamId | string | Team ID. |
teamName | string | Team name. |
invited | integer | Date, the user has been invited to join the team in Unix timestamp. |
joined | integer | Date, the user has accepted the invitation to join the team in Unix timestamp. |
confirm | boolean | User confirmation status, true if the user has joined the team or false otherwise. |
roles | array | User list of roles |
Example
JSON
{
"$id": "5e5ea5c16897e",
"$createdAt": 1592981250,
"$updatedAt": 1592981250,
"userId": "5e5ea5c16897e",
"userName": "John Doe",
"userEmail": "john@appwrite.io",
"teamId": "5e5ea5c16897e",
"teamName": "VIP",
"invited": 1592981250,
"joined": 1592981250,
"confirm": false,
"roles": "admin"
}
JSON
{
"_id": "5e5ea5c16897e",
"_createdAt": 1592981250,
"_updatedAt": 1592981250,
"userId": "5e5ea5c16897e",
"userName": "John Doe",
"userEmail": "john@appwrite.io",
"teamId": "5e5ea5c16897e",
"teamName": "VIP",
"invited": 1592981250,
"joined": 1592981250,
"confirm": false,
"roles": "admin"
}