<?php

function tdemo_schema(){
  $schema['tdemo'] = array(
    'description' => 'Test of split strings.',
    'fields' => array(
      'id' => array(
        'description' => 'The primary identifier for a string.',
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'source' => array(
        'type' => 'text',
        'mysql_type' => 'blob',
        'not null' => TRUE,
        'description' => 'The original string in English.',
      ),
      'translation' => array(
        'type' => 'text',
        'mysql_type' => 'blob',
        'not null' => TRUE,
        'description' => 'Translation string value in this language.',
      ),
    ),
    'primary key' => array('id'),
    'indexes' => array(
      'source' => array(array('source', 30)),
    ),
  );
  return $schema;
}
