CREATE DEFINER=`jhise`@`localhost` PROCEDURE `document_add`(in i_access_key char(32), in i_user_account_key char(32), in i_original_name varchar(250), in i_name varchar(250), in i_type varchar(100), in i_size varchar(20))
BEGIN

    insert into document values
		(null, i_name, i_original_name, i_access_key, i_user_account_key, i_type, i_size);

	select last_insert_id() as id;


END
