fixing structure

This commit is contained in:
Damodar Lohani
2021-06-15 12:22:51 +05:45
parent f7c27e1727
commit aabcc8eb09
2 changed files with 17 additions and 2 deletions
+11 -2
View File
@@ -1452,13 +1452,22 @@ $collections = [
'required' => false,
'array' => false,
],
[
'$collection' => Database::SYSTEM_COLLECTION_RULES,
'label' => 'Date Updated',
'key' => 'dateUpdated',
'type' => Database::SYSTEM_VAR_TYPE_NUMERIC,
'default' => 0,
'required' => false,
'array' => false,
],
[
'$collection' => Database::SYSTEM_COLLECTION_RULES,
'label' => 'Enabled',
'key' => 'enabled',
'type' => Database::SYSTEM_VAR_TYPE_BOOLEAN,
'default' => true,
'required' => false,
'required' => true,
'array' => false,
],
[
@@ -1505,7 +1514,7 @@ $collections = [
'type' => Database::SYSTEM_VAR_TYPE_TEXT,
'default' => '',
'required' => true,
'array' => false,
'array' => true,
],
[
'$collection' => Database::SYSTEM_COLLECTION_RULES,
@@ -30,6 +30,12 @@ class Bucket extends Model
'default' => 0,
'example' => 1592981250,
])
->addRule('dateUpdated', [
'type' => self::TYPE_INTEGER,
'description' => 'Bucket updated date in Unix timestamp.',
'default' => 0,
'example' => 1592981250,
])
->addRule('name', [
'type' => self::TYPE_STRING,
'description' => 'Bucket name.',