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;
|
2022-12-15 04:42:25 +13:00
|
|
|
use Utopia\Database\Helpers\ID;
|
2019-08-10 02:46:09 +12:00
|
|
|
|
2023-08-07 22:24:00 +12:00
|
|
|
$providers = Config::getParam('authProviders', []);
|
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-24 08:23:52 +12:00
|
|
|
|
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',
|
2022-06-22 22:51:49 +12:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2022-08-14 22:33:36 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2022-06-22 22:51:49 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 256,
|
2022-06-22 22:51:49 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('email'),
|
2022-06-22 22:51:49 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 320,
|
2022-06-22 22:51:49 +12:00
|
|
|
'signed' => true,
|
2019-08-15 10:01:27 +12:00
|
|
|
'required' => false,
|
2022-06-22 22:51:49 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('phone'),
|
2022-06-22 22:51:49 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'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,
|
|
|
|
'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-14 01:42:04 +13: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,
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
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
|
|
|
],
|
2022-06-22 22:51:49 +12:00
|
|
|
[
|
2023-08-05 07:15:32 +12:00
|
|
|
'$id' => ID::custom('passwordHistory'),
|
2022-06-22 22:51:49 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 16384,
|
2022-06-22 22:51:49 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2023-08-05 07:15:32 +12:00
|
|
|
'array' => true,
|
2022-06-22 22:51:49 +12:00
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('password'),
|
2022-06-22 22:51:49 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2022-06-22 22:51:49 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['encrypt'],
|
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' => 'hash', // Hashing algorithm used to hash the password
|
2022-06-16 00:57:06 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 256,
|
2022-06-16 00:57:06 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => Auth::DEFAULT_ALGO,
|
2022-06-16 00:57:06 +12:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-12-02 00:48:23 +13: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,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 65535,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'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,
|
2023-06-15 12:20:18 +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,
|
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('prefs'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 65535,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => new \stdClass(),
|
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('registration'),
|
|
|
|
'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
|
|
|
],
|
2022-10-26 06:37:07 +13: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,
|
2022-10-26 06:37:07 +13:00
|
|
|
'format' => '',
|
2022-08-04 16:20:11 +12:00
|
|
|
'size' => 0,
|
2022-10-26 06:37:07 +13:00
|
|
|
'signed' => true,
|
2023-06-15 13:05:37 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2022-10-26 06:37:07 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2019-08-10 02:46:09 +12: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,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2020-11-21 12:31:17 +13: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,
|
2020-11-21 12:31:17 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2020-11-21 12:31:17 +13:00
|
|
|
],
|
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,
|
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-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,
|
2023-06-15 12:20:18 +12:00
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2021-02-17 02:46:16 +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' => ['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,
|
2023-06-15 12:20:18 +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' => ['subQueryMemberships'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('targets'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['subQueryTargets'],
|
|
|
|
],
|
2019-08-10 02:46:09 +12: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,
|
2021-02-17 02:46:16 +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' => ['userSearch'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-05 13:07:33 +12:00
|
|
|
'$id' => ID::custom('accessedAt'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
2023-03-13 23:59:01 +13:00
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2023-03-15 02:20:56 +13:00
|
|
|
'array' => false,
|
2023-08-05 13:07:33 +12:00
|
|
|
'filters' => ['datetime'],
|
2023-08-24 08:23:52 +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'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2022-08-25 06:41:26 +12:00
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [256],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
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],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_phone'),
|
|
|
|
'type' => Database::INDEX_UNIQUE,
|
|
|
|
'attributes' => ['phone'],
|
|
|
|
'lengths' => [16],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_status'),
|
2022-08-25 06:41:26 +12: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' => [
|
2022-06-22 22:51:49 +12:00
|
|
|
[
|
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'),
|
2022-06-16 00:57:06 +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('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
|
|
|
],
|
2022-10-26 06:37:07 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('ip'),
|
2022-10-26 06:37:07 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 45, // https://stackoverflow.com/a/166157/2299554
|
2022-10-26 06:37:07 +13:00
|
|
|
'signed' => true,
|
2023-06-15 13:05:37 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2022-10-26 06:37:07 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2023-08-24 08:23:52 +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],
|
2022-06-22 22:51:49 +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
|
|
|
],
|
2021-02-19 23:02:02 +13: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-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' => ['datetime'],
|
2021-02-19 23:02:02 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('providerRefreshToken'),
|
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,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['encrypt'],
|
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('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('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
|
|
|
],
|
|
|
|
[
|
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,
|
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('osCode'),
|
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('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,
|
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('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'),
|
2023-03-09 14:58:59 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 256,
|
2023-03-09 14:58:59 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2023-03-09 14:58:59 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-03-09 14:58:59 +13:00
|
|
|
],
|
2023-03-10 02:43:59 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('clientCode'),
|
2023-03-10 02:43:59 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => 256,
|
2023-03-10 02:43:59 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2023-03-10 02:43:59 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-03-10 02:43:59 +13:00
|
|
|
],
|
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-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('deviceModel'),
|
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
|
|
|
],
|
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:52:11 +12:00
|
|
|
'identities' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-08-08 09:52:11 +12:00
|
|
|
'$id' => ID::custom('identities'),
|
|
|
|
'name' => 'Identities',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2022-06-16 19:50:52 +12:00
|
|
|
[
|
2023-08-08 09:52:11 +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,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-08-08 09:52:11 +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,
|
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-08-08 09:52:11 +12:00
|
|
|
'$id' => ID::custom('provider'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-08 09:52:11 +12:00
|
|
|
'size' => 128,
|
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
|
|
|
],
|
2021-02-20 01:12:47 +13:00
|
|
|
[
|
2023-08-08 09:52:11 +12:00
|
|
|
'$id' => ID::custom('providerUid'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-08 09:52:11 +12:00
|
|
|
'size' => 2048,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-08 09:52:11 +12:00
|
|
|
'required' => false,
|
2021-02-20 01:12:47 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-08 09:52:11 +12:00
|
|
|
'$id' => ID::custom('providerEmail'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-08 09:52:11 +12:00
|
|
|
'size' => 320,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2021-02-20 01:12:47 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-08 09:52:11 +12:00
|
|
|
'$id' => ID::custom('providerAccessToken'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-08 09:52:11 +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,
|
2023-08-08 09:52:11 +12:00
|
|
|
'filters' => ['encrypt'],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-08 09:52:11 +12:00
|
|
|
'$id' => ID::custom('providerAccessTokenExpiry'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['datetime'],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('providerRefreshToken'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-08 09:52:11 +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,
|
2023-08-08 09:52:11 +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'],
|
|
|
|
],
|
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-08-08 09:52:11 +12:00
|
|
|
'$id' => ID::custom('_key_userInternalId_provider_providerUid'),
|
|
|
|
'type' => Database::INDEX_UNIQUE,
|
|
|
|
'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'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-08 09:52:11 +12:00
|
|
|
'attributes' => ['userId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_userInternalId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['userInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_provider'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['provider'],
|
|
|
|
'lengths' => [100],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_providerUid'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['providerUid'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_providerEmail'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['providerEmail'],
|
2021-12-02 00:48:23 +13:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
2023-08-08 09:52:11 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_providerAccessTokenExpiry'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['providerAccessTokenExpiry'],
|
|
|
|
'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
|
|
|
'teams' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('teams'),
|
|
|
|
'name' => 'Teams',
|
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('name'),
|
2022-06-16 19:50:52 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 128,
|
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('total'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2022-11-07 10:41:33 +13:00
|
|
|
'size' => 0,
|
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
|
|
|
],
|
|
|
|
[
|
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-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
|
|
|
],
|
2021-02-20 01:12:47 +13:00
|
|
|
[
|
2023-08-05 07:15:32 +12:00
|
|
|
'$id' => ID::custom('prefs'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-05 07:15:32 +12:00
|
|
|
'size' => 65535,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2023-08-05 07:15:32 +12:00
|
|
|
'default' => new \stdClass(),
|
2021-02-20 01:12:47 +13:00
|
|
|
'array' => false,
|
2023-08-05 07:15:32 +12:00
|
|
|
'filters' => ['json'],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2021-02-20 01:12:47 +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-02-20 01:12:47 +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],
|
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_total'),
|
2021-12-02 00:48:23 +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' => [],
|
2021-12-02 00:48:23 +13:00
|
|
|
'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
|
|
|
'memberships' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('memberships'),
|
|
|
|
'name' => 'Memberships',
|
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-07-10 15:06:48 +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('userId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'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('teamInternalId'),
|
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' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +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,
|
2021-12-29 00:02:39 +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
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('roles'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 128,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2021-12-29 00:02:39 +13: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-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('invited'),
|
2022-11-07 10:41:33 +13:00
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
2022-11-07 10:41:33 +13:00
|
|
|
'signed' => false,
|
2021-12-29 00:02:39 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2022-11-07 10:41:33 +13:00
|
|
|
'filters' => ['datetime'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('joined'),
|
|
|
|
'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,
|
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,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['datetime'],
|
2019-08-10 02:46:09 +12: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,
|
|
|
|
'required' => false,
|
2022-11-04 18:12:08 +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('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,
|
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-11-04 18:12:08 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_unique'),
|
|
|
|
'type' => Database::INDEX_UNIQUE,
|
|
|
|
'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'],
|
2021-12-02 00:48:23 +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-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('_key_team'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['teamInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$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'),
|
2022-11-04 18:12:08 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => ['userId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_teamId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['teamId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_invited'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['invited'],
|
2022-11-04 18:12:08 +13:00
|
|
|
'lengths' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_joined'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['joined'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_confirm'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['confirm'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2022-11-04 18:12:08 +13:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-06-15 12:20:18 +12:00
|
|
|
'buckets' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('buckets'),
|
|
|
|
'name' => 'Buckets',
|
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('enabled'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2022-06-16 19:50:52 +12:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2023-02-03 05:36:32 +13:00
|
|
|
'required' => true,
|
2022-06-16 19:50:52 +12:00
|
|
|
'array' => false,
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 128,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => true,
|
|
|
|
'array' => false,
|
2020-10-31 09:04:32 +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' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
|
|
|
],
|
2021-02-20 01:12:47 +13:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('maximumFileSize'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'signed' => false,
|
|
|
|
'size' => 8,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2021-02-20 01:12:47 +13:00
|
|
|
'required' => true,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('allowedFileExtensions'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 64,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => true,
|
|
|
|
'array' => true,
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => 'compression',
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'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,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$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' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => true,
|
2021-02-20 01:12:47 +13:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('antivirus'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => true,
|
|
|
|
'array' => false,
|
2021-02-20 01:12:47 +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' => [],
|
2019-08-10 02:46:09 +12: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'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_fileSecurity'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['fileSecurity'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$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],
|
|
|
|
],
|
2023-08-24 08:23:52 +12:00
|
|
|
]
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
2023-08-05 07:15:32 +12: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' => [
|
2022-06-16 19:50:52 +12:00
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('metric'),
|
2022-06-16 19:50:52 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 255,
|
2022-06-16 19:50:52 +12:00
|
|
|
'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('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,
|
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('value'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2022-06-01 03:41:12 +12:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 8,
|
2023-07-13 01:02:42 +12:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => true,
|
2022-07-06 04:29:12 +12:00
|
|
|
'default' => null,
|
2022-06-01 03:41:12 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => [],
|
2022-06-01 03:41:12 +12:00
|
|
|
],
|
2022-08-05 22:20:48 +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,
|
2019-08-10 02:46:09 +12: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('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,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => true,
|
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
|
|
|
],
|
|
|
|
'indexes' => [
|
2019-08-10 02:46:09 +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],
|
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_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],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-08-05 07:15:32 +12:00
|
|
|
'statsLogger' => [
|
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('statsLogger'),
|
|
|
|
'name' => 'StatsLogger',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('time'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2022-08-19 21:41:22 +12:00
|
|
|
'filters' => ['datetime'],
|
2022-08-05 22:20:48 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-05 07:15:32 +12:00
|
|
|
'$id' => ID::custom('metrics'),
|
2022-08-05 22:20:48 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-05 07:15:32 +12:00
|
|
|
'size' => 5012,
|
2022-08-05 22:20:48 +12:00
|
|
|
'signed' => true,
|
2023-08-05 07:15:32 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => [],
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['json'],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_time'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['time'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_DESC],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-08-17 01:18:38 +12:00
|
|
|
'providers' => [
|
|
|
|
'$collection' => ID::custom(DATABASE::METADATA),
|
|
|
|
'$id' => ID::custom('providers'),
|
|
|
|
'name' => 'Providers',
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => [
|
2023-08-05 13:07:33 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('name'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2023-08-05 13:07:33 +12:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 128,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-05 13:07:33 +12:00
|
|
|
'filters' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('provider'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
2023-08-05 13:07:33 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2023-08-05 13:07:33 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('type'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 128,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +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' => [],
|
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('credentials'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['json', 'encrypt'],
|
2023-08-24 08:23:52 +12:00
|
|
|
]
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2023-06-15 12:20:18 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_provider'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['provider'],
|
|
|
|
'lengths' => [128],
|
2021-12-02 00:48:23 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_name'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [128],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-08-24 08:23:52 +12:00
|
|
|
]
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-08-17 01:18:38 +12:00
|
|
|
'messages' => [
|
|
|
|
'$collection' => ID::custom(DATABASE::METADATA),
|
|
|
|
'$id' => ID::custom('messages'),
|
|
|
|
'name' => 'Messages',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('providerId'),
|
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,
|
2023-08-17 01:18:38 +12:00
|
|
|
'signed' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2022-06-01 03:41:12 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('providerInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-06-01 03:41:12 +12:00
|
|
|
'format' => '',
|
2021-12-02 00:48:23 +13:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => true,
|
2022-07-06 04:29:12 +12:00
|
|
|
'default' => null,
|
2022-06-01 03:41:12 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2022-06-01 03:41:12 +12:00
|
|
|
],
|
2022-08-05 22:20:48 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('type'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-08-05 22:20:48 +12:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 128,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => true,
|
2022-08-19 21:54:26 +12:00
|
|
|
'default' => null,
|
2022-08-05 22:20:48 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2022-08-05 22:20:48 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('data'),
|
2022-08-05 22:20:48 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2022-08-05 22:20:48 +12:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => false,
|
2022-08-05 22:20:48 +12:00
|
|
|
'default' => null,
|
2023-06-15 12:20:18 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['json'],
|
2022-08-05 22:20:48 +12:00
|
|
|
],
|
2022-06-16 19:50:52 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('to'),
|
2022-06-16 19:50:52 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16834,
|
2022-06-16 19:50:52 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
2022-06-16 19:50:52 +12:00
|
|
|
'default' => null,
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => true,
|
2022-06-16 19:50:52 +12:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('deliveryTime'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +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-08-17 01:18:38 +12:00
|
|
|
'filters' => ['datetime'],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('deliveryError'),
|
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,
|
2023-08-05 13:07:33 +12: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-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('deliveredTo'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'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,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
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-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('delivered'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'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,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => false,
|
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-17 01:18:38 +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,
|
2021-12-09 06:49:44 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2022-06-08 03:11:07 +12:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2023-06-15 12:20:18 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_providerId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['providerId'],
|
|
|
|
'lengths' => [128],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2022-06-01 03:41:12 +12:00
|
|
|
],
|
2023-08-05 07:15:32 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_providerInternalId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['providerInternalId'],
|
|
|
|
'lengths' => [128],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-08-05 07:15:32 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2022-08-05 22:20:48 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-08-17 01:18:38 +12:00
|
|
|
'topics' => [
|
|
|
|
'$collection' => ID::custom(DATABASE::METADATA),
|
|
|
|
'$id' => ID::custom('topics'),
|
|
|
|
'name' => 'Topics',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('providerId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12: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-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('providerInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-08-05 07:15:32 +12:00
|
|
|
'required' => true,
|
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-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 128,
|
2021-12-02 00:48:23 +13:00
|
|
|
'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-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('description'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +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,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2023-08-25 07:52:16 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('targets'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => true,
|
|
|
|
'filters' => ['subQueryTargets'],
|
|
|
|
]
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_providerId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['providerId'],
|
|
|
|
'lengths' => [128],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
2022-06-08 03:11:07 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_providerInternalId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['providerInternalId'],
|
|
|
|
'lengths' => [128],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-05-27 12:15:38 +12:00
|
|
|
],
|
2022-12-16 23:22:39 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_name'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2022-12-16 23:22:39 +13:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_description'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['description'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-08-17 01:18:38 +12:00
|
|
|
'subscribers' => [
|
|
|
|
'$collection' => ID::custom(DATABASE::METADATA),
|
|
|
|
'$id' => ID::custom('subscribers'),
|
|
|
|
'name' => 'Subscribers',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2021-07-05 19:12:59 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('targetId'),
|
2022-05-05 02:37:37 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-07-10 15:06:48 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-07-10 15:06:48 +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-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('targetInternalId'),
|
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,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
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-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('topicId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
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-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('topicInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2023-07-07 12:12:39 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2022-08-20 09:10:15 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_targetId'),
|
2022-08-20 09:10:15 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['targetId'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2022-08-20 09:10:15 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_targetInternalId'),
|
2022-08-20 09:10:15 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['targetInternalId'],
|
2022-08-20 09:10:15 +12:00
|
|
|
'lengths' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
'orders' => [],
|
2022-08-20 09:10:15 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_topicId'),
|
2022-08-20 09:10:15 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['topicId'],
|
2022-08-20 09:10:15 +12:00
|
|
|
'lengths' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
'orders' => [],
|
2022-08-20 09:10:15 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_topicInternalId'),
|
2023-07-07 12:12:39 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['topicInternalId'],
|
2023-07-07 12:12:39 +12:00
|
|
|
'lengths' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
'orders' => [],
|
2023-08-24 08:23:52 +12:00
|
|
|
]
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-08-17 01:18:38 +12:00
|
|
|
'targets' => [
|
|
|
|
'$collection' => ID::custom(DATABASE::METADATA),
|
|
|
|
'$id' => ID::custom('targets'),
|
|
|
|
'name' => 'Targets',
|
2022-04-27 23:06:53 +12:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('userId'),
|
2022-04-27 23:06:53 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
2022-04-27 23:06:53 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('userInternalId'),
|
2022-04-27 23:06:53 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
2022-04-27 23:06:53 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('providerId'),
|
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,
|
2023-07-10 15:06:48 +12:00
|
|
|
'required' => true,
|
2022-04-27 23:06:53 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('providerInternalId'),
|
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,
|
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
2022-04-27 23:06:53 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2022-06-07 21:37:09 +12:00
|
|
|
'filters' => [],
|
2022-04-27 23:06:53 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('providerType'),
|
2022-04-27 23:06:53 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-04-27 23:06:53 +12:00
|
|
|
'signed' => true,
|
2023-08-17 23:54:45 +12:00
|
|
|
'required' => false,
|
2022-04-27 23:06:53 +12:00
|
|
|
'default' => null,
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => false,
|
2023-08-17 23:54:45 +12:00
|
|
|
'filters' => ['subQueryProviderType'],
|
2022-04-27 23:06:53 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('identifier'),
|
2022-04-27 23:06:53 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 23:54:45 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-04-27 23:06:53 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
2022-04-27 23:06:53 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2023-08-25 07:52:16 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('topics'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => true,
|
|
|
|
'filters' => ['subQueryTopics'],
|
|
|
|
]
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_userId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['userId'],
|
|
|
|
'lengths' => [128],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_userInternalId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['userInternalId'],
|
|
|
|
'lengths' => [128],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_providerId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['providerId'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_providerInternalId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['providerInternalId'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_providerType'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['providerType'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
|
|
|
],
|
|
|
|
],
|
2023-08-25 07:52:16 +12:00
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
];
|
|
|
|
|
|
|
|
$projectCollections = array_merge([
|
|
|
|
'databases' => [
|
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('databases'),
|
|
|
|
'name' => 'Databases',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('name'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 256,
|
|
|
|
'required' => true,
|
|
|
|
'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-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('enabled'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
2023-08-17 01:18:38 +12:00
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'default' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-06-15 12:20:18 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2022-02-01 09:10:12 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'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
|
|
|
],
|
2023-06-15 12:20:18 +12:00
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_fulltext_search'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_name'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [256],
|
2023-06-15 12:20:18 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => [
|
2023-06-15 12:20:18 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('attributes'),
|
|
|
|
'name' => 'Attributes',
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('databaseInternalId'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2022-02-01 23:42:11 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
2022-02-01 23:42:11 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2022-02-01 23:42:11 +13:00
|
|
|
],
|
2022-02-01 09:10:12 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('databaseId'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-07-06 04:29:12 +12:00
|
|
|
'signed' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('collectionInternalId'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +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-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('collectionId'),
|
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,
|
2023-07-10 15:06:48 +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-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('key'),
|
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,
|
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-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('type'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 256,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'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('status'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('error'),
|
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-08-17 01:18:38 +12:00
|
|
|
'default' => null,
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('size'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 0,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'default' => null,
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('required'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 0,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2023-08-17 01:18:38 +12: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-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('default'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['casting'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('signed'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('array'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('format'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 64,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('formatOptions'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => new stdClass(),
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['json', 'range', 'enum'],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('filters'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 64,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => true,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('options'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['json'],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2020-02-23 21:56:40 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_db_collection'),
|
2022-04-27 21:13:34 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['databaseInternalId', 'collectionInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC, Database::ORDER_ASC],
|
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-08-17 01:18:38 +12:00
|
|
|
'indexes' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('indexes'),
|
|
|
|
'name' => 'Indexes',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('databaseInternalId'),
|
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,
|
2023-07-10 15:06:48 +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-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('databaseId'),
|
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,
|
2023-08-17 01:18:38 +12:00
|
|
|
'signed' => false,
|
|
|
|
'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-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('collectionInternalId'),
|
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,
|
2023-07-10 15:06:48 +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-17 01:18:38 +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,
|
2023-08-17 01:18:38 +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-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('key'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +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,
|
2023-08-17 01:18:38 +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-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('type'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('status'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16,
|
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
|
|
|
],
|
2022-04-27 21:13:34 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('error'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +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,
|
2020-02-21 09:43:21 +13: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-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('attributes'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
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,
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => true,
|
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-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('lengths'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
2023-03-07 03:24:02 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('orders'),
|
2023-03-07 03:24:02 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 4,
|
2023-03-07 03:24:02 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2022-02-17 05:26:05 +13:00
|
|
|
'default' => null,
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => true,
|
2022-02-17 05:26:05 +13:00
|
|
|
'filters' => [],
|
2023-03-07 03:24:02 +13: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
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_db_collection'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['databaseInternalId', 'collectionInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC, Database::ORDER_ASC],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'functions' => [
|
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('functions'),
|
|
|
|
'name' => 'Functions',
|
|
|
|
'attributes' => [
|
2022-08-25 06:41:26 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('execute'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 128,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => true,
|
|
|
|
'filters' => [],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('name'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('enabled'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => true,
|
|
|
|
'array' => false,
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('runtime'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
2022-06-07 21:37:09 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('deploymentInternalId'),
|
2022-06-07 21:37:09 +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-07 21:37:09 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('deployment'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'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-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('vars'),
|
2022-06-15 05:15:22 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2022-06-15 05:15:22 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['subQueryVariables'],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('events'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => true,
|
2022-06-15 05:15:22 +12:00
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('scheduleInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2022-09-09 20:49:18 +12:00
|
|
|
'required' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('scheduleId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +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,
|
2020-07-15 04:13:18 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('schedule'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 128,
|
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,
|
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-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('timeout'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => 0,
|
2023-08-17 01:18:38 +12:00
|
|
|
'signed' => true,
|
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-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2021-05-18 05:50:44 +12:00
|
|
|
],
|
2022-02-17 05:26:05 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2022-02-17 05:26:05 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2022-02-17 05:26:05 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_name'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [768],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_enabled'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['enabled'],
|
2022-02-17 05:26:05 +13:00
|
|
|
'lengths' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2022-02-17 05:26:05 +13:00
|
|
|
],
|
2022-08-25 06:41:26 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_runtime'),
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['runtime'],
|
|
|
|
'lengths' => [768],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_deployment'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['deployment'],
|
2022-08-25 06:41:26 +12:00
|
|
|
'lengths' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_schedule'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['schedule'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_timeout'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['timeout'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
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-17 01:18:38 +12:00
|
|
|
'deployments' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('deployments'),
|
|
|
|
'name' => 'Deployments',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2020-02-21 09:43:21 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('resourceInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2022-12-26 01:13:52 +13:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-08-05 07:15:32 +12:00
|
|
|
'required' => true,
|
2022-12-26 01:13:52 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +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,
|
|
|
|
'required' => false,
|
|
|
|
'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-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('resourceType'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
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,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('buildInternalId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
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-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('buildId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-09-09 20:49:18 +12:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
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,
|
2022-09-09 20:49:18 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2020-07-15 04:13:18 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => false,
|
|
|
|
'$id' => ID::custom('entrypoint'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 2048,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'filters' => [],
|
2020-07-15 04:13:18 +12:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('path'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 2048,
|
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-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('size'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 0,
|
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-11-07 10:41:33 +13:00
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('metadata'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384, // https://tools.ietf.org/html/rfc4288#section-4.2
|
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-02-21 09:43:21 +13:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['json'],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('chunksTotal'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
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,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2022-09-12 00:20:26 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('chunksUploaded'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2022-09-12 00:20:26 +12:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2022-09-12 00:20:26 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2022-12-23 06:18:54 +13:00
|
|
|
'filters' => [],
|
2022-09-12 00:20:26 +12:00
|
|
|
],
|
2020-05-13 10:00:00 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2022-01-26 05:51:05 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2022-01-26 05:51:05 +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,
|
2022-01-26 05:51:05 +13:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('activate'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 0,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2020-02-21 09:43:21 +13:00
|
|
|
'required' => false,
|
2023-08-17 01:18:38 +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-24 08:23:52 +12:00
|
|
|
]
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_resource'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['resourceId'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2020-02-21 09:43:21 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_resource_type'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['resourceType'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_entrypoint'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['entrypoint'],
|
|
|
|
'lengths' => [768],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_size'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['size'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_buildId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['buildId'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_activate'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['activate'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'builds' => [
|
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('builds'),
|
|
|
|
'name' => 'Builds',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('startTime'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2020-05-13 10:00:00 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-02-21 09:43:21 +13:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['datetime'],
|
2020-02-21 09:43:21 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('endTime'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
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-08-17 01:18:38 +12:00
|
|
|
'filters' => ['datetime'],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
2020-02-29 19:24:46 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('duration'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
2022-01-26 05:51:05 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'default' => null,
|
2022-01-26 05:51:05 +13:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2022-01-26 05:51:05 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => 'deploymentInternalId',
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('deploymentId'),
|
2021-12-07 03:18:50 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-07 03:18:50 +13:00
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'default' => null,
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
2021-05-18 05:50:44 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('runtime'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 2048,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => '',
|
2021-05-18 05:50:44 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2021-05-18 05:50:44 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('status'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 256,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => 'processing',
|
2021-05-18 05:50:44 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2021-05-18 05:50:44 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('outputPath'),
|
2022-02-22 21:03:24 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +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-08-17 01:18:38 +12:00
|
|
|
'default' => '',
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2022-02-22 21:03:24 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('stderr'),
|
2022-02-22 21:03:24 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 1000000,
|
2022-02-22 21:03:24 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'default' => '',
|
2022-02-22 21:03:24 +13:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2022-02-22 21:03:24 +13:00
|
|
|
],
|
2021-12-03 19:58:09 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('stdout'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-03 19:58:09 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 1000000,
|
2021-12-09 04:08:53 +13:00
|
|
|
'signed' => true,
|
2021-12-03 19:58:09 +13:00
|
|
|
'required' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'default' => '',
|
2021-12-03 19:58:09 +13:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2021-12-03 19:58:09 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('sourceType'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-03 19:58:09 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 2048,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => 'local',
|
2021-12-03 19:58:09 +13:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2021-12-03 19:58:09 +13:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('source'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 2048,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => '',
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2023-08-24 08:23:52 +12:00
|
|
|
]
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_deployment'),
|
2022-08-25 06:41:26 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['deploymentId'],
|
2023-06-15 12:20:18 +12:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2022-08-25 06:41:26 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-08-24 08:23:52 +12:00
|
|
|
]
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
2023-08-17 01:18:38 +12:00
|
|
|
'executions' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('executions'),
|
|
|
|
'name' => 'Executions',
|
2021-12-07 03:18:50 +13:00
|
|
|
'attributes' => [
|
2022-01-28 12:36:30 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('functionInternalId'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-01-28 12:36:30 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('functionId'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
2023-06-15 12:20:18 +12:00
|
|
|
'signed' => true,
|
2022-01-28 12:36:30 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => [],
|
2022-01-28 12:36:30 +13:00
|
|
|
],
|
2021-12-07 03:18:50 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('deploymentInternalId'),
|
2023-07-11 14:12:28 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2022-12-21 01:56:56 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('deploymentId'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-12-21 01:56:56 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2022-12-21 01:56:56 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => [],
|
2022-12-21 01:56:56 +13:00
|
|
|
],
|
2022-01-26 23:49:02 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => false,
|
|
|
|
'$id' => ID::custom('trigger'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-07 03:18:50 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 128,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('status'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 128,
|
|
|
|
'signed' => true,
|
2021-12-07 03:18:50 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2022-01-26 23:49:02 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('response'),
|
2022-12-23 06:18:54 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-01-26 23:49:02 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 1000000,
|
2022-01-26 23:49:02 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2022-01-26 05:51:05 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('stderr'),
|
2022-01-26 05:51:05 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 1000000,
|
2022-01-26 05:51:05 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-12-09 04:08:53 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('stdout'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 1000000,
|
2021-12-09 04:08:53 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('statusCode'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2023-06-15 12:20:18 +12:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-09 04:08:53 +13:00
|
|
|
'filters' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('duration'),
|
|
|
|
'type' => Database::VAR_FLOAT,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2021-12-09 04:08:53 +13:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2021-12-09 04:08:53 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2021-12-09 04:08:53 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => null,
|
2021-12-09 04:08:53 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2023-06-15 12:20:18 +12:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_function'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['functionId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_fulltext_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
2023-06-15 12:20:18 +12:00
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_trigger'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['trigger'],
|
|
|
|
'lengths' => [128],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_status'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['status'],
|
|
|
|
'lengths' => [128],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_statusCode'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['statusCode'],
|
2023-06-15 12:20:18 +12:00
|
|
|
'lengths' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_duration'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['duration'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2023-06-15 12:20:18 +12:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-08-17 01:18:38 +12:00
|
|
|
'variables' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'variables',
|
|
|
|
'name' => 'variables',
|
2023-06-15 12:20:18 +12:00
|
|
|
'attributes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => 'functionInternalId',
|
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,
|
2023-06-15 12:20:18 +12: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-08-17 01:18:38 +12:00
|
|
|
'$id' => 'functionId',
|
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' => 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-08-17 01:18:38 +12:00
|
|
|
'$id' => 'key',
|
2021-12-07 03:18:50 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +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' => 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-08-17 01:18:38 +12:00
|
|
|
'$id' => 'value',
|
2021-12-07 03:18:50 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 8192,
|
2022-12-23 06:18:54 +13:00
|
|
|
'signed' => true,
|
2023-02-03 05:36:32 +13:00
|
|
|
'required' => true,
|
2022-12-23 06:18:54 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-24 08:23:52 +12:00
|
|
|
'filters' => [ 'encrypt' ]
|
2022-12-23 06:18:54 +13:00
|
|
|
],
|
2020-05-13 10:00:00 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('search'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2021-12-07 03:18:50 +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-07 03:18:50 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => '_key_function',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['functionInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +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],
|
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => '_key_key',
|
2021-12-07 03:18:50 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['key'],
|
2021-12-07 03:18:50 +13:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('_fulltext_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
|
|
|
],
|
2021-12-07 03:18:50 +13:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-08-17 01:18:38 +12:00
|
|
|
'cache' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'cache',
|
|
|
|
'name' => 'Cache',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2020-05-13 10:00:00 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => 'resource',
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 255,
|
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
|
|
|
],
|
2020-07-15 04:13:18 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => 'accessedAt',
|
2023-06-15 12:20:18 +12:00
|
|
|
'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,
|
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,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => ['datetime'],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => 'signature',
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 255,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-06 08:37:59 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2023-08-24 08:23:52 +12:00
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
'indexes' => [
|
2020-05-13 10:00:00 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => '_key_accessedAt',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['accessedAt'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2020-05-13 10:00:00 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => '_key_resource',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['resource'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2023-08-09 01:36:44 +12:00
|
|
|
|
|
|
|
'migrations' => [
|
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('migrations'),
|
|
|
|
'name' => 'Migrations',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('status'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('stage'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('source'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 8192,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('credentials'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 65536,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => [],
|
|
|
|
'array' => false,
|
2023-08-10 10:46:23 +12:00
|
|
|
'filters' => ['json', 'encrypt'],
|
2023-08-09 01:36:44 +12:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('resources'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => [],
|
|
|
|
'array' => true,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('statusCounters'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 3000,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['json'],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('resourceData'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 131070,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['json'],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('errors'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 65535,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => true,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('search'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2023-08-24 08:23:52 +12:00
|
|
|
]
|
2023-08-09 01:36:44 +12:00
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
|
|
|
'$id' => '_key_status',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['status'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => '_key_stage',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['stage'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => '_key_source',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['source'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_fulltext_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2023-08-24 08:23:52 +12:00
|
|
|
]
|
2023-08-09 01:36:44 +12:00
|
|
|
],
|
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
], $commonCollections);
|
|
|
|
|
|
|
|
$consoleCollections = array_merge([
|
|
|
|
'projects' => [
|
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('projects'),
|
|
|
|
'name' => 'Projects',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('teamInternalId'),
|
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,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
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-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('teamId'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +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,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2021-08-24 21:32:27 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 128,
|
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' => [],
|
2022-08-25 06:41:26 +12:00
|
|
|
],
|
2020-05-06 07:42:35 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('region'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 128,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
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-06 07:42:35 +12:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('description'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 256,
|
2023-06-15 12:20:18 +12:00
|
|
|
'signed' => true,
|
2020-07-15 15:38:57 +12:00
|
|
|
'required' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'default' => null,
|
2020-07-15 15:38:57 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => [],
|
2020-07-15 15:38:57 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('database'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 256,
|
2023-06-15 12:20:18 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
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' => [],
|
2021-09-13 22:50:45 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('logo'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-06-15 12:20:18 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-09-13 22:50:45 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('url'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2021-09-13 22:50:45 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-09-13 22:50:45 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2021-09-22 22:03:04 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('version'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16,
|
|
|
|
'signed' => true,
|
2021-09-22 22:03:04 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-09-22 22:03:04 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2021-09-22 22:03:04 +12:00
|
|
|
],
|
2023-06-15 12:20:18 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('legalName'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 256,
|
2023-06-15 12:20:18 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => null,
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2020-10-31 09:04:32 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('legalCountry'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 21:08:17 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 256,
|
2023-06-15 12:20:18 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
2020-05-06 07:42:35 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('legalState'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 21:08:17 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 256,
|
2021-12-02 21:08:17 +13:00
|
|
|
'signed' => true,
|
2020-05-13 10:00:00 +12:00
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => null,
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => [],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('legalCity'),
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2022-08-04 12:08:16 +12:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 256,
|
2023-06-15 12:20:18 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => null,
|
2020-05-13 10:00:00 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => [],
|
2020-05-13 10:00:00 +12:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('legalAddress'),
|
2021-12-02 21:08:17 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 256,
|
2023-06-15 12:20:18 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'default' => null,
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'filters' => [],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('legalTaxId'),
|
2021-12-02 21:08:17 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 256,
|
2023-06-15 12:20:18 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2022-08-31 00:52:53 +12:00
|
|
|
'array' => false,
|
2021-12-02 21:08:17 +13:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2022-08-31 00:52:53 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('services'),
|
2022-08-31 00:52:53 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2023-06-15 12:20:18 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'default' => [],
|
2022-08-31 00:52:53 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['json'],
|
2022-08-31 00:52:53 +12:00
|
|
|
],
|
2021-12-02 21:08:17 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('smtp'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 21:08:17 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2023-06-15 12:20:18 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => [],
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['json', 'encrypt'],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('templates'),
|
2021-12-02 21:08:17 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 1000000, // TODO make sure size fits
|
2021-12-02 21:08:17 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => [],
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['json'],
|
2020-07-15 15:38:57 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('auths'),
|
2021-12-02 21:08:17 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2021-12-02 21:08:17 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'default' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['json'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('authProviders'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'default' => [],
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['json', 'encrypt'],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
2022-10-01 01:22:11 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('platforms'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2022-10-01 01:22:11 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => false,
|
2022-10-01 01:22:11 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['subQueryPlatforms'],
|
2022-10-01 01:22:11 +13:00
|
|
|
],
|
2020-07-19 01:49:20 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('webhooks'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-07-19 01:49:20 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['subQueryWebhooks'],
|
2020-07-19 01:49:20 +12:00
|
|
|
],
|
2020-10-31 09:04:32 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('keys'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2023-06-15 12:20:18 +12: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,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['subQueryKeys'],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
2020-05-06 07:42:35 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('domains'),
|
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,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['subQueryDomains'],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('search'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2022-12-13 20:35:05 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2020-05-06 07:42:35 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_name'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [128],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_team'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['teamId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2021-12-02 00:48:23 +13:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2022-01-19 00:05:04 +13:00
|
|
|
|
2023-08-17 01:18:38 +12:00
|
|
|
'schedules' => [
|
2022-08-14 22:33:36 +12:00
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('schedules'),
|
|
|
|
'name' => 'schedules',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2021-06-12 01:30:33 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('resourceType'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 100,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('resourceInternalId'),
|
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,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-06-12 01:30:33 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('resourceId'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('resourceUpdatedAt'),
|
2022-07-13 01:32:39 +12:00
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-02 00:48:23 +13:00
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
2022-07-13 01:32:39 +12:00
|
|
|
'signed' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2021-06-12 01:30:33 +12:00
|
|
|
'array' => false,
|
2022-08-16 03:03:03 +12:00
|
|
|
'filters' => ['datetime'],
|
2021-06-12 01:30:33 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('projectId'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('schedule'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 100,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('active'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('region'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 10,
|
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-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-06-12 01:30:33 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_region_resourceType_resourceUpdatedAt'),
|
2021-12-02 00:48:23 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-24 08:23:52 +12:00
|
|
|
'attributes' => ['region', 'resourceType','resourceUpdatedAt'],
|
2021-12-02 00:48:23 +13:00
|
|
|
'lengths' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
'orders' => [],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_region_resourceType_projectId_resourceId'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['region', 'resourceType', 'projectId', 'resourceId'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
|
|
|
],
|
|
|
|
],
|
2020-07-03 09:48:37 +12:00
|
|
|
],
|
2022-11-24 20:53:52 +13:00
|
|
|
|
2023-08-17 01:18:38 +12:00
|
|
|
'platforms' => [
|
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('platforms'),
|
|
|
|
'name' => 'platforms',
|
2022-07-03 21:36:59 +12:00
|
|
|
'attributes' => [
|
2022-08-15 21:05:41 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('projectInternalId'),
|
2022-08-15 21:05:41 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-23 21:31:32 +13:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-08-15 21:05:41 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
2022-08-15 21:05:41 +12:00
|
|
|
'default' => null,
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => false,
|
2022-07-03 21:36:59 +12:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2021-12-23 21:31:32 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('projectId'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2021-12-23 21:31:32 +13:00
|
|
|
'default' => null,
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => false,
|
2021-12-23 21:31:32 +13:00
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('type'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16,
|
2021-12-23 21:31:32 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 256,
|
2021-12-23 21:31:32 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
2021-12-23 21:31:32 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('key'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-23 21:31:32 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('store'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 256,
|
2021-12-23 21:31:32 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('hostname'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 256,
|
2021-12-23 21:31:32 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2023-08-24 08:23:52 +12:00
|
|
|
]
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2021-12-23 21:31:32 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_project'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['projectInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2021-12-23 21:31:32 +13:00
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'domains' => [
|
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('domains'),
|
|
|
|
'name' => 'domains',
|
|
|
|
'attributes' => [
|
2021-12-23 21:31:32 +13:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('projectInternalId'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-23 21:31:32 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
2021-12-23 21:31:32 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('projectId'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-23 21:31:32 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('updated'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
2021-12-23 21:31:32 +13:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2021-12-23 21:31:32 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['datetime'],
|
2021-12-23 21:31:32 +13:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('domain'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-23 21:31:32 +13:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
2021-12-23 21:31:32 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('tld'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-23 21:31:32 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('registerable'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-23 21:31:32 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('verification'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2021-12-23 21:31:32 +13:00
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
2023-08-17 01:18:38 +12:00
|
|
|
'signed' => true,
|
2021-12-23 21:31:32 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('certificateId'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2021-12-23 21:31:32 +13:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_project'),
|
2021-12-23 21:31:32 +13:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['projectInternalId'],
|
2021-12-23 21:31:32 +13:00
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
2021-12-23 21:31:32 +13:00
|
|
|
],
|
2022-07-20 19:18:49 +12:00
|
|
|
|
2023-08-17 01:18:38 +12:00
|
|
|
'keys' => [
|
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('keys'),
|
|
|
|
'name' => 'keys',
|
2022-07-20 19:18:49 +12:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('projectInternalId'),
|
2022-07-20 19:18:49 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-02-03 05:36:32 +13:00
|
|
|
'required' => true,
|
2022-07-20 19:18:49 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('projectId'),
|
2022-07-20 19:18:49 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-06-15 12:20:18 +12:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => 0,
|
2022-07-20 19:18:49 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2022-07-20 19:18:49 +12:00
|
|
|
],
|
|
|
|
[
|
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-08-17 01:18:38 +12:00
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-07-20 19:18:49 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
2022-07-20 19:18:49 +12:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('scopes'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2022-07-20 19:18:49 +12:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => true,
|
|
|
|
'filters' => [],
|
2023-06-15 12:20:18 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('secret'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2023-06-15 12:20:18 +12:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 512, // var_dump of \bin2hex(\random_bytes(128)) => string(256) doubling for encryption
|
|
|
|
'signed' => true,
|
2022-07-20 19:18:49 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['encrypt'],
|
2023-06-15 12:20:18 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('expire'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'default' => null,
|
2023-06-15 12:20:18 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['datetime'],
|
2023-06-15 12:20:18 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('accessedAt'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2023-06-15 12:20:18 +12:00
|
|
|
'required' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'default' => null,
|
2023-06-15 12:20:18 +12:00
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['datetime'],
|
2022-08-27 01:38:39 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('sdks'),
|
2022-08-27 01:38:39 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2022-08-27 01:38:39 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => true,
|
2022-08-27 01:38:39 +12:00
|
|
|
'default' => null,
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => true,
|
2022-08-27 01:38:39 +12:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2022-07-20 19:18:49 +12:00
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_project'),
|
2022-08-25 03:07:18 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['projectInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2022-08-25 03:07:18 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2022-08-27 01:38:39 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => '_key_accessedAt',
|
2023-06-15 12:20:18 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['accessedAt'],
|
2022-08-27 01:38:39 +12:00
|
|
|
'lengths' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
'orders' => [],
|
2022-08-27 01:38:39 +12:00
|
|
|
],
|
2022-07-20 19:18:49 +12:00
|
|
|
],
|
|
|
|
],
|
2023-08-03 02:58:30 +12:00
|
|
|
|
2023-08-17 01:18:38 +12:00
|
|
|
'webhooks' => [
|
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('webhooks'),
|
|
|
|
'name' => 'webhooks',
|
2023-08-03 02:58:30 +12:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('projectInternalId'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('projectId'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
|
|
|
],
|
2023-08-03 02:58:30 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('url'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('httpUser'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('httpPass'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY, // TODO will the length suffice after encryption?
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['encrypt'],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('security'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('events'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => true,
|
2023-08-03 02:58:30 +12:00
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('signatureKey'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 2048,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [],
|
2023-08-03 02:58:30 +12:00
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2023-08-03 02:58:30 +12:00
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_project'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['projectInternalId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-08-24 08:23:52 +12:00
|
|
|
]
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'certificates' => [
|
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('certificates'),
|
|
|
|
'name' => 'Certificates',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('domain'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12: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,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'default' => null,
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('issueDate'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_DATETIME,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['datetime'],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('renewDate'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
2023-08-03 02:58:30 +12:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['datetime'],
|
2023-08-03 02:58:30 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('attempts'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('log'),
|
|
|
|
'type' => Database::VAR_STRING,
|
2023-08-03 02:58:30 +12:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2023-08-03 02:58:30 +12:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('updated'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
2023-08-03 02:58:30 +12:00
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['datetime'],
|
2023-08-03 02:58:30 +12:00
|
|
|
],
|
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_domain'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['domain'],
|
|
|
|
'lengths' => [255],
|
2023-08-03 02:58:30 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
|
|
|
|
'realtime' => [
|
|
|
|
'$collection' => ID::custom(Database::METADATA),
|
|
|
|
'$id' => ID::custom('realtime'),
|
|
|
|
'name' => 'Realtime Connections',
|
2023-08-03 02:58:30 +12:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('container'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('timestamp'),
|
|
|
|
'type' => Database::VAR_DATETIME,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['datetime'],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('value'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => [], //TODO: use json filter
|
2023-08-24 08:23:52 +12:00
|
|
|
]
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_timestamp'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['timestamp'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_DESC],
|
|
|
|
],
|
2023-08-24 08:23:52 +12:00
|
|
|
]
|
2023-08-17 01:18:38 +12:00
|
|
|
],
|
|
|
|
], $commonCollections);
|
|
|
|
|
|
|
|
$bucketCollections = [
|
|
|
|
'files' => [
|
|
|
|
'$collection' => ID::custom('buckets'),
|
|
|
|
'$id' => ID::custom('files'),
|
|
|
|
'$name' => 'Files',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'array' => false,
|
|
|
|
'$id' => ID::custom('bucketId'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2023-08-03 02:58:30 +12:00
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'array' => false,
|
|
|
|
'$id' => ID::custom('bucketInternalId'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('name'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 2048,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('path'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('signature'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2023-08-03 02:58:30 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('mimeType'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 255, // https://tools.ietf.org/html/rfc4288#section-4.2
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2023-08-03 02:58:30 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('metadata'),
|
|
|
|
'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'],
|
2023-08-03 02:58:30 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('sizeOriginal'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 8,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2023-08-03 02:58:30 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('sizeActual'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 8,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('algorithm'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 255,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('comment'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 2048,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('openSSLVersion'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 64,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('openSSLCipher'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 64,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('openSSLTag'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 2048,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('openSSLIV'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 2048,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('chunksTotal'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('chunksUploaded'),
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('search'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
2023-08-03 02:58:30 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_bucket'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['bucketId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
2023-08-03 02:58:30 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_name'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [768],
|
2023-08-03 02:58:30 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_signature'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['signature'],
|
|
|
|
'lengths' => [768],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('_key_mimeType'),
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['mimeType'],
|
2023-08-03 02:58:30 +12:00
|
|
|
'lengths' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-08-03 02:58:30 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_sizeOriginal'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['sizeOriginal'],
|
2023-08-03 02:58:30 +12:00
|
|
|
'lengths' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-08-03 02:58:30 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_chunksTotal'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['chunksTotal'],
|
2023-08-03 02:58:30 +12:00
|
|
|
'lengths' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-08-03 02:58:30 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_chunksUploaded'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['chunksUploaded'],
|
2023-08-03 02:58:30 +12:00
|
|
|
'lengths' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
2023-08-24 08:23:52 +12:00
|
|
|
]
|
2023-08-03 02:58:30 +12:00
|
|
|
],
|
2023-08-17 01:18:38 +12:00
|
|
|
];
|
|
|
|
|
|
|
|
$dbCollections = [
|
|
|
|
'collections' => [
|
|
|
|
'$collection' => ID::custom('databases'),
|
|
|
|
'$id' => ID::custom('collections'),
|
|
|
|
'name' => 'Collections',
|
2023-08-03 02:58:30 +12:00
|
|
|
'attributes' => [
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('databaseInternalId'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('databaseId'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2023-08-03 02:58:30 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('name'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 256,
|
2023-08-03 02:58:30 +12:00
|
|
|
'required' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'signed' => true,
|
2023-08-03 02:58:30 +12:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('enabled'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2023-08-03 02:58:30 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('documentSecurity'),
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
2023-08-03 02:58:30 +12:00
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('attributes'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 1000000,
|
|
|
|
'required' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
|
|
|
'array' => false,
|
2023-08-17 01:18:38 +12:00
|
|
|
'filters' => ['subQueryAttributes'],
|
2023-08-03 02:58:30 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('indexes'),
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 1000000,
|
|
|
|
'required' => false,
|
|
|
|
'signed' => true,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['subQueryIndexes'],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => ID::custom('search'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2023-08-17 01:18:38 +12:00
|
|
|
'size' => 16384,
|
2023-08-03 02:58:30 +12:00
|
|
|
'signed' => true,
|
2023-08-17 01:18:38 +12:00
|
|
|
'required' => false,
|
2023-08-03 02:58:30 +12:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_fulltext_search'),
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [],
|
2023-08-03 02:58:30 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_name'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [256],
|
2023-08-03 02:58:30 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_enabled'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['enabled'],
|
2023-08-03 02:58:30 +12:00
|
|
|
'lengths' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-08-03 02:58:30 +12:00
|
|
|
],
|
|
|
|
[
|
2023-08-17 01:18:38 +12:00
|
|
|
'$id' => ID::custom('_key_documentSecurity'),
|
2023-08-03 02:58:30 +12:00
|
|
|
'type' => Database::INDEX_KEY,
|
2023-08-17 01:18:38 +12:00
|
|
|
'attributes' => ['documentSecurity'],
|
2023-08-03 02:58:30 +12:00
|
|
|
'lengths' => [],
|
2023-08-17 01:18:38 +12:00
|
|
|
'orders' => [Database::ORDER_ASC],
|
2023-08-03 02:58:30 +12:00
|
|
|
],
|
|
|
|
],
|
2023-08-24 08:23:52 +12:00
|
|
|
]
|
2019-09-04 08:37:34 +12:00
|
|
|
];
|
|
|
|
|
2023-08-24 08:23:52 +12:00
|
|
|
|
2023-08-05 07:15:32 +12:00
|
|
|
$collections = [
|
2023-06-15 12:20:18 +12:00
|
|
|
'projects' => $projectCollections,
|
2023-08-24 08:23:52 +12:00
|
|
|
'console' => $consoleCollections,
|
2023-06-15 12:20:18 +12:00
|
|
|
'buckets' => $bucketCollections,
|
2023-08-24 08:23:52 +12:00
|
|
|
'databases' => $dbCollections
|
2023-08-05 07:15:32 +12:00
|
|
|
];
|
2019-09-04 08:37:34 +12:00
|
|
|
|
2022-01-19 00:05:04 +13:00
|
|
|
return $collections;
|