-
Notifications
You must be signed in to change notification settings - Fork 1
/
descriptor.php
43 lines (33 loc) · 982 Bytes
/
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
<?php
namespace Icybee\Modules\Sites;
use ICanBoogie\ActiveRecord\Model;
use ICanBoogie\Module\Descriptor;
return [
Descriptor::CATEGORY => 'site',
Descriptor::ID => 'sites',
Descriptor::MODELS => [
'primary' => [
Model::SCHEMA => [
'site_id' => 'serial',
'path' => [ 'varchar', 80 ],
'tld' => [ 'varchar', 16 ],
'domain' => [ 'varchar', 80 ],
'subdomain' => [ 'varchar', 80 ],
'prefer_secure' => 'boolean',
'title' => [ 'varchar', 80 ],
'admin_title' => [ 'varchar', 80 ],
'weight' => [ 'integer', 'unsigned' => true ],
'language' => [ 'varchar', 8 ],
'nativeid' => 'foreign',
'timezone' => [ 'varchar', 32 ], // widest is "America/Argentina/Buenos_Aires" with 30 characters
'email' => 'varchar',
'status' => [ 'integer', 'small' ],
'created_at' => 'datetime',
'updated_at' => 'datetime'
]
]
],
Descriptor::NS => __NAMESPACE__,
Descriptor::REQUIRED => true,
Descriptor::TITLE => "Sites"
];