2022-08-22 14:14:40 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Appwrite\Utopia\Database\Validator\Queries;
|
|
|
|
|
|
|
|
|
|
use Appwrite\Utopia\Database\Validator\Queries\Collection;
|
|
|
|
|
|
|
|
|
|
class Users extends Collection
|
|
|
|
|
{
|
|
|
|
|
public const ALLOWED_ATTRIBUTES = [
|
2022-08-23 08:37:31 +00:00
|
|
|
'$id',
|
|
|
|
|
'$createdAt',
|
|
|
|
|
'$updatedAt',
|
2022-08-23 13:10:27 +00:00
|
|
|
|
2022-08-22 14:14:40 +00:00
|
|
|
'name',
|
|
|
|
|
'email',
|
|
|
|
|
'phone',
|
|
|
|
|
'status',
|
|
|
|
|
'passwordUpdate',
|
|
|
|
|
'registration',
|
|
|
|
|
'emailVerification',
|
2022-08-23 08:37:31 +00:00
|
|
|
'phoneVerification'
|
2022-08-22 14:14:40 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Expression constructor
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
parent::__construct('users', self::ALLOWED_ATTRIBUTES);
|
|
|
|
|
}
|
2022-08-22 19:12:30 +00:00
|
|
|
}
|