function commerce_reports_patterns_schema in Commerce Reporting 7.4
Same name and namespace in other branches
- 7.3 modules/patterns/commerce_reports_patterns.install \commerce_reports_patterns_schema()
Implementation of hook_schema().
File
- modules/
patterns/ commerce_reports_patterns.install, line 10 - Install, update, and uninstall functions for the commerce_reports_patterns module.
Code
function commerce_reports_patterns_schema() {
$schema = array();
$schema['commerce_reports_patterns'] = array(
'description' => 'Commerce tax patterns.',
'fields' => array(
'size' => array(
'description' => 'The size of the frequent item set the association rule was derived from.',
'type' => 'int',
'not null' => TRUE,
),
'if_clause' => array(
'description' => 'The items that need to be in a transaction for the rule to apply.',
'type' => 'blob',
'serialize' => TRUE,
'not null' => TRUE,
),
'then_clause' => array(
'description' => 'The resulting items that could possibly be in that transaction by this rule;',
'type' => 'blob',
'serialize' => TRUE,
'not null' => TRUE,
),
'confidence' => array(
'description' => 'The confidence of the rule.',
'type' => 'float',
'not null' => TRUE,
),
),
);
return $schema;
}