RPG quest system

So I have made a small RPG where you can create char, update skills, buy items, fight other users etc. Now to make the game more extended I need quests. And I need a little bit of help here.

Right now I have these tables:

Quests: id title etc

ActiveQuests: id quest_id user_id (this table fills when user starts a quest)

QuestBosses id quest_id (Quests bosses)

Now I need somehow to develop goals like I should have a quest_goals table and there store goals by quest_id I believe ? But then again every goal shuold be coded seperately and if I would want to make new quest through let’s say admin panel this approach won’t work. Maybe someone have any experience? I’m using NodeJS and Mongoose for this project