-
Notifications
You must be signed in to change notification settings - Fork 0
/
descriptor.php
48 lines (35 loc) · 1.08 KB
/
descriptor.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
namespace Icybee\Modules\Nodes;
use ICanBoogie\ActiveRecord\Model;
use ICanBoogie\Module\Descriptor;
return [
Descriptor::ID => 'nodes',
Descriptor::CATEGORY => 'contents',
Descriptor::DESCRIPTION => "Centralized node system base",
Descriptor::MODELS => [
'primary' => [
Model::SCHEMA => [
'nid' => 'serial',
'uid' => 'foreign',
'site_id' => 'foreign',
'nativeid' => 'foreign',
'uuid' => [ 'char', 36, 'unique' => true, 'charset' => 'ascii/bin' ],
'constructor' => [ 'varchar', 64, 'indexed' => true ],
'title' => 'varchar',
'slug' => [ 'varchar', 80, 'indexed' => true ],
'language' => [ 'varchar', 8, 'indexed' => true ],
'created_at' => [ 'timestamp', 'default' => 'CURRENT_TIMESTAMP' ],
'updated_at' => 'timestamp',
'is_online' => [ 'boolean', 'indexed' => true ]
]
]
],
Descriptor::NS => __NAMESPACE__,
Descriptor::PERMISSION => false,
Descriptor::PERMISSIONS => [
'modify belonging site'
],
Descriptor::REQUIRED => true,
Descriptor::REQUIRES => [ 'sites', 'users', 'registry' ],
Descriptor::TITLE => "Nodes"
];