-
Notifications
You must be signed in to change notification settings - Fork 0
/
bv_cc_question.install
70 lines (66 loc) · 1.85 KB
/
bv_cc_question.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
* @file
* Installation code.
*/
/**
* Implements hook_schema().
*/
function bv_cc_question_schema() {
$schema = array();
$schema['bv_cc_question'] = array(
'description' => 'The base table for BV Call Center Question entities.',
'fields' => array(
'cc_question_id' => array(
'description' => 'The primary identifier for a call center question.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'title' => array(
'description' => 'The title for the question and the entity label.',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'library' => array(
'description' => 'The library of the user who answered the question.',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'answer_type' => array(
'description' => 'The answer type for the call center question.',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'note' => array(
'description' => 'Notes about the call center question.',
'type' => 'text',
'size' => 'big',
),
'uid' => array(
'description' => 'The {users}.uid of the user that created the question.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'created' => array(
'description' => 'The Unix timestamp when the call center question was created.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array('cc_question_id'),
'indexes' => array(
'uid' => array('uid'),
'answer_type' => array('answer_type'),
'library' => array('library'),
),
);
return $schema;
}