2019-08-10 02:46:09 +12:00
|
|
|
<?php
|
|
|
|
|
2022-05-05 03:00:36 +12:00
|
|
|
use Appwrite\Auth\Auth;
|
2020-03-29 01:42:16 +13:00
|
|
|
use Utopia\Config\Config;
|
2021-12-02 00:48:23 +13:00
|
|
|
use Utopia\Database\Database;
|
2023-02-06 09:07:46 +13:00
|
|
|
use Utopia\Database\Helpers\ID;
|
2019-08-10 02:46:09 +12:00
|
|
|
|
2020-10-31 09:04:32 +13:00
|
|
|
$providers = Config::getParam('providers', []);
|
2021-03-01 00:00:22 +13:00
|
|
|
$auth = Config::getParam('auth', []);
|
2020-03-29 01:42:16 +13:00
|
|
|
|
2021-12-23 21:31:32 +13:00
|
|
|
/**
|
|
|
|
* $collection => id of the parent collection where this will be inserted
|
|
|
|
* $id => id of this collection
|
|
|
|
* name => name of this collection
|
2022-08-04 16:20:11 +12:00
|
|
|
* project => whether this collection should be created per project
|
2021-12-23 21:31:32 +13:00
|
|
|
* attributes => list of attributes
|
|
|
|
* indexes => list of indexes
|
|
|
|
*/
|
|
|
|
|
2023-08-05 07:15:32 +12:00
|
|
|
$commonCollections = [
|
2023-06-15 12:20:18 +12:00
|
|
|
'users' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('users'),
|
|
|
|
'name' => 'Users',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2019-08-15 10:01:27 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2019-08-15 10:01:27 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('email'),
|
2022-06-22 22:51:49 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 320,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-15 10:01:27 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-15 10:01:27 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-15 10:01:27 +12:00
|
|
|
],
|
2022-06-22 22:51:49 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('phone'),
|
2022-06-22 22:51:49 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16, // leading '+' and 15 digitts maximum by E.164 format
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-15 10:01:27 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-15 10:01:27 +12:00
|
|
|
],
|
2022-06-22 22:51:49 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('status'),
|
2021-12-14 01:42:04 +13:00
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2022-06-22 22:51:49 +12:00
|
|
|
'format' => '',
|
2022-08-04 16:20:11 +12:00
|
|
|
'size' => 0,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2022-06-22 22:51:49 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2022-06-22 22:51:49 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-05 13:07:33 +12:00
|
|
|
'$id' => ID::custom('labels'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-05 13:07:33 +12:00
|
|
|
'size' => 128,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2023-08-05 13:07:33 +12:00
|
|
|
'array' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-14 01:42:04 +13:00
|
|
|
[
|
2023-08-05 07:15:32 +12:00
|
|
|
'$id' => ID::custom('passwordHistory'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-14 01:42:04 +13:00
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2021-12-14 01:42:04 +13:00
|
|
|
'default' => null,
|
2023-08-05 07:15:32 +12:00
|
|
|
'array' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-12-14 01:42:04 +13:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('password'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-08-04 16:20:11 +12:00
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['encrypt'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => 'hash', // Hashing algorithm used to hash the password
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => Auth::DEFAULT_ALGO,
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('hashOptions'), // Configuration of hashing algorithm
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-06-22 22:51:49 +12:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 65535,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2022-06-22 22:51:49 +12:00
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => Auth::DEFAULT_ALGO_OPTIONS,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['json'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('passwordUpdate'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2021-12-14 01:42:04 +13:00
|
|
|
'size' => 0,
|
2022-06-22 22:51:49 +12:00
|
|
|
'signed' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['datetime'],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('prefs'),
|
2022-06-22 22:51:49 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 65535,
|
2022-06-22 22:51:49 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => new \stdClass(),
|
2022-06-22 22:51:49 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['json'],
|
2022-06-22 22:51:49 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('registration'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
2022-06-22 22:51:49 +12:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
2022-06-22 22:51:49 +12:00
|
|
|
'signed' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'required' => false,
|
2022-06-22 22:51:49 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['datetime'],
|
2022-06-22 22:51:49 +12:00
|
|
|
],
|
2022-06-16 00:57:06 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('emailVerification'),
|
2022-08-04 16:20:11 +12:00
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2022-08-04 16:20:11 +12:00
|
|
|
'size' => 0,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('phoneVerification'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('reset'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('sessions'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['subQuerySessions'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('tokens'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16384,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['subQueryTokens'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('memberships'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['subQueryMemberships'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2020-11-21 12:31:17 +13:00
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2020-11-21 12:31:17 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-05 13:07:33 +12:00
|
|
|
'filters' => ['userSearch'],
|
2020-11-21 12:31:17 +13:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-05 13:07:33 +12:00
|
|
|
'$id' => ID::custom('accessedAt'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
2023-03-13 23:59:01 +13:00
|
|
|
'signed' => false,
|
2019-10-06 01:07:52 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-08-05 13:07:33 +12:00
|
|
|
'filters' => ['datetime'],
|
2023-08-09 21:52:34 +12:00
|
|
|
]
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2022-08-25 06:41:26 +12:00
|
|
|
'$id' => ID::custom('_key_name'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [256],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_email'),
|
|
|
|
'type' => Database::INDEX_UNIQUE,
|
|
|
|
'attributes' => ['email'],
|
|
|
|
'lengths' => [320],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_phone'),
|
|
|
|
'type' => Database::INDEX_UNIQUE,
|
|
|
|
'attributes' => ['phone'],
|
|
|
|
'lengths' => [16],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_status'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['status'],
|
2022-08-25 06:41:26 +12:00
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_passwordUpdate'),
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['passwordUpdate'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_registration'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['registration'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_emailVerification'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['emailVerification'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
2023-06-15 12:20:18 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_phoneVerification'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['phoneVerification'],
|
2022-08-25 06:41:26 +12:00
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2023-06-15 12:20:18 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2023-08-05 13:07:33 +12:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => '_key_accessedAt',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['accessedAt'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'tokens' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('tokens'),
|
|
|
|
'name' => 'Tokens',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('userInternalId'),
|
2022-06-22 22:51:49 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2022-06-16 00:57:06 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('userId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('type'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2022-06-22 22:51:49 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('secret'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 512, // https://www.tutorialspoint.com/how-long-is-the-sha256-hash-in-mysql (512 for encryption)
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['encrypt'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('expire'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
2023-06-15 12:20:18 +12:00
|
|
|
'signed' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['datetime'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('userAgent'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-02-20 01:12:47 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('ip'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 45, // https://stackoverflow.com/a/166157/2299554
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
]
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_user'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['userInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-09-07 05:07:56 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'sessions' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('sessions'),
|
|
|
|
'name' => 'Sessions',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2022-06-16 19:50:52 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('userInternalId'),
|
2022-06-16 19:50:52 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-02-03 05:36:32 +13:00
|
|
|
'required' => true,
|
2022-06-16 19:50:52 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('userId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2020-11-26 19:12:24 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-11-26 19:12:24 +13:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('provider'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 128,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2020-11-26 19:12:24 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-11-26 19:12:24 +13:00
|
|
|
],
|
2022-10-01 01:22:11 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('providerUid'),
|
2022-10-01 01:22:11 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 2048,
|
2022-10-01 01:22:11 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2020-11-26 19:12:24 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('providerAccessToken'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16384,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2021-03-29 22:16:56 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['encrypt'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2022-06-15 02:57:57 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('providerAccessTokenExpiry'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['datetime'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-02-20 01:12:47 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('providerRefreshToken'),
|
2022-06-15 02:57:57 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16384,
|
2022-06-15 02:57:57 +12:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2022-06-15 02:57:57 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['encrypt'],
|
2022-06-15 02:57:57 +12:00
|
|
|
],
|
2021-02-19 23:02:02 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('secret'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 512, // https://www.tutorialspoint.com/how-long-is-the-sha256-hash-in-mysql (512 for encryption)
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2021-03-29 22:16:56 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-02-19 23:02:02 +13:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['encrypt'],
|
2021-02-19 23:02:02 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('userAgent'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2021-02-19 23:02:02 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-02-19 23:02:02 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-02-19 23:02:02 +13:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('ip'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 45, // https://stackoverflow.com/a/166157/2299554
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('countryCode'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 2,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('osCode'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('osName'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2020-10-31 09:04:32 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('osVersion'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('clientType'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('clientCode'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('clientName'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 256,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('clientVersion'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('clientEngine'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('clientEngineVersion'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('deviceName'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('deviceBrand'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
2023-07-28 19:56:07 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('deviceModel'),
|
2023-07-28 19:56:07 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 256,
|
2023-07-28 19:56:07 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-07-28 19:56:07 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2020-10-31 09:04:32 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_provider_providerUid'),
|
2022-09-01 00:30:16 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['provider', 'providerUid'],
|
|
|
|
'lengths' => [100, 100],
|
|
|
|
'orders' => [Database::ORDER_ASC, Database::ORDER_ASC],
|
2022-09-01 00:30:16 +12:00
|
|
|
],
|
2022-10-03 20:16:49 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_user'),
|
2022-10-03 20:16:49 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['userInternalId'],
|
2022-10-03 20:16:49 +13:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-08-08 09:46:00 +12:00
|
|
|
'identities' => [
|
2023-02-23 04:07:34 +13:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-08-08 09:46:00 +12:00
|
|
|
'$id' => ID::custom('identities'),
|
|
|
|
'name' => 'Identities',
|
2023-02-23 04:07:34 +13:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-08-08 09:46:00 +12:00
|
|
|
'$id' => ID::custom('userInternalId'),
|
2023-02-23 04:07:34 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-08-08 09:46:00 +12:00
|
|
|
'required' => false,
|
2023-02-23 04:07:34 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-08 09:46:00 +12:00
|
|
|
'$id' => ID::custom('userId'),
|
2023-02-23 04:07:34 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-08-08 09:46:00 +12:00
|
|
|
'required' => false,
|
2023-02-23 04:07:34 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-08 09:46:00 +12:00
|
|
|
'$id' => ID::custom('provider'),
|
2023-02-23 04:07:34 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-08 09:46:00 +12:00
|
|
|
'size' => 128,
|
2023-02-23 04:07:34 +13:00
|
|
|
'signed' => true,
|
2023-08-08 09:46:00 +12:00
|
|
|
'required' => false,
|
2023-02-23 04:07:34 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-08 09:46:00 +12:00
|
|
|
'$id' => ID::custom('providerUid'),
|
2023-02-23 04:07:34 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-08 09:46:00 +12:00
|
|
|
'size' => 2048,
|
2023-02-23 04:07:34 +13:00
|
|
|
'signed' => true,
|
2023-08-08 09:46:00 +12:00
|
|
|
'required' => false,
|
2023-02-23 04:07:34 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-08 09:46:00 +12:00
|
|
|
'$id' => ID::custom('providerEmail'),
|
2023-02-23 04:07:34 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-08 09:46:00 +12:00
|
|
|
'size' => 320,
|
2023-02-23 04:07:34 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-08 09:46:00 +12:00
|
|
|
'$id' => ID::custom('providerAccessToken'),
|
2023-02-23 04:07:34 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-08 09:46:00 +12:00
|
|
|
'size' => 16384,
|
2023-02-23 04:07:34 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-08 09:46:00 +12:00
|
|
|
'filters' => ['encrypt'],
|
2023-02-23 04:07:34 +13:00
|
|
|
],
|
2023-03-09 07:30:01 +13:00
|
|
|
[
|
2023-08-08 09:46:00 +12:00
|
|
|
'$id' => ID::custom('providerAccessTokenExpiry'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
2023-03-09 07:30:01 +13:00
|
|
|
'format' => '',
|
2023-08-08 09:46:00 +12:00
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2023-03-09 07:30:01 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-08 09:46:00 +12:00
|
|
|
'filters' => ['datetime'],
|
2023-03-09 07:30:01 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-08 09:46:00 +12:00
|
|
|
'$id' => ID::custom('providerRefreshToken'),
|
2023-03-09 07:30:01 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-08 09:46:00 +12:00
|
|
|
'size' => 16384,
|
2023-03-09 07:30:01 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-08 09:46:00 +12:00
|
|
|
'filters' => ['encrypt'],
|
|
|
|
],
|
2023-08-10 03:11:15 +12:00
|
|
|
[
|
|
|
|
// Used to store data from provider that may or may not be sensitive
|
|
|
|
'$id' => ID::custom('secrets'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => [],
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['json', 'encrypt'],
|
|
|
|
],
|
2023-02-23 04:07:34 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-08-08 09:46:00 +12:00
|
|
|
'$id' => ID::custom('_key_userInternalId_provider_providerUid'),
|
2023-02-23 04:07:34 +13:00
|
|
|
'type' => Database::INDEX_UNIQUE,
|
2023-08-08 09:46:00 +12:00
|
|
|
'attributes' => ['userInternalId', 'provider', 'providerUid'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY, 100, 385],
|
|
|
|
'orders' => [Database::ORDER_ASC, Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_provider_providerUid'),
|
|
|
|
'type' => Database::INDEX_UNIQUE,
|
|
|
|
'attributes' => ['provider', 'providerUid'],
|
|
|
|
'lengths' => [100, 640],
|
|
|
|
'orders' => [Database::ORDER_ASC, Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_userId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['userId'],
|
2023-02-23 04:07:34 +13:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-07-01 18:46:21 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-08 09:46:00 +12:00
|
|
|
'$id' => ID::custom('_key_userInternalId'),
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-08 09:46:00 +12:00
|
|
|
'attributes' => ['userInternalId'],
|
2023-07-01 18:46:21 +12:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-08 09:46:00 +12:00
|
|
|
'$id' => ID::custom('_key_provider'),
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-08 09:46:00 +12:00
|
|
|
'attributes' => ['provider'],
|
|
|
|
'lengths' => [100],
|
2023-07-01 18:46:21 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-08 09:46:00 +12:00
|
|
|
'$id' => ID::custom('_key_providerUid'),
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-08 09:46:00 +12:00
|
|
|
'attributes' => ['providerUid'],
|
2023-07-01 18:46:21 +12:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-08 09:46:00 +12:00
|
|
|
'$id' => ID::custom('_key_providerEmail'),
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-08 09:46:00 +12:00
|
|
|
'attributes' => ['providerEmail'],
|
2023-07-01 18:46:21 +12:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-08 09:46:00 +12:00
|
|
|
'$id' => ID::custom('_key_providerAccessTokenExpiry'),
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-08 09:46:00 +12:00
|
|
|
'attributes' => ['providerAccessTokenExpiry'],
|
|
|
|
'lengths' => [],
|
2023-07-01 18:46:21 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2023-02-23 04:07:34 +13:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'teams' => [
|
2022-11-04 18:12:08 +13:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('teams'),
|
|
|
|
'name' => 'Teams',
|
2022-11-04 18:12:08 +13:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2022-11-04 18:12:08 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 128,
|
2022-11-04 18:12:08 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2022-12-26 00:06:25 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('total'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2022-12-26 00:06:25 +13:00
|
|
|
'format' => '',
|
2022-11-07 10:41:33 +13:00
|
|
|
'size' => 0,
|
2022-12-26 00:06:25 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2022-11-04 18:12:08 +13:00
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2022-11-04 18:12:08 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-07-28 19:56:07 +12:00
|
|
|
'size' => 16384,
|
2022-11-04 18:12:08 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-05 07:15:32 +12:00
|
|
|
'$id' => ID::custom('prefs'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-11-04 18:12:08 +13:00
|
|
|
'format' => '',
|
2023-08-05 07:15:32 +12:00
|
|
|
'size' => 65535,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2022-11-04 18:12:08 +13:00
|
|
|
'required' => false,
|
2023-08-05 07:15:32 +12:00
|
|
|
'default' => new \stdClass(),
|
2022-11-04 18:12:08 +13:00
|
|
|
'array' => false,
|
2023-08-05 07:15:32 +12:00
|
|
|
'filters' => ['json'],
|
2022-11-04 18:12:08 +13:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2022-11-04 18:12:08 +13:00
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('_key_search'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
2022-01-26 10:48:18 +13:00
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
2022-09-01 00:30:16 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_name'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [128],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2022-10-03 20:16:49 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_total'),
|
2022-10-03 20:16:49 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['total'],
|
2022-11-04 18:12:08 +13:00
|
|
|
'lengths' => [],
|
2022-10-03 20:16:49 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'memberships' => [
|
2023-02-23 04:07:34 +13:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('memberships'),
|
|
|
|
'name' => 'Memberships',
|
2023-02-23 04:07:34 +13:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('userInternalId'),
|
2022-11-07 10:41:33 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-11-04 18:12:08 +13:00
|
|
|
'format' => '',
|
2022-11-07 10:41:33 +13:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-02-23 04:07:34 +13:00
|
|
|
'required' => true,
|
2022-11-04 18:12:08 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2022-11-07 10:41:33 +13:00
|
|
|
'filters' => [],
|
2022-11-04 18:12:08 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('userId'),
|
2022-11-04 18:12:08 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-02-23 04:07:34 +13:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-11-04 18:12:08 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('teamInternalId'),
|
2023-02-23 04:07:34 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-11-04 18:12:08 +13:00
|
|
|
'format' => '',
|
2023-02-23 04:07:34 +13:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2022-11-04 18:12:08 +13:00
|
|
|
'filters' => [],
|
2023-02-23 04:07:34 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('teamId'),
|
2023-02-23 04:07:34 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2022-11-04 18:12:08 +13:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2023-02-23 04:07:34 +13:00
|
|
|
'signed' => true,
|
2022-11-04 18:12:08 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-02-23 04:07:34 +13:00
|
|
|
'filters' => [],
|
2022-11-04 18:12:08 +13:00
|
|
|
],
|
2022-11-07 02:10:26 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('roles'),
|
2022-11-07 02:10:26 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 128,
|
2022-11-07 02:10:26 +13:00
|
|
|
'signed' => true,
|
2023-02-23 04:07:34 +13:00
|
|
|
'required' => false,
|
2022-11-07 02:10:26 +13:00
|
|
|
'default' => null,
|
2023-06-15 12:20:18 +12:00
|
|
|
'array' => true,
|
2022-11-07 02:10:26 +13:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2022-11-04 18:12:08 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('invited'),
|
2022-11-07 10:41:33 +13:00
|
|
|
'type' => Database::VAR_DATETIME,
|
2023-02-23 04:07:34 +13:00
|
|
|
'format' => '',
|
2022-11-07 10:41:33 +13:00
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2022-11-04 18:12:08 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2022-11-07 10:41:33 +13:00
|
|
|
'filters' => ['datetime'],
|
2022-11-04 18:12:08 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('joined'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
2022-11-04 18:12:08 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2022-11-04 18:12:08 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['datetime'],
|
2022-11-04 18:12:08 +13:00
|
|
|
],
|
2022-06-16 19:50:52 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('confirm'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2022-06-16 19:50:52 +12:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
2022-06-16 19:50:52 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('secret'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 256,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['encrypt'],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16384,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-02-20 01:12:47 +13:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
2023-02-23 04:07:34 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2021-02-20 01:12:47 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_unique'),
|
2023-02-23 04:07:34 +13:00
|
|
|
'type' => Database::INDEX_UNIQUE,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['teamInternalId', 'userInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC, Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_user'),
|
2022-11-04 18:12:08 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['userInternalId'],
|
2023-02-23 04:07:34 +13:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-07-01 18:46:21 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_team'),
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['teamInternalId'],
|
2023-07-01 18:46:21 +12:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
2022-11-04 18:12:08 +13:00
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_userId'),
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['userId'],
|
2023-07-01 18:46:21 +12:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_teamId'),
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['teamId'],
|
2023-07-01 18:46:21 +12:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_invited'),
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['invited'],
|
2022-11-04 18:12:08 +13:00
|
|
|
'lengths' => [],
|
2023-07-01 18:46:21 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_joined'),
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['joined'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_confirm'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['confirm'],
|
|
|
|
'lengths' => [],
|
2023-07-01 18:46:21 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2023-02-23 04:07:34 +13:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'buckets' => [
|
2022-11-04 18:12:08 +13:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('buckets'),
|
|
|
|
'name' => 'Buckets',
|
2022-11-04 18:12:08 +13:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('enabled'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
2022-11-04 18:12:08 +13:00
|
|
|
'filters' => [],
|
2021-02-20 01:12:47 +13:00
|
|
|
'required' => true,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-12-26 00:06:25 +13:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 128,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2022-12-26 00:06:25 +13:00
|
|
|
'filters' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => true,
|
|
|
|
'array' => false,
|
2022-12-26 00:06:25 +13:00
|
|
|
],
|
2022-11-04 18:12:08 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('fileSecurity'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 1,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2021-12-02 00:48:23 +13:00
|
|
|
'required' => false,
|
2021-02-20 01:12:47 +13:00
|
|
|
'array' => false,
|
2022-11-04 18:12:08 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('maximumFileSize'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2022-11-07 10:41:33 +13:00
|
|
|
'signed' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 8,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2021-02-20 01:12:47 +13:00
|
|
|
'required' => true,
|
2022-11-04 18:12:08 +13:00
|
|
|
'array' => false,
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('allowedFileExtensions'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-11-07 10:41:33 +13:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 64,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2022-11-07 10:41:33 +13:00
|
|
|
'filters' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => true,
|
|
|
|
'array' => true,
|
2022-11-04 18:12:08 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => 'compression',
|
2022-11-04 18:12:08 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 10,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => [],
|
|
|
|
'required' => true,
|
2021-02-20 01:12:47 +13:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('encryption'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => true,
|
2021-02-20 01:12:47 +13:00
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('antivirus'),
|
2022-11-04 18:12:08 +13:00
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => true,
|
2022-11-04 18:12:08 +13:00
|
|
|
'array' => false,
|
|
|
|
],
|
2022-11-07 02:10:26 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16384,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2021-02-20 01:12:47 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2022-11-07 02:10:26 +13:00
|
|
|
],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
'indexes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_fulltext_name'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_enabled'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['enabled'],
|
|
|
|
'lengths' => [],
|
2021-12-02 00:48:23 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
2023-06-15 12:20:18 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_name'),
|
2022-11-04 18:12:08 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['name'],
|
2022-11-04 18:12:08 +13:00
|
|
|
'lengths' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2022-11-04 18:12:08 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_fileSecurity'),
|
2022-11-04 18:12:08 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['fileSecurity'],
|
2022-11-04 18:12:08 +13:00
|
|
|
'lengths' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2022-11-04 18:12:08 +13:00
|
|
|
],
|
2023-06-15 12:20:18 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_maximumFileSize'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['maximumFileSize'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_encryption'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['encryption'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_antivirus'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['antivirus'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
]
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'stats' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('stats'),
|
|
|
|
'name' => 'Stats',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('metric'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 255,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-02-03 05:36:32 +13:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('region'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 255,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
2021-02-20 01:12:47 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('value'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 8,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('time'),
|
2022-07-06 04:29:12 +12:00
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
2022-07-06 04:29:12 +12:00
|
|
|
'signed' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2021-02-20 01:12:47 +13:00
|
|
|
'array' => false,
|
2022-08-16 03:03:03 +12:00
|
|
|
'filters' => ['datetime'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('period'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 4,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
'indexes' => [
|
2022-06-01 03:41:12 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_time'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['time'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_DESC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_period_time'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['period', 'time'],
|
|
|
|
'lengths' => [],
|
2021-12-02 00:48:23 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
2022-08-05 22:20:48 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_metric_period_time'),
|
2023-07-13 01:02:42 +12:00
|
|
|
'type' => Database::INDEX_UNIQUE,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['metric', 'period', 'time'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_DESC],
|
|
|
|
],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-08-05 07:15:32 +12:00
|
|
|
'statsLogger' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-08-05 07:15:32 +12:00
|
|
|
'$id' => ID::custom('statsLogger'),
|
|
|
|
'name' => 'StatsLogger',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-08-05 07:15:32 +12:00
|
|
|
'$id' => ID::custom('time'),
|
2022-07-05 22:59:03 +12:00
|
|
|
'type' => Database::VAR_DATETIME,
|
2022-06-01 03:41:12 +12:00
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
2022-07-06 04:29:12 +12:00
|
|
|
'default' => null,
|
2022-06-01 03:41:12 +12:00
|
|
|
'array' => false,
|
2022-08-16 03:03:03 +12:00
|
|
|
'filters' => ['datetime'],
|
2022-06-01 03:41:12 +12:00
|
|
|
],
|
2022-08-05 22:20:48 +12:00
|
|
|
[
|
2023-08-05 07:15:32 +12:00
|
|
|
'$id' => ID::custom('metrics'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-08-05 22:20:48 +12:00
|
|
|
'format' => '',
|
2023-08-05 07:15:32 +12:00
|
|
|
'size' => 5012,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2023-08-05 07:15:32 +12:00
|
|
|
'default' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-08-05 07:15:32 +12:00
|
|
|
'filters' => ['json'],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_time'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['time'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_DESC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2023-08-05 07:15:32 +12:00
|
|
|
],
|
|
|
|
],
|
|
|
|
];
|
|
|
|
|
|
|
|
$projectCollections = array_merge([
|
2023-06-15 12:20:18 +12:00
|
|
|
'databases' => [
|
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('databases'),
|
|
|
|
'name' => 'Databases',
|
|
|
|
'attributes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 256,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-05 13:07:33 +12:00
|
|
|
'$id' => ID::custom('enabled'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2022-08-05 22:20:48 +12:00
|
|
|
'size' => 0,
|
2023-08-05 13:07:33 +12:00
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2022-08-05 22:20:48 +12:00
|
|
|
'required' => false,
|
2023-08-05 13:07:33 +12:00
|
|
|
'default' => true,
|
2022-06-01 03:41:12 +12:00
|
|
|
'array' => false,
|
2022-08-05 22:20:48 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2022-08-05 22:20:48 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16384,
|
2022-08-05 22:20:48 +12:00
|
|
|
'signed' => true,
|
2022-06-01 03:41:12 +12:00
|
|
|
'required' => false,
|
2022-08-05 22:20:48 +12:00
|
|
|
'default' => null,
|
2022-06-01 03:41:12 +12:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_fulltext_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2022-08-05 22:20:48 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_name'),
|
2022-08-05 22:20:48 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [256],
|
2021-12-02 00:48:23 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2022-08-05 22:20:48 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('attributes'),
|
|
|
|
'name' => 'Attributes',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2022-06-16 19:50:52 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('databaseInternalId'),
|
2022-06-16 19:50:52 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-08-05 07:15:32 +12:00
|
|
|
'required' => true,
|
2022-06-16 19:50:52 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('databaseId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'signed' => false,
|
2023-02-03 05:36:32 +13:00
|
|
|
'required' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('collectionInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('collectionId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('key'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2021-12-09 06:49:44 +13:00
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('type'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 256,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2021-12-09 06:49:44 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('status'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2022-06-08 03:11:07 +12:00
|
|
|
[
|
2023-08-05 13:07:33 +12:00
|
|
|
'$id' => ID::custom('error'),
|
2022-06-08 03:11:07 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('size'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2022-06-01 03:41:12 +12:00
|
|
|
'size' => 0,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('required'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2022-08-05 22:20:48 +12:00
|
|
|
'size' => 0,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2022-06-08 21:00:38 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('default'),
|
2022-06-08 21:00:38 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16384,
|
2022-06-08 21:00:38 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['casting'],
|
2022-06-08 21:00:38 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('signed'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('array'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2022-02-05 04:00:24 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('format'),
|
2022-02-05 04:00:24 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 64,
|
2022-02-05 04:00:24 +13:00
|
|
|
'signed' => true,
|
2022-02-05 05:10:52 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2022-02-05 04:00:24 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('formatOptions'),
|
2022-05-05 02:37:37 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16384,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => new stdClass(),
|
2022-05-05 02:37:37 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['json', 'range', 'enum'],
|
2022-05-05 02:37:37 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('filters'),
|
2022-05-05 02:37:37 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 64,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2022-08-05 22:20:48 +12:00
|
|
|
'array' => true,
|
2022-06-01 03:41:12 +12:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-05 07:15:32 +12:00
|
|
|
'$id' => ID::custom('options'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-08-05 07:15:32 +12:00
|
|
|
'size' => 16384,
|
2022-07-06 04:29:12 +12:00
|
|
|
'signed' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['json'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_db_collection'),
|
2022-08-05 22:20:48 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['databaseInternalId', 'collectionInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC, Database::ORDER_ASC],
|
2022-08-05 22:20:48 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'indexes' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('indexes'),
|
|
|
|
'name' => 'Indexes',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2022-06-16 19:50:52 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('databaseInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2022-06-16 19:50:52 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-05 07:15:32 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2022-06-16 19:50:52 +12:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-02-28 23:16:27 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('databaseId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-07-06 04:29:12 +12:00
|
|
|
'signed' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2021-02-28 23:16:27 +13:00
|
|
|
],
|
2022-06-08 21:00:38 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('collectionInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-06-08 21:00:38 +12:00
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-06-08 21:00:38 +12:00
|
|
|
'signed' => true,
|
2023-08-05 07:15:32 +12:00
|
|
|
'required' => true,
|
2022-06-08 21:00:38 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2021-02-28 23:16:27 +13:00
|
|
|
],
|
2021-07-05 19:12:59 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('collectionId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2021-07-05 19:12:59 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('key'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2022-04-25 23:43:30 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('type'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2022-04-27 23:06:53 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('status'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2022-05-14 00:32:18 +12:00
|
|
|
'default' => null,
|
2022-04-28 00:44:47 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2020-02-23 21:56:40 +13:00
|
|
|
[
|
2023-08-05 13:07:33 +12:00
|
|
|
'$id' => ID::custom('error'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-05 13:07:33 +12:00
|
|
|
'size' => 2048,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2023-06-18 23:38:37 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('attributes'),
|
2023-06-18 23:38:37 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2023-06-18 23:38:37 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => true,
|
|
|
|
'filters' => [],
|
2023-06-18 23:38:37 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('lengths'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2023-06-18 23:38:37 +12:00
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2023-06-15 12:20:18 +12:00
|
|
|
'array' => true,
|
|
|
|
'filters' => [],
|
2023-06-18 23:38:37 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('orders'),
|
2023-06-18 23:38:37 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 4,
|
2023-06-18 23:38:37 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2023-06-15 12:20:18 +12:00
|
|
|
'array' => true,
|
2022-06-08 03:11:07 +12:00
|
|
|
'filters' => [],
|
2023-06-18 23:38:37 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_db_collection'),
|
2022-08-20 09:10:15 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['databaseInternalId', 'collectionInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC, Database::ORDER_ASC],
|
2022-08-20 09:10:15 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'functions' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('functions'),
|
|
|
|
'name' => 'Functions',
|
2022-04-27 23:06:53 +12:00
|
|
|
'attributes' => [
|
2022-08-20 09:10:15 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('execute'),
|
2022-06-07 21:37:09 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 128,
|
2022-06-07 21:37:09 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2023-06-15 12:20:18 +12:00
|
|
|
'array' => true,
|
2022-06-07 21:37:09 +12:00
|
|
|
'filters' => [],
|
2022-08-20 09:10:15 +12:00
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2022-04-27 23:06:53 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 2048,
|
2022-04-27 23:06:53 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2022-08-20 09:10:15 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('enabled'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2022-04-27 23:06:53 +12:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2022-04-27 23:06:53 +12:00
|
|
|
'required' => true,
|
|
|
|
'array' => false,
|
2022-08-20 09:10:15 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 22:30:38 +12:00
|
|
|
'$id' => ID::custom('live'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => true,
|
|
|
|
'array' => false,
|
2022-08-20 09:10:15 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('installationId'),
|
2022-04-27 23:06:53 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2022-04-27 23:06:53 +12:00
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
2022-06-07 21:37:09 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('installationInternalId'),
|
2022-06-07 21:37:09 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2022-04-27 23:06:53 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('providerRepositoryId'),
|
2022-04-27 23:06:53 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2022-04-27 23:06:53 +12:00
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('repositoryId'),
|
2022-04-27 23:06:53 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
2022-04-27 23:06:53 +12:00
|
|
|
'filters' => [],
|
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('repositoryInternalId'),
|
2022-06-07 21:37:09 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-04-27 23:06:53 +12:00
|
|
|
'format' => '',
|
2022-06-07 21:37:09 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-04-27 23:06:53 +12:00
|
|
|
'signed' => true,
|
2022-06-07 21:37:09 +12:00
|
|
|
'required' => false,
|
2022-04-27 23:06:53 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('providerBranch'),
|
2022-04-27 23:06:53 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2022-04-27 23:06:53 +12:00
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('providerRootDirectory'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-08-06 19:31:32 +12:00
|
|
|
'signed' => true,
|
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-04-27 23:06:53 +12:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => [],
|
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('providerSilentMode'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2022-04-27 23:06:53 +12:00
|
|
|
'size' => 0,
|
2023-08-06 19:31:32 +12:00
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2022-04-27 23:06:53 +12:00
|
|
|
'required' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'default' => false,
|
2022-04-27 23:06:53 +12:00
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('logging'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-08-06 19:31:32 +12:00
|
|
|
'required' => true,
|
|
|
|
'array' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('runtime'),
|
2022-04-27 23:06:53 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 2048,
|
2022-04-27 23:06:53 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-07-10 15:06:48 +12:00
|
|
|
'$id' => ID::custom('deploymentInternalId'),
|
2022-04-27 23:06:53 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-07-10 15:06:48 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-04-27 23:06:53 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2022-06-07 21:37:09 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('deployment'),
|
2022-06-07 21:37:09 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('vars'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['subQueryVariables'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('events'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2022-02-05 04:00:24 +13:00
|
|
|
'size' => 256,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2023-06-15 12:20:18 +12:00
|
|
|
'array' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-07-10 15:06:48 +12:00
|
|
|
'$id' => ID::custom('scheduleInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-07-10 15:06:48 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('scheduleId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('schedule'),
|
2022-02-01 09:10:12 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 128,
|
2022-02-01 09:10:12 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2022-02-01 09:10:12 +13:00
|
|
|
],
|
2022-02-01 23:42:11 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('timeout'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2022-02-01 23:42:11 +13:00
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2022-02-01 23:42:11 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2022-02-01 23:42:11 +13:00
|
|
|
],
|
2022-02-01 09:10:12 +13:00
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('version'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 8,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'default' => 'v3',
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'array' => false,
|
|
|
|
'$id' => ID::custom('entrypoint'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'array' => false,
|
|
|
|
'$id' => ID::custom('commands'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 16384,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'filters' => [],
|
2023-08-06 19:31:32 +12:00
|
|
|
]
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
2021-12-02 00:48:23 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_name'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [768],
|
2022-06-22 06:02:43 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_enabled'),
|
2022-08-20 09:10:15 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['enabled'],
|
2022-08-20 09:10:15 +12:00
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_installationId'),
|
2022-08-20 09:10:15 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['installationId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2022-08-20 09:10:15 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_installationInternalId'),
|
2022-08-20 09:10:15 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['installationInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2022-08-20 09:10:15 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_providerRepositoryId'),
|
2022-08-20 09:10:15 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['providerRepositoryId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2022-08-20 09:10:15 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_repositoryId'),
|
2022-08-20 09:10:15 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['repositoryId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_repositoryInternalId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['repositoryInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_runtime'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['runtime'],
|
|
|
|
'lengths' => [768],
|
2022-08-20 09:10:15 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2023-08-06 19:31:32 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_deployment'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['deployment'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
]
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'deployments' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('deployments'),
|
|
|
|
'name' => 'Deployments',
|
2022-04-27 23:06:53 +12:00
|
|
|
'attributes' => [
|
2022-06-07 21:37:09 +12:00
|
|
|
[
|
2023-07-10 15:06:48 +12:00
|
|
|
'$id' => ID::custom('resourceInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2022-06-07 21:37:09 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('resourceId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2022-04-27 23:06:53 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('resourceType'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2022-04-27 23:06:53 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-07-10 15:06:48 +12:00
|
|
|
'$id' => ID::custom('buildInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-07-10 15:06:48 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('buildId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2022-06-07 21:37:09 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'array' => false,
|
|
|
|
'$id' => ID::custom('entrypoint'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 2048,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'array' => false,
|
|
|
|
'$id' => ID::custom('commands'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 2048,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('path'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 2048,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('type'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 2048,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('installationId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-02-01 23:42:11 +13:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('installationInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
2022-06-07 21:37:09 +12:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2019-08-10 23:38:09 +12:00
|
|
|
'array' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('providerRepositoryId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => [],
|
2021-12-02 00:48:23 +13:00
|
|
|
'required' => false,
|
2020-02-21 09:43:21 +13:00
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('repositoryId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
2022-04-27 21:13:34 +12:00
|
|
|
],
|
2023-05-18 13:11:45 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('repositoryInternalId'),
|
2023-05-18 13:11:45 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2023-08-09 22:54:46 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('providerRepositoryName'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('providerRepositoryOwner'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('providerRepositoryUrl'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('providerCommitHash'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
2023-08-10 05:35:23 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('providerCommitAuthorUrl'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
2023-08-09 22:54:46 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('providerCommitAuthor'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('providerCommitMessage'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('providerCommitUrl'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
2023-05-18 13:11:45 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('providerBranch'),
|
2023-05-18 13:11:45 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2023-05-18 13:11:45 +12:00
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
2023-08-10 05:35:23 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('providerBranchUrl'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
2023-05-18 13:11:45 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('providerRootDirectory'),
|
2023-05-18 13:11:45 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2023-05-18 13:11:45 +12:00
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('providerCommentId'),
|
2023-05-18 13:11:45 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 2048,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2023-05-18 13:11:45 +12:00
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('size'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2023-05-18 13:11:45 +12:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 0,
|
2023-05-18 13:11:45 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('metadata'),
|
2023-05-18 13:11:45 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 16384, // https://tools.ietf.org/html/rfc4288#section-4.2
|
2023-05-18 13:11:45 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => ['json'],
|
2023-05-18 13:11:45 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('chunksTotal'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2023-05-18 13:11:45 +12:00
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => [],
|
2023-05-18 13:11:45 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('chunksUploaded'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2023-05-18 13:11:45 +12:00
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 0,
|
2023-08-06 19:31:32 +12:00
|
|
|
'signed' => false,
|
2023-05-18 13:11:45 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-05-18 13:11:45 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 16384,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('activate'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'default' => false,
|
2020-02-21 09:43:21 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-08-06 19:31:32 +12:00
|
|
|
]
|
2020-02-21 09:43:21 +13:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_resource'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['resourceId'],
|
|
|
|
'lengths' => [],
|
2021-12-02 00:48:23 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2020-02-21 09:43:21 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_resource_type'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['resourceType'],
|
|
|
|
'lengths' => [],
|
2021-12-02 00:48:23 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('_key_search'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
2022-01-26 10:48:18 +13:00
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
2022-08-25 06:41:26 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_size'),
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['size'],
|
2022-08-25 06:41:26 +12:00
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_buildId'),
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['buildId'],
|
2022-08-25 06:41:26 +12:00
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_activate'),
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['activate'],
|
2022-08-25 06:41:26 +12:00
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'builds' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('builds'),
|
|
|
|
'name' => 'Builds',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('startTime'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['datetime'],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('endTime'),
|
2022-07-06 01:06:55 +12:00
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2022-02-01 23:42:11 +13:00
|
|
|
'size' => 0,
|
2022-07-06 04:29:12 +12:00
|
|
|
'signed' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2022-08-16 03:03:03 +12:00
|
|
|
'filters' => ['datetime'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('duration'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2020-02-23 21:56:40 +13:00
|
|
|
'default' => null,
|
2020-02-21 09:43:21 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-02-21 09:43:21 +13:00
|
|
|
],
|
2020-02-23 21:56:40 +13:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('size'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 0,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('deploymentInternalId'),
|
2022-06-15 05:15:22 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('deploymentId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('runtime'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 2048,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-05-22 22:58:13 +12:00
|
|
|
'required' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => '',
|
2023-05-22 22:58:13 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('status'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => 'processing',
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2023-06-18 23:38:37 +12:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('path'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 2048,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => '',
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
2021-05-18 05:50:44 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('logs'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 1000000,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2021-05-18 05:50:44 +12:00
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => '',
|
2021-05-18 05:50:44 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-05-18 05:50:44 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('sourceType'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 2048,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => 'local',
|
2021-05-18 05:50:44 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-05-18 05:50:44 +12:00
|
|
|
],
|
2022-02-17 05:26:05 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('source'),
|
2022-02-17 05:26:05 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 2048,
|
2022-02-17 05:26:05 +13:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => '',
|
2022-02-17 05:26:05 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
]
|
2020-02-21 09:43:21 +13:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_deployment'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['deploymentId'],
|
2021-12-02 00:48:23 +13:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-06-15 12:20:18 +12:00
|
|
|
]
|
2023-07-01 18:46:21 +12:00
|
|
|
],
|
2023-05-22 22:58:13 +12:00
|
|
|
],
|
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'executions' => [
|
2023-05-22 22:58:13 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('executions'),
|
|
|
|
'name' => 'Executions',
|
2023-05-22 22:58:13 +12:00
|
|
|
'attributes' => [
|
2022-08-25 06:41:26 +12:00
|
|
|
[
|
2023-07-10 15:06:48 +12:00
|
|
|
'$id' => ID::custom('functionInternalId'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'required' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('functionId'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
|
|
|
[
|
2023-07-10 15:06:48 +12:00
|
|
|
'$id' => ID::custom('deploymentInternalId'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'required' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('deploymentId'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
|
|
|
[
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('trigger'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 128,
|
2023-05-22 22:58:13 +12:00
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'default' => null,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
2023-05-22 22:58:13 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('status'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 128,
|
2023-05-22 22:58:13 +12:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('duration'),
|
|
|
|
'type' => Database::VAR_FLOAT,
|
2023-05-22 22:58:13 +12:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 0,
|
2023-05-22 22:58:13 +12:00
|
|
|
'signed' => true,
|
2023-07-28 19:56:07 +12:00
|
|
|
'required' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('errors'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 1000000,
|
2023-05-22 22:58:13 +12:00
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('logs'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 1000000,
|
2023-05-22 22:58:13 +12:00
|
|
|
'signed' => true,
|
2023-06-28 20:48:10 +12:00
|
|
|
'required' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-06-28 20:48:10 +12:00
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('requestMethod'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 128,
|
2023-05-22 22:58:13 +12:00
|
|
|
'signed' => true,
|
2023-06-28 20:48:10 +12:00
|
|
|
'required' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'default' => null,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-06-28 20:48:10 +12:00
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('requestPath'),
|
2023-06-28 20:48:10 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-06-18 23:38:37 +12:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 2048,
|
2023-06-28 20:48:10 +12:00
|
|
|
'signed' => true,
|
2023-05-22 22:58:13 +12:00
|
|
|
'required' => false,
|
2023-06-28 20:48:10 +12:00
|
|
|
'default' => null,
|
|
|
|
'filters' => [],
|
2023-07-01 18:46:21 +12:00
|
|
|
],
|
2023-05-22 22:58:13 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('requestHeaders'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 16384,
|
2023-05-22 22:58:13 +12:00
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'required' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => ['json'],
|
2023-05-22 22:58:13 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('responseStatusCode'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::VAR_INTEGER,
|
2023-05-22 22:58:13 +12:00
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 0,
|
2023-05-22 22:58:13 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('responseHeaders'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 16384,
|
2023-05-22 22:58:13 +12:00
|
|
|
'signed' => true,
|
2021-05-18 06:10:17 +12:00
|
|
|
'required' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => ['json'],
|
2023-05-22 22:58:13 +12:00
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2022-02-17 05:26:05 +13:00
|
|
|
'size' => 16384,
|
2023-05-22 22:58:13 +12:00
|
|
|
'signed' => true,
|
2022-02-17 05:26:05 +13:00
|
|
|
'required' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
],
|
2023-07-01 18:46:21 +12:00
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_function'),
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['functionId'],
|
2023-07-01 18:46:21 +12:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2023-05-22 22:58:13 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_fulltext_search'),
|
2022-02-17 05:26:05 +13:00
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2023-07-01 18:46:21 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_trigger'),
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['trigger'],
|
2022-08-25 06:41:26 +12:00
|
|
|
'lengths' => [128],
|
2023-07-01 18:46:21 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_status'),
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['status'],
|
|
|
|
'lengths' => [128],
|
2023-07-01 18:46:21 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_responseStatusCode'),
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['responseStatusCode'],
|
2022-08-25 06:41:26 +12:00
|
|
|
'lengths' => [],
|
2023-07-01 18:46:21 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_duration'),
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['duration'],
|
2022-08-25 06:41:26 +12:00
|
|
|
'lengths' => [],
|
2023-07-01 18:46:21 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
],
|
2023-05-22 22:58:13 +12:00
|
|
|
],
|
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'variables' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'variables',
|
|
|
|
'name' => 'variables',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2020-02-21 09:43:21 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => 'functionInternalId',
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-07-01 18:46:21 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2023-05-22 22:58:13 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-05-22 22:58:13 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => 'functionId',
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2020-05-05 02:35:01 +12:00
|
|
|
'required' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2023-07-28 19:56:07 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => 'key',
|
2023-07-28 19:56:07 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2023-05-22 22:58:13 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => 'value',
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 8192,
|
2023-05-22 22:58:13 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => [ 'encrypt' ]
|
2023-06-28 20:48:10 +12:00
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2023-06-28 20:48:10 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2022-02-17 05:26:05 +13:00
|
|
|
'size' => 16384,
|
2023-06-28 20:48:10 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2023-05-22 22:58:13 +12:00
|
|
|
'array' => false,
|
2023-06-28 20:48:10 +12:00
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
],
|
2023-07-01 18:46:21 +12:00
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => '_key_function',
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['functionInternalId'],
|
2023-07-01 18:46:21 +12:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => '_key_uniqueKey',
|
|
|
|
'type' => Database::INDEX_UNIQUE,
|
|
|
|
'attributes' => ['functionInternalId', 'key'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC, Database::ORDER_ASC],
|
2023-07-01 18:46:21 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => '_key_key',
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['key'],
|
2023-07-01 18:46:21 +12:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2023-07-28 19:56:07 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_fulltext_search'),
|
2022-02-17 05:26:05 +13:00
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2023-07-28 19:56:07 +12:00
|
|
|
],
|
2023-07-01 18:46:21 +12:00
|
|
|
],
|
2023-06-28 20:48:10 +12:00
|
|
|
],
|
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'cache' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'cache',
|
|
|
|
'name' => 'Cache',
|
2023-06-28 20:48:10 +12:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => 'resource',
|
2023-06-28 20:48:10 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 255,
|
2023-06-28 20:48:10 +12:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => false,
|
2023-06-28 20:48:10 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'filters' => [],
|
2023-06-28 20:48:10 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => 'accessedAt',
|
|
|
|
'type' => Database::VAR_DATETIME,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => null,
|
2023-05-22 22:58:13 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['datetime'],
|
2023-05-22 22:58:13 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => 'signature',
|
2023-06-28 20:48:10 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 255,
|
2023-06-28 20:48:10 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2023-06-15 12:20:18 +12:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2023-05-23 22:34:38 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => '_key_accessedAt',
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['accessedAt'],
|
2022-08-25 06:41:26 +12:00
|
|
|
'lengths' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
'orders' => [],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
2023-06-28 20:48:10 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => '_key_resource',
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['resource'],
|
2022-08-25 06:41:26 +12:00
|
|
|
'lengths' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
'orders' => [],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-08-06 19:31:32 +12:00
|
|
|
'variables' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'variables',
|
|
|
|
'name' => 'variables',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2020-02-21 09:43:21 +13:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('resourceType'),
|
2023-06-28 20:48:10 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 100,
|
2023-06-28 20:48:10 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-06-08 03:50:32 +12:00
|
|
|
'filters' => [],
|
2023-06-28 20:48:10 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('resourceInternalId'),
|
2023-06-28 20:48:10 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-06-08 03:50:32 +12:00
|
|
|
'required' => false,
|
2023-06-28 20:48:10 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('resourceId'),
|
2023-06-28 20:48:10 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-07-01 18:46:21 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2023-06-28 20:48:10 +12:00
|
|
|
'signed' => true,
|
2023-05-23 22:34:38 +12:00
|
|
|
'required' => false,
|
2023-06-28 20:48:10 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-06-28 20:48:10 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => 'key',
|
2023-06-28 20:48:10 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-07-01 18:46:21 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2023-06-28 20:48:10 +12:00
|
|
|
'signed' => true,
|
2023-06-08 03:50:32 +12:00
|
|
|
'required' => false,
|
2023-06-28 20:48:10 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-06-28 20:48:10 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => 'value',
|
2023-06-28 20:48:10 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 8192,
|
2023-06-28 20:48:10 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => ['encrypt']
|
2023-06-28 20:48:10 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2023-06-28 20:48:10 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 16384,
|
2023-06-28 20:48:10 +12:00
|
|
|
'signed' => true,
|
2020-07-15 04:13:18 +12:00
|
|
|
'required' => false,
|
2023-06-28 20:48:10 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-06-28 20:48:10 +12:00
|
|
|
],
|
2023-05-22 22:58:13 +12:00
|
|
|
],
|
2023-07-01 18:46:21 +12:00
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => '_key_resourceInternalId',
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['resourceInternalId'],
|
2023-07-01 18:46:21 +12:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => '_key_resourceId',
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['resourceId'],
|
2023-07-01 18:46:21 +12:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => '_key_resourceType',
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['resourceType'],
|
|
|
|
'lengths' => [100],
|
2023-07-01 18:46:21 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => '_key_uniqueKey',
|
|
|
|
'type' => Database::INDEX_UNIQUE,
|
|
|
|
'attributes' => ['resourceId', 'key', 'resourceType'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY, 100],
|
|
|
|
'orders' => [Database::ORDER_ASC, Database::ORDER_ASC, Database::ORDER_ASC],
|
2023-07-01 18:46:21 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => '_key_key',
|
2023-07-01 18:46:21 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['key'],
|
2023-07-01 18:46:21 +12:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_fulltext_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2023-07-01 18:46:21 +12:00
|
|
|
],
|
|
|
|
],
|
2023-05-22 22:58:13 +12:00
|
|
|
],
|
2023-08-06 19:31:32 +12:00
|
|
|
], $commonCollections);
|
2023-05-22 22:58:13 +12:00
|
|
|
|
2023-08-06 19:31:32 +12:00
|
|
|
$consoleCollections = array_merge([
|
|
|
|
'projects' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('projects'),
|
|
|
|
'name' => 'Projects',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2020-02-21 09:43:21 +13:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('teamInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2022-12-26 01:07:54 +13:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2022-12-26 01:07:54 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('teamId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2020-05-05 02:35:01 +12:00
|
|
|
'required' => false,
|
2020-02-21 09:43:21 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-02-21 09:43:21 +13:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-09-09 20:49:18 +12:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 128,
|
2023-06-22 22:59:41 +12:00
|
|
|
'signed' => true,
|
2020-05-06 05:30:12 +12:00
|
|
|
'required' => false,
|
2022-07-20 19:18:49 +12:00
|
|
|
'default' => null,
|
2023-06-22 22:59:41 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-06-22 22:59:41 +12:00
|
|
|
],
|
2023-05-22 22:58:13 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('region'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 128,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-05-22 22:58:13 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2023-05-22 22:58:13 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-05-22 22:58:13 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('description'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 256,
|
2023-05-22 22:58:13 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('database'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-05-26 10:29:08 +12:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
2023-05-26 10:29:08 +12:00
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => [],
|
2023-05-26 10:29:08 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('logo'),
|
2023-05-26 10:29:08 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-05-22 22:58:13 +12:00
|
|
|
'format' => '',
|
2022-11-07 10:41:33 +13:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-05-22 22:58:13 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2023-05-22 22:58:13 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-05-22 22:58:13 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('url'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 16384,
|
2023-05-22 22:58:13 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2023-05-23 22:34:38 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('version'),
|
2023-06-08 03:50:32 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 16,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-06-08 03:50:32 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2023-06-08 03:50:32 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-06-08 03:50:32 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('legalName'),
|
2023-05-23 22:34:38 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 256,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-05-23 22:34:38 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2023-05-23 22:34:38 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-05-23 22:34:38 +12:00
|
|
|
],
|
2023-06-08 03:50:32 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('legalCountry'),
|
2023-02-03 08:21:00 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-06-08 03:50:32 +12:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 256,
|
2023-02-03 08:21:00 +13:00
|
|
|
'signed' => true,
|
2023-06-08 03:50:32 +12:00
|
|
|
'required' => false,
|
2022-12-23 06:18:54 +13:00
|
|
|
'default' => null,
|
2023-06-08 03:50:32 +12:00
|
|
|
'array' => false,
|
2023-02-24 22:24:20 +13:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2020-07-15 04:13:18 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('legalState'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 256,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-07-15 04:13:18 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-07-15 04:13:18 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-07-15 04:13:18 +12:00
|
|
|
],
|
2022-12-26 01:07:54 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('legalCity'),
|
2022-12-26 01:07:54 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 256,
|
2022-12-26 01:07:54 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('legalAddress'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 256,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-05-06 05:30:12 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-05 02:35:01 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('legalTaxId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 256,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-05-06 05:30:12 +12:00
|
|
|
'required' => false,
|
2022-07-20 19:18:49 +12:00
|
|
|
'default' => null,
|
2020-05-05 02:35:01 +12:00
|
|
|
'array' => false,
|
2022-01-26 05:51:05 +13:00
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('services'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16384,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-05-06 05:30:12 +12:00
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['json'],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2022-12-26 01:07:54 +13:00
|
|
|
[
|
2023-08-05 13:07:33 +12:00
|
|
|
'$id' => ID::custom('smtp'),
|
2022-12-26 01:07:54 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-05 13:07:33 +12:00
|
|
|
'size' => 16384,
|
2022-12-26 01:07:54 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2023-08-05 13:07:33 +12:00
|
|
|
'default' => [],
|
2022-12-26 01:07:54 +13:00
|
|
|
'array' => false,
|
2023-08-05 13:07:33 +12:00
|
|
|
'filters' => ['json', 'encrypt'],
|
2022-12-26 01:07:54 +13:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-08-05 13:07:33 +12:00
|
|
|
'$id' => ID::custom('templates'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-05 13:07:33 +12:00
|
|
|
'size' => 1000000, // TODO make sure size fits
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-05-05 02:35:01 +12:00
|
|
|
'required' => false,
|
2023-08-05 13:07:33 +12:00
|
|
|
'default' => [],
|
2020-05-06 08:37:59 +12:00
|
|
|
'array' => false,
|
2023-08-05 13:07:33 +12:00
|
|
|
'filters' => ['json'],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2020-05-13 10:00:00 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('auths'),
|
2022-11-07 10:41:33 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16384,
|
2022-11-07 10:41:33 +13:00
|
|
|
'signed' => true,
|
2020-02-21 09:43:21 +13:00
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => [],
|
2020-02-21 09:43:21 +13:00
|
|
|
'array' => false,
|
2022-02-22 21:03:24 +13:00
|
|
|
'filters' => ['json'],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
2020-02-21 09:43:21 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('authProviders'),
|
2023-03-29 02:21:42 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16384,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-05-13 10:00:00 +12:00
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => [],
|
2020-02-21 09:43:21 +13:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['json', 'encrypt'],
|
2020-02-21 09:43:21 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('platforms'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['subQueryPlatforms'],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
2023-02-03 08:21:00 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('webhooks'),
|
2023-02-03 08:21:00 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 16384,
|
2023-02-03 08:21:00 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2023-05-22 22:58:13 +12:00
|
|
|
'default' => null,
|
2023-02-03 08:21:00 +13:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['subQueryWebhooks'],
|
2023-02-03 08:21:00 +13:00
|
|
|
],
|
2023-03-16 23:07:15 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('keys'),
|
2023-03-16 23:07:15 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-05-22 23:29:35 +12:00
|
|
|
'size' => 16384,
|
2023-03-16 23:07:15 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2023-05-22 22:58:13 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['subQueryKeys'],
|
2023-03-16 23:07:15 +13:00
|
|
|
],
|
2023-03-29 02:21:42 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2023-03-29 02:21:42 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-05-22 23:29:35 +12:00
|
|
|
'size' => 16384,
|
2023-03-29 02:21:42 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2023-06-17 22:07:30 +12:00
|
|
|
'array' => false,
|
2023-03-29 02:21:42 +13:00
|
|
|
'filters' => [],
|
2023-06-17 22:07:30 +12:00
|
|
|
],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
'indexes' => [
|
2020-02-23 21:56:40 +13:00
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('_key_search'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
2022-10-27 08:14:39 +13:00
|
|
|
'lengths' => [],
|
2022-01-26 10:48:18 +13:00
|
|
|
'orders' => [],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
2020-02-29 19:24:46 +13:00
|
|
|
[
|
2022-08-25 06:41:26 +12:00
|
|
|
'$id' => ID::custom('_key_name'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['name'],
|
2023-06-15 12:20:18 +12:00
|
|
|
'lengths' => [128],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2023-03-29 02:21:42 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_team'),
|
2023-03-29 02:21:42 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['teamId'],
|
2023-07-01 18:46:21 +12:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2023-03-29 02:21:42 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2020-05-06 05:30:12 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'schedules' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('schedules'),
|
|
|
|
'name' => 'schedules',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2022-12-26 00:06:25 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('resourceType'),
|
2022-12-26 00:06:25 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 100,
|
2022-12-26 00:06:25 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2020-02-29 19:24:46 +13:00
|
|
|
[
|
2023-07-11 14:12:28 +12:00
|
|
|
'$id' => ID::custom('resourceInternalId'),
|
2022-01-26 05:51:05 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-07-11 14:12:28 +12:00
|
|
|
'required' => true,
|
2022-01-26 05:51:05 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('resourceId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
2022-12-26 00:06:25 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('resourceUpdatedAt'),
|
2022-12-21 01:56:56 +13:00
|
|
|
'type' => Database::VAR_DATETIME,
|
2022-12-26 00:06:25 +13:00
|
|
|
'format' => '',
|
2021-12-03 19:58:09 +13:00
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2022-12-26 00:06:25 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2022-12-21 01:56:56 +13:00
|
|
|
'filters' => ['datetime'],
|
2022-12-26 00:06:25 +13:00
|
|
|
],
|
2020-02-23 21:56:40 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('projectId'),
|
2021-12-07 03:18:50 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2021-12-07 03:18:50 +13:00
|
|
|
'default' => null,
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2021-12-07 03:18:50 +13:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
2021-05-18 05:50:44 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('schedule'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 100,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2021-05-18 05:50:44 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2023-03-29 02:21:42 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-05-18 05:50:44 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('active'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
2021-12-09 04:08:53 +13:00
|
|
|
'filters' => [],
|
2021-05-18 06:10:17 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-05-18 05:50:44 +12:00
|
|
|
'array' => false,
|
|
|
|
],
|
2023-05-22 22:58:13 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('region'),
|
2023-05-22 22:58:13 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 10,
|
2023-05-22 22:58:13 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2023-06-15 12:20:18 +12:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2023-05-22 22:58:13 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_region_resourceType_resourceUpdatedAt'),
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['region', 'resourceType','resourceUpdatedAt'],
|
2022-10-27 08:14:39 +13:00
|
|
|
'lengths' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
'orders' => [],
|
2023-05-22 22:58:13 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_region_resourceType_projectId_resourceId'),
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['region', 'resourceType', 'projectId', 'resourceId'],
|
2022-08-25 06:41:26 +12:00
|
|
|
'lengths' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
'orders' => [],
|
2023-05-22 22:58:13 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'platforms' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('platforms'),
|
|
|
|
'name' => 'platforms',
|
2021-12-07 03:18:50 +13:00
|
|
|
'attributes' => [
|
2023-06-17 22:07:30 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('projectInternalId'),
|
2023-06-17 22:07:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => true,
|
2023-06-17 22:07:30 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2023-05-22 22:58:13 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('projectId'),
|
2023-06-08 03:50:32 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-05-22 22:58:13 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2022-02-22 21:03:24 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('type'),
|
2022-02-22 21:03:24 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 16,
|
2022-02-22 21:03:24 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2022-01-26 23:49:02 +13:00
|
|
|
'filters' => [],
|
2022-02-22 21:03:24 +13:00
|
|
|
],
|
2021-12-03 19:58:09 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2022-12-23 06:18:54 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-03-15 21:20:25 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 256,
|
2023-03-15 21:20:25 +13:00
|
|
|
'signed' => true,
|
2023-02-03 05:36:32 +13:00
|
|
|
'required' => true,
|
2021-12-03 19:58:09 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('key'),
|
2022-12-26 00:06:25 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-03 19:58:09 +13:00
|
|
|
'format' => '',
|
2022-12-26 00:06:25 +13:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2021-12-03 19:58:09 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('store'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 256,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-11-17 11:48:32 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-09 04:08:53 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('hostname'),
|
2021-12-09 04:08:53 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 256,
|
2021-12-09 04:08:53 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-12-09 04:08:53 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2021-12-07 03:18:50 +13:00
|
|
|
]
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_project'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['projectInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2021-12-02 00:48:23 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2023-06-15 12:20:18 +12:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'keys' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('keys'),
|
|
|
|
'name' => 'keys',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2022-02-01 00:36:22 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('projectInternalId'),
|
2022-05-24 02:54:50 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-07 03:18:50 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-07 03:18:50 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-07 03:18:50 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('projectId'),
|
2021-12-07 03:18:50 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-07 03:18:50 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => 0,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-07 03:18:50 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2022-08-25 06:41:26 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2021-12-07 03:18:50 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-07 03:18:50 +13:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-07 03:18:50 +13:00
|
|
|
'filters' => [],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('scopes'),
|
2022-05-24 02:54:50 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-07 03:18:50 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-07 03:18:50 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2023-06-15 12:20:18 +12:00
|
|
|
'array' => true,
|
2021-12-07 03:18:50 +13:00
|
|
|
'filters' => [],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('secret'),
|
2022-05-24 02:54:50 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-07 03:18:50 +13:00
|
|
|
'format' => '',
|
2023-08-05 07:15:32 +12:00
|
|
|
'size' => 512, // var_dump of \bin2hex(\random_bytes(128)) => string(256) doubling for encryption
|
2021-12-07 03:18:50 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['encrypt'],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
2022-01-28 12:36:30 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('expire'),
|
2022-07-12 03:12:41 +12:00
|
|
|
'type' => Database::VAR_DATETIME,
|
2022-01-28 12:36:30 +13:00
|
|
|
'format' => '',
|
2021-12-07 03:18:50 +13:00
|
|
|
'size' => 0,
|
2022-07-12 03:12:41 +12:00
|
|
|
'signed' => false,
|
2022-01-28 12:36:30 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2022-08-16 03:03:03 +12:00
|
|
|
'filters' => ['datetime'],
|
2022-01-28 12:36:30 +13:00
|
|
|
],
|
2022-12-21 01:56:56 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('accessedAt'),
|
2022-12-21 01:56:56 +13:00
|
|
|
'type' => Database::VAR_DATETIME,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['datetime'],
|
|
|
|
],
|
2022-01-26 23:49:02 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('sdks'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2022-01-26 23:49:02 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-01-26 23:49:02 +13:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => true,
|
2022-01-26 23:49:02 +13:00
|
|
|
'default' => null,
|
2023-06-15 12:20:18 +12:00
|
|
|
'array' => true,
|
2022-01-26 23:49:02 +13:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2021-12-07 03:18:50 +13:00
|
|
|
'indexes' => [
|
2022-12-26 00:06:25 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_project'),
|
2021-12-07 03:18:50 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['projectInternalId'],
|
2021-12-07 03:18:50 +13:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-03-15 21:20:25 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => '_key_accessedAt',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['accessedAt'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
|
|
|
],
|
2021-12-07 03:18:50 +13:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'webhooks' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('webhooks'),
|
|
|
|
'name' => 'webhooks',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2022-12-26 00:06:25 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('projectInternalId'),
|
2022-12-26 00:06:25 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2021-06-12 01:30:33 +12:00
|
|
|
'required' => true,
|
2022-12-26 00:06:25 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2022-01-26 05:51:05 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('projectId'),
|
2022-01-26 05:51:05 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-12-09 04:08:53 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2021-12-09 04:08:53 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2022-12-26 00:06:25 +13:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-09 04:08:53 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-12-09 04:08:53 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('url'),
|
2022-05-24 02:54:50 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-07 03:18:50 +13:00
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-07 03:18:50 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-07 03:18:50 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('httpUser'),
|
2021-12-07 03:18:50 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-07 03:18:50 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-07 03:18:50 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('httpPass'),
|
2021-12-07 03:18:50 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => Database::LENGTH_KEY, // TODO will the length suffice after encryption?
|
2021-12-07 03:18:50 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2023-02-27 23:24:21 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['encrypt'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('security'),
|
2021-12-02 21:08:17 +13:00
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2021-12-07 03:18:50 +13:00
|
|
|
'format' => '',
|
2023-07-30 04:20:20 +12:00
|
|
|
'size' => 0,
|
2021-12-07 03:18:50 +13:00
|
|
|
'signed' => true,
|
2021-12-02 21:08:17 +13:00
|
|
|
'required' => true,
|
2023-02-27 23:24:21 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-07 03:18:50 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('events'),
|
2022-05-24 02:54:50 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-07 03:18:50 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-07 03:18:50 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2023-06-15 12:20:18 +12:00
|
|
|
'array' => true,
|
2021-12-07 03:18:50 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('signatureKey'),
|
2022-05-24 02:54:50 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-07 03:18:50 +13:00
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
2020-05-05 02:35:01 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-05 02:35:01 +12:00
|
|
|
'array' => false,
|
2021-12-07 03:18:50 +13:00
|
|
|
'filters' => [],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2021-12-07 03:18:50 +13:00
|
|
|
'indexes' => [
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_project'),
|
2021-12-07 03:18:50 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['projectInternalId'],
|
2021-12-07 03:18:50 +13:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2022-02-01 00:57:55 +13:00
|
|
|
]
|
2021-12-07 03:18:50 +13:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2021-12-02 00:48:23 +13:00
|
|
|
'certificates' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('certificates'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'name' => 'Certificates',
|
|
|
|
'attributes' => [
|
2022-12-26 00:06:25 +13:00
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('domain'),
|
2022-12-26 00:06:25 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
// The maximum total length of a domain name or number is 255 characters.
|
|
|
|
// https://datatracker.ietf.org/doc/html/rfc2821#section-4.5.3.1
|
|
|
|
// https://datatracker.ietf.org/doc/html/rfc5321#section-4.5.3.1.2
|
|
|
|
'size' => 255,
|
2022-12-26 00:06:25 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('issueDate'),
|
2022-07-06 04:29:12 +12:00
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
2022-07-06 04:29:12 +12:00
|
|
|
'signed' => false,
|
2020-07-15 15:38:57 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-07-15 15:38:57 +12:00
|
|
|
'array' => false,
|
2022-08-16 03:03:03 +12:00
|
|
|
'filters' => ['datetime'],
|
2020-07-15 15:38:57 +12:00
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('renewDate'),
|
2022-07-06 04:29:12 +12:00
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
2022-07-06 04:29:12 +12:00
|
|
|
'signed' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2022-08-16 03:03:03 +12:00
|
|
|
'filters' => ['datetime'],
|
2022-12-26 00:06:25 +13:00
|
|
|
],
|
2020-05-13 10:00:00 +12:00
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('attempts'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2020-05-13 10:00:00 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-13 10:00:00 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-13 10:00:00 +12:00
|
|
|
],
|
2022-12-26 00:06:25 +13:00
|
|
|
[
|
2023-03-14 02:35:34 +13:00
|
|
|
'$id' => ID::custom('logs'),
|
2022-12-26 00:06:25 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-03-14 02:35:34 +13:00
|
|
|
'size' => 1000000,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-05-13 10:00:00 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-13 10:00:00 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-13 10:00:00 +12:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('updated'),
|
2022-07-04 21:55:11 +12:00
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
2022-07-06 04:29:12 +12:00
|
|
|
'signed' => false,
|
2020-05-06 05:30:12 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-05 02:35:01 +12:00
|
|
|
'array' => false,
|
2022-08-16 03:03:03 +12:00
|
|
|
'filters' => ['datetime'],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2020-07-15 04:13:18 +12:00
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('_key_domain'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['domain'],
|
|
|
|
'lengths' => [255],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2021-09-22 22:03:04 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2022-01-16 19:33:47 +13:00
|
|
|
|
2021-12-02 00:48:23 +13:00
|
|
|
'realtime' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('realtime'),
|
2021-06-12 01:30:33 +12:00
|
|
|
'name' => 'Realtime Connections',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2020-10-31 09:04:32 +13:00
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('container'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2021-06-12 01:30:33 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2023-02-27 23:24:21 +13:00
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('timestamp'),
|
2022-07-13 01:32:39 +12:00
|
|
|
'type' => Database::VAR_DATETIME,
|
2023-02-27 23:24:21 +13:00
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 0,
|
2022-07-13 01:32:39 +12:00
|
|
|
'signed' => false,
|
2023-02-27 23:24:21 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2023-07-30 04:20:20 +12:00
|
|
|
'array' => false,
|
2022-08-16 03:03:03 +12:00
|
|
|
'filters' => ['datetime'],
|
2023-02-27 23:24:21 +13:00
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('value'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-07-30 04:20:20 +12:00
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 16384,
|
2023-07-30 04:20:20 +12:00
|
|
|
'signed' => true,
|
2021-06-12 01:30:33 +12:00
|
|
|
'required' => true,
|
2023-07-30 04:20:20 +12:00
|
|
|
'default' => null,
|
2023-02-27 23:24:21 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [], //TODO: use json filter
|
|
|
|
]
|
2021-06-12 01:30:33 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
'indexes' => [
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('_key_timestamp'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['timestamp'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_DESC],
|
2023-07-30 04:20:20 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
]
|
2020-07-03 09:48:37 +12:00
|
|
|
],
|
2023-08-06 19:31:32 +12:00
|
|
|
|
|
|
|
'rules' => [
|
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('rules'),
|
|
|
|
'name' => 'Rules',
|
|
|
|
'attributes' => [
|
2023-07-30 04:20:20 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('projectId'),
|
2023-02-27 23:24:21 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2023-02-27 23:24:21 +13:00
|
|
|
'signed' => true,
|
2021-12-02 21:08:17 +13:00
|
|
|
'required' => true,
|
2023-02-27 23:24:21 +13:00
|
|
|
'default' => null,
|
2023-07-30 04:20:20 +12:00
|
|
|
'array' => false,
|
2023-02-27 23:24:21 +13:00
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('projectInternalId'),
|
2023-02-27 23:24:21 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2023-02-27 23:24:21 +13:00
|
|
|
'signed' => true,
|
2021-12-02 21:08:17 +13:00
|
|
|
'required' => true,
|
2023-02-27 23:24:21 +13:00
|
|
|
'default' => null,
|
2023-07-30 04:20:20 +12:00
|
|
|
'array' => false,
|
2023-02-27 23:24:21 +13:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('domain'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2022-08-31 00:52:53 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2022-08-31 00:52:53 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2020-05-13 10:00:00 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('resourceType'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 100,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2021-12-02 21:08:17 +13:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2020-05-13 10:00:00 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('resourceInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-05-13 10:00:00 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-13 10:00:00 +12:00
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => [],
|
2020-05-13 10:00:00 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('resourceId'),
|
2021-12-02 21:08:17 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-05-13 10:00:00 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-13 10:00:00 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-13 10:00:00 +12:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('status'),
|
2023-07-30 04:20:20 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-05-05 02:35:01 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-06 08:37:59 +12:00
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2021-08-24 21:32:27 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('certificateId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2021-08-24 21:32:27 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-08-24 21:32:27 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-08-06 19:31:32 +12:00
|
|
|
]
|
2020-05-06 05:30:12 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
'indexes' => [
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_domain'),
|
|
|
|
'type' => Database::INDEX_UNIQUE,
|
|
|
|
'attributes' => ['domain'],
|
2021-12-02 00:48:23 +13:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_projectInternalId'),
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['projectInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
2022-08-25 06:41:26 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_projectId'),
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['projectId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-03-29 02:21:42 +13:00
|
|
|
],
|
2022-08-25 06:41:26 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => '_key_resourceInternalId',
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['resourceInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => '_key_resourceId',
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['resourceId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => '_key_resourceType',
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['resourceType'],
|
|
|
|
'lengths' => [100],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-08-06 19:31:32 +12:00
|
|
|
'installations' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('installations'),
|
|
|
|
'name' => 'installations',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2020-05-06 07:42:35 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('projectId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('projectInternalId'),
|
2022-10-01 01:22:11 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-10-01 01:22:11 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-07-15 15:38:57 +12:00
|
|
|
'array' => false,
|
2022-10-01 01:22:11 +13:00
|
|
|
'filters' => [],
|
2020-07-15 15:38:57 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('providerInstallationId'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2021-06-12 01:30:33 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-09-13 22:50:45 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('organization'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-09-13 22:50:45 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-09-13 22:50:45 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('provider'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-09-13 22:50:45 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-09-22 22:03:04 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('personal'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'signed' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 0,
|
2023-08-06 19:31:32 +12:00
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2021-09-22 22:03:04 +12:00
|
|
|
'required' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'default' => false,
|
2021-09-22 22:03:04 +12:00
|
|
|
'array' => false,
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2023-08-06 19:31:32 +12:00
|
|
|
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_projectInternalId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['projectInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_projectId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['projectId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2021-09-22 22:03:04 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_providerInstallationId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['providerInstallationId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2021-12-02 00:48:23 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2021-09-22 22:03:04 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2022-01-16 19:33:47 +13:00
|
|
|
|
2023-08-06 19:31:32 +12:00
|
|
|
'repositories' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('repositories'),
|
|
|
|
'name' => 'repositories',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2020-10-31 09:04:32 +13:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('installationId'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 21:08:17 +13:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2021-06-12 01:30:33 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => []
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
2020-05-06 07:42:35 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('installationInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 21:08:17 +13:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 21:08:17 +13:00
|
|
|
'signed' => true,
|
2020-05-13 10:00:00 +12:00
|
|
|
'required' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'default' => null,
|
2020-05-13 10:00:00 +12:00
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => [],
|
2020-05-13 10:00:00 +12:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('projectId'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 21:08:17 +13:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2021-12-02 21:08:17 +13:00
|
|
|
'required' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'default' => null,
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => []
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('projectInternalId'),
|
2021-12-02 21:08:17 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2021-12-02 21:08:17 +13:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-12-02 21:08:17 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('providerRepositoryId'),
|
2022-08-31 00:52:53 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2022-08-31 00:52:53 +12:00
|
|
|
'required' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'default' => null,
|
2022-08-31 00:52:53 +12:00
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => []
|
2022-08-31 00:52:53 +12:00
|
|
|
],
|
2021-12-02 21:08:17 +13:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('resourceId'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 21:08:17 +13:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2021-12-02 21:08:17 +13:00
|
|
|
'required' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'default' => null,
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('resourceInternalId'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 21:08:17 +13:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 21:08:17 +13:00
|
|
|
'filters' => [],
|
2023-08-06 19:31:32 +12:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('resourceType'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2021-12-02 21:08:17 +13:00
|
|
|
'required' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'default' => null,
|
2020-07-15 15:38:57 +12:00
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => []
|
2020-07-15 15:38:57 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('providerPullRequestIds'),
|
2021-12-02 21:08:17 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => 128,
|
2021-12-02 21:08:17 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 21:08:17 +13:00
|
|
|
'default' => null,
|
2023-08-06 19:31:32 +12:00
|
|
|
'array' => true,
|
2021-12-02 21:08:17 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 21:08:17 +13:00
|
|
|
'indexes' => [
|
2020-05-06 07:42:35 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_installationId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['installationId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2021-12-02 21:08:17 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_installationInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['installationInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2021-12-02 21:08:17 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2022-08-25 06:41:26 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_projectInternalId'),
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['projectInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_projectId'),
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['projectId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_providerRepositoryId'),
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['providerRepositoryId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_resourceId'),
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['resourceId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => '_key_resourceInternalId',
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['resourceInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_resourceType'),
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['resourceType'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-08-06 19:31:32 +12:00
|
|
|
]
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-02 21:08:17 +13:00
|
|
|
],
|
|
|
|
|
2023-08-06 19:31:32 +12:00
|
|
|
'vcsComments' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('vcsComments'),
|
|
|
|
'name' => 'vcsComments',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('installationId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => []
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
2022-10-01 01:22:11 +13:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('installationInternalId'),
|
2022-10-01 01:22:11 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-10-01 01:22:11 +13:00
|
|
|
'signed' => true,
|
2022-07-12 03:12:41 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
2021-06-12 01:30:33 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('projectId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2021-06-12 01:30:33 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-06-12 01:30:33 +12:00
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => []
|
2021-06-12 01:30:33 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('projectInternalId'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-06-12 01:30:33 +12:00
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => [],
|
2021-06-12 01:30:33 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('providerRepositoryId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2021-06-12 01:30:33 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-06-12 01:30:33 +12:00
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => []
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
2022-08-15 21:05:41 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('providerCommentId'),
|
2022-08-15 21:05:41 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-08-15 21:05:41 +12:00
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'required' => true,
|
2022-08-15 21:05:41 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => []
|
2022-08-15 21:05:41 +12:00
|
|
|
],
|
2022-07-03 21:36:59 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('providerPullRequestId'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2022-07-03 21:36:59 +12:00
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
2022-07-03 21:36:59 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => []
|
2022-08-15 21:05:41 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('providerBranch'),
|
2022-08-15 21:05:41 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-06 19:31:32 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-08-15 21:05:41 +12:00
|
|
|
'signed' => true,
|
2023-08-06 19:31:32 +12:00
|
|
|
'required' => true,
|
2022-08-15 21:05:41 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-06 19:31:32 +12:00
|
|
|
'filters' => []
|
2022-07-03 21:36:59 +12:00
|
|
|
],
|
2023-05-22 22:58:13 +12:00
|
|
|
],
|
2022-07-03 21:36:59 +12:00
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_installationId'),
|
2022-07-03 21:36:59 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['installationId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2022-07-03 21:36:59 +12:00
|
|
|
],
|
2022-08-16 01:55:11 +12:00
|
|
|
[
|
2023-08-06 19:31:32 +12:00
|
|
|
'$id' => ID::custom('_key_installationInternalId'),
|
2022-08-16 01:55:11 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-06 19:31:32 +12:00
|
|
|
'attributes' => ['installationInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_projectInternalId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['projectInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_projectId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['projectId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_providerRepositoryId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['providerRepositoryId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_providerPullRequestId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['providerPullRequestId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_providerBranch'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['providerBranch'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2022-08-16 01:55:11 +12:00
|
|
|
],
|
2022-07-03 21:36:59 +12:00
|
|
|
],
|
|
|
|
],
|
2023-08-06 20:51:53 +12:00
|
|
|
|
2023-08-06 19:31:32 +12:00
|
|
|
'vcsCommentLocks' => [
|
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('vcsCommentLocks'),
|
|
|
|
'name' => 'vcsCommentLocks',
|
|
|
|
'attributes' => [],
|
|
|
|
'indexes' => []
|
|
|
|
],
|
2023-08-05 07:15:32 +12:00
|
|
|
], $commonCollections);
|
2022-11-24 20:53:52 +13:00
|
|
|
|
2023-08-05 07:15:32 +12:00
|
|
|
$bucketCollections = [
|
2021-12-23 21:31:32 +13:00
|
|
|
'files' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom('buckets'),
|
|
|
|
'$id' => ID::custom('files'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'$name' => 'Files',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'array' => false,
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('bucketId'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-05-08 19:32:29 +12:00
|
|
|
'array' => false,
|
|
|
|
'$id' => ID::custom('bucketInternalId'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-12-23 21:31:32 +13:00
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('path'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('signature'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('mimeType'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2022-12-06 03:54:13 +13:00
|
|
|
'size' => 255, // https://tools.ietf.org/html/rfc4288#section-4.2
|
2021-12-23 21:31:32 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('metadata'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384, // https://tools.ietf.org/html/rfc4288#section-4.2
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['json'],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('sizeOriginal'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
2022-01-08 00:29:52 +13:00
|
|
|
'size' => 8,
|
|
|
|
'signed' => false,
|
2021-12-23 21:31:32 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('sizeActual'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
2022-01-08 00:29:52 +13:00
|
|
|
'size' => 8,
|
|
|
|
'signed' => false,
|
2021-12-23 21:31:32 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('algorithm'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 255,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('comment'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('openSSLVersion'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 64,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('openSSLCipher'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 64,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('openSSLTag'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('openSSLIV'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('chunksTotal'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('chunksUploaded'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('_key_search'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
2022-10-27 09:12:46 +13:00
|
|
|
'lengths' => [],
|
2021-12-23 21:31:32 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('_key_bucket'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['bucketId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2022-08-25 06:41:26 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_name'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['name'],
|
2022-10-27 08:14:39 +13:00
|
|
|
'lengths' => [768],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_signature'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['signature'],
|
2022-10-27 08:14:39 +13:00
|
|
|
'lengths' => [768],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_mimeType'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['mimeType'],
|
2022-10-27 08:14:39 +13:00
|
|
|
'lengths' => [],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_sizeOriginal'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['sizeOriginal'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_chunksTotal'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['chunksTotal'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_chunksUploaded'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['chunksUploaded'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2021-12-23 21:31:32 +13:00
|
|
|
]
|
|
|
|
],
|
2023-08-05 07:15:32 +12:00
|
|
|
];
|
2022-07-20 19:18:49 +12:00
|
|
|
|
2023-08-05 07:15:32 +12:00
|
|
|
$dbCollections = [
|
2023-06-15 12:20:18 +12:00
|
|
|
'collections' => [
|
|
|
|
'$collection' => ID::custom('databases'),
|
|
|
|
'$id' => ID::custom('collections'),
|
|
|
|
'name' => 'Collections',
|
2022-07-20 19:18:49 +12:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('databaseInternalId'),
|
2023-03-12 05:06:02 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2022-07-20 19:18:49 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2023-03-12 05:06:02 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('databaseId'),
|
2022-07-20 19:18:49 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => true,
|
2022-07-20 19:18:49 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2022-07-20 19:18:49 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 256,
|
|
|
|
'required' => true,
|
2022-07-20 19:18:49 +12:00
|
|
|
'signed' => true,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('enabled'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2022-07-20 19:18:49 +12:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
2022-07-20 19:18:49 +12:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => [],
|
|
|
|
'required' => true,
|
2022-07-20 19:18:49 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('documentSecurity'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2022-07-20 19:18:49 +12:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2022-07-20 19:18:49 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('attributes'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 1000000,
|
|
|
|
'required' => false,
|
|
|
|
'signed' => true,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['subQueryAttributes'],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('indexes'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 1000000,
|
|
|
|
'required' => false,
|
|
|
|
'signed' => true,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['subQueryIndexes'],
|
2022-08-27 01:38:39 +12:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('search'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2022-07-20 19:18:49 +12:00
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_fulltext_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2022-07-20 19:18:49 +12:00
|
|
|
],
|
2023-03-12 05:06:02 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_name'),
|
2023-03-12 05:06:02 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [256],
|
2023-03-12 05:06:02 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_enabled'),
|
2023-03-12 05:06:02 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['enabled'],
|
|
|
|
'lengths' => [],
|
2023-03-12 05:06:02 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2022-07-20 19:18:49 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_documentSecurity'),
|
2022-08-25 03:07:18 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['documentSecurity'],
|
2022-08-27 01:38:39 +12:00
|
|
|
'lengths' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2022-08-27 01:38:39 +12:00
|
|
|
],
|
2022-07-20 19:18:49 +12:00
|
|
|
],
|
|
|
|
],
|
2019-09-04 08:37:34 +12:00
|
|
|
];
|
2023-06-22 22:59:41 +12:00
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
|
2023-08-05 07:15:32 +12:00
|
|
|
$collections = [
|
2023-06-15 12:20:18 +12:00
|
|
|
'projects' => $projectCollections,
|
|
|
|
'console' => $consoleCollections,
|
|
|
|
'buckets' => $bucketCollections,
|
|
|
|
'databases' => $dbCollections
|
2019-09-04 08:37:34 +12:00
|
|
|
];
|
|
|
|
|
2022-01-19 00:05:04 +13:00
|
|
|
return $collections;
|