2019-08-10 02:46:09 +12:00
|
|
|
<?php
|
|
|
|
|
2020-03-29 01:42:16 +13:00
|
|
|
use Utopia\Config\Config;
|
2021-12-02 00:48:23 +13:00
|
|
|
use Utopia\Database\Database;
|
2019-08-10 02:46:09 +12:00
|
|
|
|
2020-10-31 09:04:32 +13:00
|
|
|
$providers = Config::getParam('providers', []);
|
2021-03-01 00:00:22 +13:00
|
|
|
$auth = Config::getParam('auth', []);
|
2020-03-29 01:42:16 +13:00
|
|
|
|
2021-12-23 21:31:32 +13:00
|
|
|
/**
|
|
|
|
* $collection => id of the parent collection where this will be inserted
|
|
|
|
* $id => id of this collection
|
|
|
|
* name => name of this collection
|
|
|
|
* project => whether or not this collection should be created per project
|
|
|
|
* attributes => list of attributes
|
|
|
|
* indexes => list of indexes
|
|
|
|
*/
|
|
|
|
|
2019-09-04 08:37:34 +12:00
|
|
|
$collections = [
|
2021-12-02 00:48:23 +13:00
|
|
|
'collections' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'collections',
|
2019-08-10 02:46:09 +12:00
|
|
|
'name' => 'Collections',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'name',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 256,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2019-08-15 10:01:27 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'dateCreated',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-15 10:01:27 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-15 10:01:27 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-15 10:01:27 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'dateUpdated',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-15 10:01:27 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-15 10:01:27 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-15 10:01:27 +12:00
|
|
|
],
|
2021-12-14 01:42:04 +13:00
|
|
|
[
|
|
|
|
'$id' => 'enabled',
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'permission',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 64,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'attributes',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 1000000,
|
|
|
|
'required' => false,
|
|
|
|
'signed' => true,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => ['subQueryAttributes'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'indexes',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 1000000,
|
|
|
|
'required' => false,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => ['subQueryIndexes'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'search',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => '_fulltext_search',
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [1024],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'attributes' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'attributes',
|
|
|
|
'name' => 'Attributes',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => 'collectionId',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'key',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'type',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'status',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'size',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'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
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'required',
|
|
|
|
'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
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'default',
|
|
|
|
'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,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => ['casting'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'signed',
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'size' => 0,
|
|
|
|
'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,
|
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
|
|
|
'$id' => 'array',
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'format',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 64,
|
|
|
|
'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,
|
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
|
|
|
'$id' => 'formatOptions',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => new stdClass,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => ['json', 'range', 'enum'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'filters',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 64,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => true,
|
|
|
|
'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
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => '_key_collection',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['collectionId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'indexes' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'indexes',
|
|
|
|
'name' => 'Indexes',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => 'collectionId',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'key',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'type',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'status',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-02-20 01:12:47 +13:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'attributes',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2021-02-20 01:12:47 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-02-20 01:12:47 +13:00
|
|
|
'array' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'lengths',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => true,
|
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
|
|
|
'$id' => 'orders',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 4,
|
|
|
|
'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' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
|
|
|
'$id' => '_key_collection',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['collectionId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-09-07 05:07:56 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
|
|
|
'projects' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'projects',
|
|
|
|
'name' => 'Projects',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => 'teamId',
|
|
|
|
'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
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'name',
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'description',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'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,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-02-19 23:02:02 +13:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'logo',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2021-03-29 22:16:56 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-02-19 23:02:02 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-02-19 23:02:02 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'url',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2021-02-19 23:02:02 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-02-19 23:02:02 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-02-19 23:02:02 +13:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'version',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'legalName',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'legalCountry',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'legalState',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2020-10-31 09:04:32 +13:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'legalCity',
|
|
|
|
'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
|
|
|
'$id' => 'legalAddress',
|
|
|
|
'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
|
|
|
'$id' => 'legalTaxId',
|
|
|
|
'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
|
|
|
'$id' => 'services',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-12-09 06:49:44 +13:00
|
|
|
'default' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => ['json'],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'auths',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-12-09 06:49:44 +13:00
|
|
|
'default' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => ['json'],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'providers',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2020-10-31 09:04:32 +13:00
|
|
|
'required' => false,
|
2021-12-09 06:49:44 +13:00
|
|
|
'default' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 20:58:12 +13:00
|
|
|
'filters' => ['json', 'encrypt'],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'platforms',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'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' => ['subQueryPlatforms'],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'webhooks',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'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' => ['subQueryWebhooks'],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'keys',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'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' => ['subQueryKeys'],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'domains',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'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' => ['subQueryDomains'],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'search',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'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
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => '_key_search',
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [2048],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
|
|
|
'platforms' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'platforms',
|
|
|
|
'name' => 'platforms',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => 'projectId',
|
|
|
|
'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,
|
2021-02-20 01:12:47 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'type',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16,
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'name',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2021-02-20 01:12:47 +13:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-02-20 01:12:47 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'key',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'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
|
|
|
'$id' => 'store',
|
|
|
|
'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' => [],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'hostname',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'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' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'dateCreated',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'dateUpdated',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
'indexes' => [
|
2021-02-20 01:12:47 +13:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => '_key_project',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['projectId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
|
|
|
'domains' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'domains',
|
|
|
|
'name' => 'domains',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => 'projectId',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2021-02-20 01:12:47 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'updated',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2021-02-20 01:12:47 +13:00
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
2021-02-20 01:12:47 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'domain',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => true,
|
2021-02-20 01:12:47 +13: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
|
|
|
'$id' => 'tld',
|
|
|
|
'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,
|
2021-02-20 01:12:47 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'registerable',
|
|
|
|
'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,
|
2021-02-20 01:12:47 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'verification',
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'certificateId',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
|
|
|
'$id' => '_key_project',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['projectId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
|
|
|
'keys' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'keys',
|
|
|
|
'name' => 'keys',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => 'projectId',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'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' => [],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'name',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2021-02-20 01:12:47 +13:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'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-12-02 00:48:23 +13:00
|
|
|
'$id' => 'scopes',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
|
|
|
'array' => true,
|
|
|
|
'filters' => [],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'secret',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-02 20:58:12 +13:00
|
|
|
'size' => 512, // var_dump of \bin2hex(\random_bytes(128)) => string(256) doubling for encryption
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2021-02-20 01:12:47 +13:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2021-02-20 01:12:47 +13:00
|
|
|
'array' => false,
|
2021-12-02 20:58:12 +13:00
|
|
|
'filters' => ['encrypt'],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
|
|
|
'$id' => '_key_project',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['projectId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2021-02-20 01:12:47 +13:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
|
|
|
'webhooks' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'webhooks',
|
|
|
|
'name' => 'webhooks',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => 'projectId',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'name',
|
|
|
|
'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,
|
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
|
|
|
'$id' => 'url',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'httpUser',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2021-12-09 06:49:44 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'httpPass',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-02 20:58:12 +13:00
|
|
|
'size' => Database::LENGTH_KEY, // TODO will the length suffice after encryption?
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2021-12-09 06:49:44 +13:00
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => false,
|
2021-12-02 20:58:12 +13:00
|
|
|
'filters' => ['encrypt'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'security',
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'events',
|
|
|
|
'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,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => true,
|
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
|
|
|
],
|
|
|
|
'indexes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => '_key_project',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['projectId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'users' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'users',
|
|
|
|
'name' => 'Users',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => 'name',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'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
|
|
|
'$id' => 'email',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 320,
|
|
|
|
'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
|
|
|
'$id' => 'status',
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'password',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
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
|
|
|
'$id' => 'passwordUpdate',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'prefs',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-21 04:21:01 +13:00
|
|
|
'size' => 65535,
|
2021-12-02 00:48:23 +13:00
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-28 23:48:50 +13:00
|
|
|
'default' => new \stdClass(),
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => ['json'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-02-28 23:16:27 +13:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'registration',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2021-02-28 23:16:27 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2021-02-28 23:16:27 +13:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'emailVerification',
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2021-07-05 19:12:59 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'reset',
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'sessions',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-09 06:49:44 +13:00
|
|
|
'default' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => ['json'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'tokens',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-09 06:49:44 +13:00
|
|
|
'default' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => ['json'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2020-02-23 21:56:40 +13:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'memberships',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2021-12-09 06:49:44 +13:00
|
|
|
'default' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => ['json'],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'search',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'deleted',
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
|
|
|
'$id' => '_key_email',
|
|
|
|
'type' => Database::INDEX_UNIQUE,
|
|
|
|
'attributes' => ['email'],
|
|
|
|
'lengths' => [320],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => '_key_search',
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [2048],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => '_key_deleted_email',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['deleted', 'email'],
|
|
|
|
'lengths' => [0, 320],
|
|
|
|
'orders' => [Database::ORDER_ASC, Database::ORDER_ASC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
|
|
|
'sessions' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'sessions',
|
|
|
|
'name' => 'Sessions',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => 'userId',
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'provider',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 128,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'providerUid',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'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' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'providerToken',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 20:58:12 +13:00
|
|
|
'filters' => ['encrypt'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'secret',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
2021-12-02 22:47:40 +13: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,
|
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 20:58:12 +13:00
|
|
|
'filters' => ['encrypt'],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'expire',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'userAgent',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
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
|
|
|
'$id' => 'ip',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 45, // https://stackoverflow.com/a/166157/2299554
|
|
|
|
'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
|
|
|
'$id' => 'countryCode',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2,
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'osCode',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'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
|
|
|
'$id' => 'osName',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'osVersion',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'clientType',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'clientCode',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'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
|
|
|
'$id' => 'clientName',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'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
|
|
|
'$id' => 'clientVersion',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'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
|
|
|
'$id' => 'clientEngine',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'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
|
|
|
'$id' => 'clientEngineVersion',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'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
|
|
|
'$id' => 'deviceName',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'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 23:38:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-02-28 23:16:27 +13:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'deviceBrand',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2021-02-28 23:16:27 +13:00
|
|
|
'required' => false,
|
2020-02-21 09:43:21 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-02-28 23:16:27 +13:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'deviceModel',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'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' => [],
|
2021-07-05 19:12:59 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => '_key_provider_providerUid',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['provider', 'providerUid'],
|
|
|
|
'lengths' => [100, 100],
|
|
|
|
'orders' => [Database::ORDER_ASC, Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'teams' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'teams',
|
|
|
|
'name' => 'Teams',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => 'name',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 128,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12: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' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'dateCreated',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'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,
|
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
|
|
|
'$id' => 'sum',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'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,
|
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
|
|
|
],
|
2020-02-23 21:56:40 +13:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'search',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
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
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
'indexes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => '_key_search',
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [2048],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'memberships' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'memberships',
|
|
|
|
'name' => 'Memberships',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => 'teamId',
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'userId',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'roles',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 128,
|
|
|
|
'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' => true,
|
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
|
|
|
'$id' => 'invited',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'joined',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'confirm',
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'secret',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'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-03 01:59:28 +13:00
|
|
|
'filters' => ['encrypt'],
|
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
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => '_key_unique',
|
|
|
|
'type' => Database::INDEX_UNIQUE,
|
|
|
|
'attributes' => ['teamId', 'userId'],
|
|
|
|
'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
|
|
|
'$id' => '_key_team',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['teamId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => '_key_user',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['userId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
|
|
|
'functions' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'functions',
|
2020-05-05 02:35:01 +12:00
|
|
|
'name' => 'Functions',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'execute',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 128,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
2019-08-10 02:46:09 +12:00
|
|
|
'default' => null,
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => true,
|
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'name',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
2020-05-05 02:35:01 +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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'dateCreated',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'dateUpdated',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'status',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'runtime',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'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 23:38:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2020-02-21 09:43:21 +13:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'tag',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2020-05-06 05:30:12 +12:00
|
|
|
'required' => false,
|
2020-02-21 09:43:21 +13:00
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-02-21 09:43:21 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'vars',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 8192,
|
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2021-12-09 06:49:44 +13:00
|
|
|
'default' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => ['json', 'encrypt'],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'events',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 256,
|
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-06 05:30:12 +12:00
|
|
|
'array' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'schedule',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 128,
|
|
|
|
'signed' => true,
|
2020-02-21 09:43:21 +13: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' => [],
|
2020-02-21 09:43:21 +13:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'schedulePrevious',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2020-05-13 10:00:00 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'scheduleNext',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'timeout',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2020-05-13 10:00:00 +12:00
|
|
|
'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
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'search',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
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
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => '_key_search',
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [2048],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2020-02-29 19:24:46 +13:00
|
|
|
],
|
2020-05-06 05:30:12 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
|
|
|
'tags' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'tags',
|
2020-05-06 07:42:35 +12:00
|
|
|
'name' => 'Tags',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2020-02-29 19:24:46 +13:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'dateCreated',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'functionId',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2020-02-23 21:56:40 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-02-23 21:56:40 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-02-23 21:56:40 +13:00
|
|
|
],
|
2021-05-18 05:50:44 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'array' => false,
|
|
|
|
'$id' => 'command',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'path',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'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,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2021-05-18 05:50:44 +12:00
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'size',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-03 19:58:09 +13:00
|
|
|
[
|
|
|
|
'$id' => 'chunksTotal',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'chunksUploaded',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'search',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2019-11-17 11:48:32 +13:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => '_key_function',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['functionId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => '_key_search',
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [2048],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
|
|
|
'executions' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'executions',
|
2020-05-06 07:42:35 +12:00
|
|
|
'name' => 'Executions',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2019-08-10 02:46:09 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'dateCreated',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'functionId',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2020-05-06 07:42:35 +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
|
|
|
'$id' => 'tagId',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
2020-05-06 07:42:35 +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
|
|
|
],
|
|
|
|
[
|
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'trigger',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 128,
|
|
|
|
'signed' => true,
|
2020-07-19 01:49:20 +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
|
|
|
'$id' => 'status',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 128,
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'stdout',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
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
|
|
|
'$id' => 'stderr',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
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
|
|
|
'$id' => 'exitCode',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'time',
|
|
|
|
'type' => Database::VAR_FLOAT,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'search',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2020-05-05 02:35:01 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-05 02:35:01 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
|
|
|
'$id' => '_key_function',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['functionId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => '_fulltext_search',
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [16384],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
|
|
|
|
'certificates' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'certificates',
|
|
|
|
'name' => 'Certificates',
|
|
|
|
'attributes' => [
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'domain',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
// 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,
|
|
|
|
'signed' => true,
|
2020-05-05 02:35:01 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-05 02:35:01 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'issueDate',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2020-05-05 02:35:01 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-05 02:35:01 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2020-05-13 10:00:00 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'renewDate',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
2020-05-13 10:00:00 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-13 10:00:00 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-13 10:00:00 +12:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'attempts',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'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
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'log',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2020-07-15 04:13:18 +12:00
|
|
|
'required' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-07-15 04:13:18 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-07-15 04:13:18 +12:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'updated',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'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' => [],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
|
|
|
'$id' => '_key_domain',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['domain'],
|
|
|
|
'lengths' => [255],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 21:08:17 +13:00
|
|
|
|
|
|
|
'buckets' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'buckets',
|
|
|
|
'name' => 'Buckets',
|
|
|
|
'attributes' => [
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2021-12-02 21:08:17 +13:00
|
|
|
'$id' => 'dateCreated',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'signed' => false,
|
|
|
|
'size' => 0,
|
2020-05-06 05:30:12 +12:00
|
|
|
'required' => false,
|
2020-05-05 02:35:01 +12:00
|
|
|
'array' => false,
|
2021-12-02 21:08:17 +13:00
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 21:08:17 +13:00
|
|
|
'$id' => 'dateUpdated',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
2022-01-08 00:29:52 +13:00
|
|
|
'signed' => false,
|
2020-05-06 05:30:12 +12:00
|
|
|
'required' => false,
|
2021-12-02 21:08:17 +13:00
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 21:08:17 +13:00
|
|
|
'$id' => 'enabled',
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => true,
|
2020-05-06 08:37:59 +12:00
|
|
|
'array' => false,
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
2020-05-13 10:00:00 +12:00
|
|
|
[
|
2021-12-02 21:08:17 +13:00
|
|
|
'$id' => 'name',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => 128,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => true,
|
2020-05-13 10:00:00 +12:00
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2021-12-02 21:08:17 +13:00
|
|
|
'$id' => 'permission',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'size' => 64,
|
|
|
|
'signed' => true,
|
2020-05-13 10:00:00 +12:00
|
|
|
'required' => false,
|
2021-12-02 21:08:17 +13:00
|
|
|
'default' => null,
|
2020-05-13 10:00:00 +12:00
|
|
|
'array' => false,
|
2021-12-02 21:08:17 +13:00
|
|
|
'filters' => [],
|
2020-05-13 10:00:00 +12:00
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2021-12-02 21:08:17 +13:00
|
|
|
'$id' => 'adapter',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => 64,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => true,
|
2020-05-06 08:37:59 +12:00
|
|
|
'array' => false,
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 21:08:17 +13:00
|
|
|
|
|
|
|
'$id' => 'adapterCredentials',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => 16384,
|
|
|
|
'format' => '',
|
2020-05-05 02:35:01 +12:00
|
|
|
'required' => false,
|
|
|
|
'array' => false,
|
2021-12-02 21:08:17 +13:00
|
|
|
'filters' => ['json']
|
2020-05-05 02:35:01 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 21:08:17 +13:00
|
|
|
'$id' => 'maximumFileSize',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
2022-01-08 00:29:52 +13:00
|
|
|
'signed' => false,
|
|
|
|
'size' => 8,
|
2021-12-02 21:08:17 +13:00
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => true,
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2021-12-02 21:08:17 +13:00
|
|
|
'$id' => 'allowedFileExtensions',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => 64,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => true,
|
|
|
|
'array' => true,
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'encryption',
|
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => true,
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
|
|
|
],
|
2020-05-05 02:35:01 +12:00
|
|
|
[
|
2022-01-16 20:55:55 +13:00
|
|
|
'$id' => 'antivirus',
|
2021-12-02 21:08:17 +13:00
|
|
|
'type' => Database::VAR_BOOLEAN,
|
|
|
|
'signed' => true,
|
|
|
|
'size' => 0,
|
|
|
|
'format' => '',
|
|
|
|
'filters' => [],
|
|
|
|
'required' => true,
|
2020-07-15 15:38:57 +12:00
|
|
|
'array' => false,
|
|
|
|
],
|
|
|
|
[
|
2021-12-02 21:08:17 +13:00
|
|
|
'$id' => 'search',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
2019-08-10 02:46:09 +12:00
|
|
|
'required' => false,
|
2021-12-02 21:08:17 +13:00
|
|
|
'default' => null,
|
2019-08-10 02:46:09 +12:00
|
|
|
'array' => false,
|
2021-12-02 21:08:17 +13:00
|
|
|
'filters' => [],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
2021-12-02 21:08:17 +13:00
|
|
|
'indexes' => [
|
2020-05-06 07:42:35 +12:00
|
|
|
[
|
2021-12-02 21:08:17 +13:00
|
|
|
'$id' => '_fulltext_name',
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['name'],
|
|
|
|
'lengths' => [1024],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 21:08:17 +13:00
|
|
|
'$id' => '_key_search',
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [2048],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
]
|
|
|
|
],
|
|
|
|
|
2021-12-02 00:48:23 +13:00
|
|
|
'stats' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'stats',
|
|
|
|
'name' => 'Stats',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => 'metric',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 255,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => true,
|
|
|
|
'default' => null,
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
2020-07-19 01:49:20 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'value',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2021-06-12 01:30:33 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-07-19 01:49:20 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-07-19 01:49:20 +12:00
|
|
|
],
|
2020-10-31 09:04:32 +13:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'time',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
2021-06-12 01:30:33 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-10-31 09:04:32 +13:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-10-31 09:04:32 +13:00
|
|
|
],
|
2020-05-06 07:42:35 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'period',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 4,
|
|
|
|
'signed' => true,
|
2021-06-12 01:30:33 +12:00
|
|
|
'required' => true,
|
2021-12-02 00:48:23 +13:00
|
|
|
'default' => null,
|
2020-05-06 07:42:35 +12:00
|
|
|
'array' => false,
|
2021-12-02 00:48:23 +13:00
|
|
|
'filters' => [],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'type',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 1,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => true,
|
|
|
|
'default' => 0, // 0 -> count, 1 -> sum
|
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
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
],
|
|
|
|
'indexes' => [
|
2020-05-06 07:42:35 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => '_key_time',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['time'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_DESC],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => '_key_metric',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['metric'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
2020-05-06 07:42:35 +12:00
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => '_key_metric_period',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['metric', 'period'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_DESC],
|
2019-08-10 02:46:09 +12:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2022-01-16 19:33:47 +13:00
|
|
|
|
2021-12-02 00:48:23 +13:00
|
|
|
'realtime' => [
|
|
|
|
'$collection' => Database::METADATA,
|
|
|
|
'$id' => 'realtime',
|
2021-06-12 01:30:33 +12:00
|
|
|
'name' => 'Realtime Connections',
|
2021-12-02 00:48:23 +13:00
|
|
|
'attributes' => [
|
2021-06-12 01:30:33 +12:00
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'container',
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'timestamp',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'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
|
|
|
],
|
|
|
|
[
|
2021-12-02 00:48:23 +13:00
|
|
|
'$id' => 'value',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'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' => [], //TODO: use json filter
|
|
|
|
]
|
2021-06-12 01:30:33 +12:00
|
|
|
],
|
2021-12-02 00:48:23 +13:00
|
|
|
'indexes' => [
|
|
|
|
[
|
|
|
|
'$id' => '_key_timestamp',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['timestamp'],
|
|
|
|
'lengths' => [],
|
|
|
|
'orders' => [Database::ORDER_DESC],
|
|
|
|
],
|
|
|
|
]
|
2020-07-03 09:48:37 +12:00
|
|
|
],
|
2021-12-23 21:31:32 +13:00
|
|
|
'files' => [
|
|
|
|
'$collection' => 'buckets',
|
|
|
|
'$id' => 'files',
|
|
|
|
'$name' => 'Files',
|
|
|
|
'attributes' => [
|
|
|
|
[
|
|
|
|
'$id' => 'dateCreated',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
2022-01-08 00:29:52 +13:00
|
|
|
'signed' => false,
|
2021-12-23 21:31:32 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'array' => false,
|
|
|
|
'$id' => 'bucketId',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => Database::LENGTH_KEY,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'name',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'path',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'signature',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'mimeType',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 127, // https://tools.ietf.org/html/rfc4288#section-4.2
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => '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'],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'sizeOriginal',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
2022-01-08 00:29:52 +13:00
|
|
|
'size' => 8,
|
|
|
|
'signed' => false,
|
2021-12-23 21:31:32 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'sizeActual',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
2022-01-08 00:29:52 +13:00
|
|
|
'size' => 8,
|
|
|
|
'signed' => false,
|
2021-12-23 21:31:32 +13:00
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'algorithm',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 255,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'comment',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'openSSLVersion',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 64,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'openSSLCipher',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 64,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'openSSLTag',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'openSSLIV',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 2048,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'chunksTotal',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'chunksUploaded',
|
|
|
|
'type' => Database::VAR_INTEGER,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 0,
|
|
|
|
'signed' => false,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => 'search',
|
|
|
|
'type' => Database::VAR_STRING,
|
|
|
|
'format' => '',
|
|
|
|
'size' => 16384,
|
|
|
|
'signed' => true,
|
|
|
|
'required' => false,
|
|
|
|
'default' => null,
|
|
|
|
'array' => false,
|
|
|
|
'filters' => [],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'indexes' => [
|
|
|
|
[
|
|
|
|
'$id' => '_key_search',
|
|
|
|
'type' => Database::INDEX_FULLTEXT,
|
|
|
|
'attributes' => ['search'],
|
|
|
|
'lengths' => [2048],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'$id' => '_key_bucket',
|
|
|
|
'type' => Database::INDEX_KEY,
|
|
|
|
'attributes' => ['bucketId'],
|
|
|
|
'lengths' => [Database::LENGTH_KEY],
|
|
|
|
'orders' => [Database::ORDER_ASC],
|
|
|
|
],
|
|
|
|
]
|
|
|
|
],
|
2019-09-04 08:37:34 +12:00
|
|
|
];
|
|
|
|
|
2021-06-14 23:33:49 +12:00
|
|
|
return $collections;
|