t('Stores uploaded file information and table associations.'), 'fields' => array( 'fid' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'description' => t('Primary Key: The {files}.fid.'), ), 'nid' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'description' => t('The {node}.nid associated with the uploaded file.'), ), 'vid' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'description' => t('Primary Key: The {node}.vid associated with the uploaded file.'), ), 'description' => array( 'type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '', 'description' => t('Description of the uploaded file.'), ), 'list' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'size' => 'tiny', 'description' => t('Whether the file should be visibly listed on the node: yes(1) or no(0).'), ), 'weight' => array( 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny', 'description' => t('Weight of this upload in relation to other uploads in this node.'), ), ), 'primary key' => array('fid', 'vid'), 'indexes' => array('vid' => array('vid'), 'nid' => array('nid')), ); return $schema; }