Merge branch 'Lino' of https://repositorio.acatlan.unam.mx/mcervantesag/api_directorio into Lino
This commit is contained in:
+2
-1
@@ -5,6 +5,7 @@ import { AppService } from './app.service';
|
||||
import { AuthModule } from './auth/auth.module';
|
||||
import { UsersModule } from './users/users.module';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { User } from "./users/entities/user.entity";
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
@@ -24,7 +25,7 @@ import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
username: configservice.get('DB_USER'),
|
||||
password: configservice.get('DB_PASSWORD'),
|
||||
database: configservice.get('DB_DATABASE'),
|
||||
entities: [],
|
||||
entities: [User],
|
||||
synchronize: configservice.get('DB_SYNCRONIZE'),
|
||||
}),
|
||||
}),
|
||||
|
||||
@@ -10,4 +10,9 @@ export class User {
|
||||
|
||||
@Column()
|
||||
password: string;
|
||||
|
||||
@Column()
|
||||
jwt : string;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user