Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Implements hook_schema().
- */
- function bbva_campanias_schema() {
- $schema['bbva_campanias'] = array(
- 'description' => 'The base table for campaigns.',
- 'fields' => array(
- 'id' => array(
- 'description' => 'The primary identifier for campaign.',
- 'type' => 'serial',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- ),
- 'hash' => array(
- 'description' => 'Hash',
- 'type' => 'int',
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'uid' => array(
- 'description' => 'User Id',
- 'type' => 'int',
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'id_campania' => array(
- 'description' => 'Id campaign',
- 'type' => 'int',
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'marca' => array(
- 'description' => 'Mark if the person read it',
- 'type' => 'int',
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'date_marca' => array(
- 'description' => 'The Unix timestamp of the mark.',
- 'type' => 'varchar',
- 'mysql_type' => 'datetime',
- 'not null' => FALSE,
- ),
- ),
- 'primary key' => array('id'),
- 'indexes' => array(
- 'marca' => array('marca'),
- 'id_campania' => array('id_campania'),
- 'uid' => array('uid'),
- ),
- );
- return $schema;
- }
Advertisement
Add Comment
Please, Sign In to add comment