Implement User entity.

This commit implements the User entity according to the database schema and adds the Identity and AuthToken entities.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-08-13 20:26:47 +02:00
parent db026d6a57
commit 8689b44f59
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
4 changed files with 117 additions and 2 deletions

View file

@ -1,10 +1,12 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AuthToken } from './auth-token.entity';
import { Identity } from './identity.entity';
import { User } from './user.entity';
import { UsersService } from './users.service';
@Module({
imports: [TypeOrmModule.forFeature([User])],
imports: [TypeOrmModule.forFeature([User, AuthToken, Identity])],
providers: [UsersService],
exports: [UsersService],
})