My background is .NET/C#/Laravel e.t.c
I am beginning to like very much WP and i started educating myself on using WordPress as a development framework.
I tried something very simple. Create an entity and have a basic CRUD on this entity and then show it up in my frontend. Nothing tricky right?
So after reading i found out that one way to do this is to create the entity (aka Custom Post Type) , create custom fields (aka my entity properties) and let WP backend do the CRUD.
Then i could use various techniques to show the data in the frontend.
To my great surprise i found out that the CPT are not persisted in any wp table, and that when i disable my plugin i loos ethe CPT but i do NOT loose the underlying data!!
Imagine my surprise , due to the fact that i am used in having absolute db integrity.
And i wonder , why was it decided that CPTs are working in this way?