Foreign Key with Custom Variable

I know but I have achieved this results, and by default mariaex doesn’t generate an UNSIGNED INT.

The relation between question and chapter is: A question belongs only to a chapter, and a chapter can have many questions.