mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 16:14:43 -04:00
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:
parent
6bee3b16cf
commit
2654f1fa36
4 changed files with 117 additions and 2 deletions
|
@ -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],
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue