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