I recently played with the strapi framework and realized that the best thing about this structure is, one, any field model, and two, extensible plug-ins. Among them, the method of any field model is a little complicated. I haven"t figured it out for decades. I guess I haven"t known that much just when I"ve just come into contact with the back-end technology.
refer to any field model of strapi
even if several types are selected, these types will be saved to new tables in the database, such as creating article tables, and the fields of article will have corresponding types, so that the structure is good and flexible. There is no need to manually add codes such as mvc each time, and store the database directly.
for example, to create an article table, the article table has not yet added a field model, then select a string, date, and number in the background to make the title, author. And then build a structure similar to the MVC schema, which will naturally be saved to that article table.
this structure is worth my reference, but I don"t know how to implement this method.
what I am currently doing is using the eggjs framework, so how to implement this field model method in eggjs?
Last sentence: I hope you are my good teacher now! Thank you!