Base Model
You can create a base-mode.ts file, that is the global abstraction of all the entities you will create in your project.
If you create a new entity in the database, you must also add the .entity.ts file within the project.
Now to create a new entity, you just need to inherit from the BaseModel
class and declare the specific fields for that entity.
Last updated