In several different OOP languages I can make a class that inherits from another class. Can I do a similar things with models in databases or is that strictly not allowed? Is it possible to make model inherit from another model? I ask this thinking about a products class.
Generally speaking each product will have a name (nails, bolts, nuts), type (steel), some sort of size parameter and price. But could I maybe make an abstract model because different products may have different parameters that I care about, and then could I leave some columns as null?
Or do I need to declare all the different types of products and each product will have its own table?