@fireheet/entities

This package was created for a personal project, you can use it any way you like.


License
MIT
Install
npm install @fireheet/entities@0.0.7

Documentation

Fireheet Entities

This package was created for a personal project, you can use it any way you like.

The folder structure was made to separate different ORM's, and also for different services.

# Note that in all ORM's the entity fields are the same

Modules

Users

Typeorm
Role ☑
User ☑
Address ☑
Phone ☑

Users entities documentation


To use this module, just import in your services or repository and use it as you like

Example in NestJS:

import { User } from '@fireheet/entities/typeorm/users';

@Module({
  imports: [
    TypeOrmModule.forFeature([User, UsersRepository, ...]),
  ],
  controllers: [UsersController, ...],
  providers: [
    ...
  ],
  exports: [TypeOrmModule],
})
export default class UsersModule {}