diff --git a/allowed_languages.install b/allowed_languages.install
index 56a5a1f..100e75b 100644
--- a/allowed_languages.install
+++ b/allowed_languages.install
@@ -4,3 +4,71 @@
  * @file
  * Installation functions for Allowed Languages module.
  */
+
+/**
+ * @file
+ * Installation functions for Allowed Languages module.
+ */
+/**
+ * Implements hook_schema().
+ */
+function allowed_languages_schema() {
+  $schema['user__allowed_languages'] = array(
+    'description' => 'Data storage for user field allowed_languages.',
+    'fields' => array(
+      'bundle' => array(
+        'description' => 'The field instance bundle to which this row belongs, used when deleting a field instance',
+        'type' => 'varchar',
+        'length' => 128,
+        'not null' => TRUE,
+        'default' => '',
+      ),
+      'deleted' => array(
+        'description' => 'A boolean indicating whether this data item has been deleted',
+        'type' => 'int',
+        'size' => 'tiny',
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'entity_id' => array(
+        'description' => 'The entity id this data is attached to',
+        'type' => 'int',
+        'unsigned' => TRUE,
+        'not null' => TRUE,
+      ),
+      'revision_id' => array(
+        'description' => 'The entity revision id this data is attached to, which for an unversioned entity type is the same as the entity id',
+        'type' => 'int',
+        'unsigned' => TRUE,
+        'not null' => TRUE,
+      ),
+      'langcode' => array(
+        'description' => 'The language code for this data item.',
+        'type' => 'varchar',
+        'length' => 32,
+        'not null' => TRUE,
+        'default' => '',
+      ),
+      'delta' => array(
+        'description' => 'The sequence number for this data item, used for multi-value fields',
+        'type' => 'int',
+        'unsigned' => TRUE,
+        'not null' => TRUE,
+      ),
+      'allowed_languages_target_id' => array(
+        'description' => 'The ID of the target entity.',
+        'type' => 'varchar',
+        'length' => 255,
+        'not null' => TRUE,
+      ),
+    ),
+    'primary key' => array('entity_id', 'deleted', 'delta', 'langcode'),
+    'indexes' => array(
+      'bundle' => array('bundle'),
+      'revision_id' => array('revision_id'),
+      'allowed_languages_target_id' => array('allowed_languages_target_id'),
+    ),
+  );
+
+  return $schema;
+}
