mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
PR review changes
This commit is contained in:
+3
-3
@@ -12,7 +12,7 @@ use Utopia\Config\Config;
|
||||
use Utopia\Database\Database;
|
||||
use Utopia\Database\Document;
|
||||
|
||||
class Collection extends IndexedQueries
|
||||
class Base extends IndexedQueries
|
||||
{
|
||||
/**
|
||||
* Expression constructor
|
||||
@@ -49,12 +49,12 @@ class Collection extends IndexedQueries
|
||||
'array' => false,
|
||||
]);
|
||||
$attributes[] = new Document([
|
||||
'$id' => '$createdAt',
|
||||
'key' => '$createdAt',
|
||||
'type' => Database::VAR_DATETIME,
|
||||
'array' => false,
|
||||
]);
|
||||
$attributes[] = new Document([
|
||||
'$id' => '$updatedAt',
|
||||
'key' => '$updatedAt',
|
||||
'type' => Database::VAR_DATETIME,
|
||||
'array' => false,
|
||||
]);
|
||||
@@ -2,15 +2,11 @@
|
||||
|
||||
namespace Appwrite\Utopia\Database\Validator\Queries;
|
||||
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Collection;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Base;
|
||||
|
||||
class Buckets extends Collection
|
||||
class Buckets extends Base
|
||||
{
|
||||
public const ALLOWED_ATTRIBUTES = [
|
||||
'$id',
|
||||
'$createdAt',
|
||||
'$updatedAt',
|
||||
|
||||
'enabled',
|
||||
'name',
|
||||
'fileSecurity',
|
||||
|
||||
@@ -2,15 +2,11 @@
|
||||
|
||||
namespace Appwrite\Utopia\Database\Validator\Queries;
|
||||
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Collection;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Base;
|
||||
|
||||
class Collections extends Collection
|
||||
class Collections extends Base
|
||||
{
|
||||
public const ALLOWED_ATTRIBUTES = [
|
||||
'$id',
|
||||
'$createdAt',
|
||||
'$updatedAt',
|
||||
|
||||
'name',
|
||||
'enabled',
|
||||
'documentSecurity'
|
||||
|
||||
@@ -2,15 +2,11 @@
|
||||
|
||||
namespace Appwrite\Utopia\Database\Validator\Queries;
|
||||
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Collection;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Base;
|
||||
|
||||
class Databases extends Collection
|
||||
class Databases extends Base
|
||||
{
|
||||
public const ALLOWED_ATTRIBUTES = [
|
||||
'$id',
|
||||
'$createdAt',
|
||||
'$updatedAt',
|
||||
|
||||
'name'
|
||||
];
|
||||
|
||||
|
||||
@@ -2,15 +2,11 @@
|
||||
|
||||
namespace Appwrite\Utopia\Database\Validator\Queries;
|
||||
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Collection;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Base;
|
||||
|
||||
class Deployments extends Collection
|
||||
class Deployments extends Base
|
||||
{
|
||||
public const ALLOWED_ATTRIBUTES = [
|
||||
'$id',
|
||||
'$createdAt',
|
||||
'$updatedAt',
|
||||
|
||||
'entrypoint',
|
||||
'size',
|
||||
'buildId',
|
||||
|
||||
@@ -2,15 +2,11 @@
|
||||
|
||||
namespace Appwrite\Utopia\Database\Validator\Queries;
|
||||
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Collection;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Base;
|
||||
|
||||
class Executions extends Collection
|
||||
class Executions extends Base
|
||||
{
|
||||
public const ALLOWED_ATTRIBUTES = [
|
||||
'$id',
|
||||
'$createdAt',
|
||||
'$updatedAt',
|
||||
|
||||
'trigger',
|
||||
'status',
|
||||
'statusCode',
|
||||
|
||||
@@ -2,15 +2,11 @@
|
||||
|
||||
namespace Appwrite\Utopia\Database\Validator\Queries;
|
||||
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Collection;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Base;
|
||||
|
||||
class Files extends Collection
|
||||
class Files extends Base
|
||||
{
|
||||
public const ALLOWED_ATTRIBUTES = [
|
||||
'$id',
|
||||
'$createdAt',
|
||||
'$updatedAt',
|
||||
|
||||
'name',
|
||||
'signature',
|
||||
'mimeType',
|
||||
|
||||
@@ -2,15 +2,11 @@
|
||||
|
||||
namespace Appwrite\Utopia\Database\Validator\Queries;
|
||||
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Collection;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Base;
|
||||
|
||||
class Functions extends Collection
|
||||
class Functions extends Base
|
||||
{
|
||||
public const ALLOWED_ATTRIBUTES = [
|
||||
'$id',
|
||||
'$createdAt',
|
||||
'$updatedAt',
|
||||
|
||||
'name',
|
||||
'status',
|
||||
'runtime',
|
||||
|
||||
@@ -2,21 +2,13 @@
|
||||
|
||||
namespace Appwrite\Utopia\Database\Validator\Queries;
|
||||
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Collection;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Base;
|
||||
|
||||
class TeamMemberships extends Collection
|
||||
class TeamMemberships extends Base
|
||||
{
|
||||
public const ALLOWED_ATTRIBUTES = [
|
||||
'$id',
|
||||
'$createdAt',
|
||||
'$updatedAt',
|
||||
|
||||
'userId',
|
||||
'userName',
|
||||
'userName',
|
||||
'userEmail',
|
||||
'teamId',
|
||||
'teamName',
|
||||
'invited',
|
||||
'joined',
|
||||
'confirm'
|
||||
|
||||
@@ -2,15 +2,11 @@
|
||||
|
||||
namespace Appwrite\Utopia\Database\Validator\Queries;
|
||||
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Collection;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Base;
|
||||
|
||||
class Teams extends Collection
|
||||
class Teams extends Base
|
||||
{
|
||||
public const ALLOWED_ATTRIBUTES = [
|
||||
'$id',
|
||||
'$createdAt',
|
||||
'$updatedAt',
|
||||
|
||||
'name',
|
||||
'total'
|
||||
];
|
||||
|
||||
@@ -2,15 +2,11 @@
|
||||
|
||||
namespace Appwrite\Utopia\Database\Validator\Queries;
|
||||
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Collection;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Base;
|
||||
|
||||
class Users extends Collection
|
||||
class Users extends Base
|
||||
{
|
||||
public const ALLOWED_ATTRIBUTES = [
|
||||
'$id',
|
||||
'$createdAt',
|
||||
'$updatedAt',
|
||||
|
||||
'name',
|
||||
'email',
|
||||
'phone',
|
||||
|
||||
Reference in New Issue
Block a user