def generate_inventory_item(self): token = secrets.token_hex(16) data = { 'item_id': token, 'item_file_id': self.file_id } return data