1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

Updated system collections

This commit is contained in:
Eldad Fux 2020-02-23 10:56:40 +02:00
parent 09cdd86f79
commit 4da44acb6f

View file

@ -606,6 +606,16 @@ $collections = [
'array' => true,
'list' => [Database::SYSTEM_COLLECTION_PLATFORMS],
],
[
'$collection' => Database::SYSTEM_COLLECTION_RULES,
'label' => 'Domains',
'key' => 'domains',
'type' => 'document',
'default' => [],
'required' => false,
'array' => true,
'list' => [Database::SYSTEM_COLLECTION_DOMAINS],
],
],
],
Database::SYSTEM_COLLECTION_WEBHOOKS => [
@ -952,6 +962,24 @@ $collections = [
'label' => 'Updated',
'key' => 'updated',
'type' => 'numeric',
'default' => 0,
'required' => false,
'array' => false,
],
[
'$collection' => Database::SYSTEM_COLLECTION_RULES,
'label' => 'Top Level Domain',
'key' => 'tld',
'type' => 'text',
'default' => '',
'required' => false,
'array' => false,
],
[
'$collection' => Database::SYSTEM_COLLECTION_RULES,
'label' => 'Registerable Domain',
'key' => 'registerable',
'type' => 'text',
'default' => '',
'required' => false,
'array' => false,
@ -969,11 +997,56 @@ $collections = [
'$collection' => Database::SYSTEM_COLLECTION_RULES,
'label' => 'Certificate ID',
'key' => 'certificateId',
'type' => 'boolean',
'default' => false,
'type' => 'key',
'default' => '',
'required' => false,
'array' => false,
],
],
],
Database::SYSTEM_COLLECTION_CERTIFICATES => [
'$collection' => Database::SYSTEM_COLLECTION_COLLECTIONS,
'$id' => Database::SYSTEM_COLLECTION_CERTIFICATES,
'$permissions' => ['read' => ['*']],
'name' => 'Certificates',
'structure' => true,
'rules' => [
[
'$collection' => Database::SYSTEM_COLLECTION_RULES,
'label' => 'Domain',
'key' => 'domain',
'type' => 'text',
'default' => null,
'required' => true,
'array' => false,
],
[
'$collection' => Database::SYSTEM_COLLECTION_RULES,
'label' => 'Issue Date',
'key' => 'issueDate',
'type' => 'numeric',
'default' => 0,
'required' => false,
'array' => false,
],
[
'$collection' => Database::SYSTEM_COLLECTION_RULES,
'label' => 'Attempts',
'key' => 'attempts',
'type' => 'numeric',
'default' => 0,
'required' => false,
'array' => false,
],
[
'$collection' => Database::SYSTEM_COLLECTION_RULES,
'label' => 'Log',
'key' => 'log',
'type' => 'text',
'default' => '',
'required' => false,
'array' => false,
],
],
],
Database::SYSTEM_COLLECTION_FILES => [
@ -1171,4 +1244,4 @@ foreach ($providers as $key => $provider) {
];
}
return $collections;
return $collections;