add generic table

This commit is contained in:
Roland Schneider
2025-11-19 20:29:21 +01:00
parent 8ccb75ee4e
commit 1bfa4dec47
14 changed files with 338 additions and 2 deletions

View File

@@ -9,6 +9,8 @@ import { User } from './entity/user';
import { UserGroup } from './entity/user-group';
import { UserRole } from './entity/user-role';
import { LoggerModule } from './logger/logger.module';
import { Product } from "./entity/product.entity";
import { ProductsModule } from "./product/products.module";
const moduleTypeOrm = TypeOrmModule.forRootAsync({
imports: [ConfigModule],
@@ -21,7 +23,7 @@ const moduleTypeOrm = TypeOrmModule.forRootAsync({
username: configService.get<string>('DATABASE_USER'),
password: configService.get<string>('DATABASE_PASS'),
database: configService.get<string>('DATABASE_NAME'),
entities: [User, UserGroup, UserRole],
entities: [User, UserGroup, UserRole, Product],
logging: true,
// synchronize: true,
};
@@ -35,7 +37,8 @@ const moduleTypeOrm = TypeOrmModule.forRootAsync({
UserModule,
AuthModule,
LoggerModule,
],
ProductsModule
],
controllers: [AppController],
providers: [AppService],
})