I would like to know if there are more ways to work with type information such as type of person, type of car, type of product, type of home, type of sale, type of computer …
I do not know correctly what the name is, because I searched for Data Type but it brought information from Integer, Boolean …
The kind I know are:
Database:
-
Create tables for each type, such as people_type, car_type, product_type …
-
Create a table to store all types.
Source code:
-
Create an array in the Model property where you would store the types.
Ex: Person-> types, Car-> types … -
Create a Model containing all types.
Ex: AllTypes-> person, AllTypes-> car …
What other ways can I use to work with types?
My English is rusty.
Tags: ph