You are here

function rolereference_field_schema in Role Reference 7

Implements hook_field_schema().

File

./rolereference.module, line 22

Code

function rolereference_field_schema($field) {
  $columns = array(
    'rid' => array(
      'type' => 'int',
      'unsigned' => TRUE,
      'not null' => FALSE,
    ),
  );
  return array(
    'columns' => $columns,
    'indexes' => array(
      'rid' => array(
        'rid',
      ),
    ),
    'foreign keys' => array(
      'rid' => array(
        'table' => 'role',
        'columns' => array(
          'rid' => 'rid',
        ),
      ),
    ),
  );
}