mymodule.install file not creating the table in drupal 7
you should uninstall the module
write the hook_schema function
enable the module.


You should also specify the  primary key in the hook_schema

 'primary key' =&gt; array('field_name'),


You can check the drupal link for the hook_schema