You are here

function mediafront_user_schema in MediaFront 6

Same name and namespace in other branches
  1. 6.2 plugins/mediafront_user/mediafront_user.install \mediafront_user_schema()

Implementation of hook_schema().

File

plugins/mediafront_user/mediafront_user.install, line 5

Code

function mediafront_user_schema() {
  $schema['mediafront_user'] = array(
    'description' => t('The {mediafront_user} table stores user status data'),
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'verb' => array(
        'type' => 'varchar',
        'length' => 256,
        'not null' => TRUE,
        'default' => '',
      ),
      'noun' => array(
        'type' => 'varchar',
        'length' => 256,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'indexes' => array(
      'uid' => array(
        'uid',
      ),
    ),
  );
  return $schema;
}