-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkifisome.install
44 lines (42 loc) · 1.06 KB
/
kifisome.install
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
<?php
function kifisome_schema() {
$schema['kifisome_shares'] = [
'desription' => 'Log of social media shares.',
'fields' => [
'id' => [
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
],
'url' => [
'description' => 'Complete URL of content that was shared.',
'type' => 'varchar',
'length' => 1024,
'not null' => TRUE,
],
'domain' => [
'description' => 'Domain name of shared content.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
],
'service' => [
'description' => 'Keyword for service that the content was shared to.',
'type' => 'varchar',
'length' => 30,
'not null' => TRUE,
],
'timestamp' => [
'description' => 'Unix timestamp of when event occurred.',
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
]
],
'primary key' => ['id'],
'indexes' => [
'domain' => ['domain'],
]
];
return $schema;
}