webmaster@1: '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, franck@19: 'description' => '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, franck@19: 'description' => '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, franck@19: 'description' => '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' => '', franck@19: 'description' => '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', franck@19: 'description' => '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', franck@19: 'description' => '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: