Chapter 6
Answer 1
In addition to the generic View class that we saw during this chapter, Flask also provides another prebuilt pluggable view class known as MethodView.
Answer 2
Yes, it's possible for us to remove the foreign key constraint for the role table from the user table and keep the relationship there. But whenever we need to store the data, we will need to manually insert the required object for the role object inside the user table.