group events

This commit is contained in:
Bastian Wagner
2025-12-19 13:14:04 +01:00
parent 5a08e2319f
commit e05ab13d0d
16 changed files with 442 additions and 101 deletions

View File

@@ -2,8 +2,9 @@ import { Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { TypeOrmModule } from '@nestjs/typeorm';
import { GroupEntity } from '../groups/persistence/group.entity';
import { GroupEventEntity } from 'src/groups/persistence/group-event.entity';
const ENTITY = [GroupEntity]
const ENTITY = [GroupEntity, GroupEventEntity]
@Module({
imports: [
@@ -19,7 +20,7 @@ const ENTITY = [GroupEntity]
password: configService.get('DATABASE_PASSWORD'),
database: configService.get('DATABASE_NAME'),
entities: ENTITY,
synchronize: true,
synchronize: (configService.get('DATABASE_SYNC')||'').toLowerCase() == 'true',
})
})
],