This commit is contained in:
TuNombreDeUsuario
2024-06-11 11:27:06 -06:00
3 changed files with 558 additions and 1 deletions
+2 -1
View File
@@ -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'),
}),
}),
+5
View File
@@ -10,4 +10,9 @@ export class User {
@Column()
password: string;
@Column()
jwt : string;
}