You are here

function asset_youtube_schema in Asset 6

File

asset_youtube/asset_youtube.install, line 17

Code

function asset_youtube_schema() {
  $schema = array();
  $schema['asset_youtube_user'] = array(
    'fields' => array(
      'ayid' => array(
        'type' => 'serial',
        'unsigned' => true,
        'not null' => true,
      ),
      'uid' => array(
        'type' => 'int',
        'unsigned' => true,
        'not null' => true,
      ),
      'username' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => true,
      ),
    ),
    'primary key' => array(
      'ayid',
    ),
    'unique keys' => array(
      'uid' => array(
        'uid',
      ),
    ),
  );
  return $schema;
}