feat: add presence sensor module with entity, DTO, and repository

This commit is contained in:
faris Aljohari
2025-05-04 19:11:14 +03:00
parent e932d8a4a4
commit 2a1f1f52f6
9 changed files with 87 additions and 0 deletions

View File

@ -51,6 +51,7 @@ import {
PowerClampHourlyEntity,
PowerClampMonthlyEntity,
} from '../modules/power-clamp/entities/power-clamp.entity';
import { PresenceSensorDailyEntity } from '../modules/presence-sensor/entities';
@Module({
imports: [
TypeOrmModule.forRootAsync({
@ -109,6 +110,7 @@ import {
PowerClampHourlyEntity,
PowerClampDailyEntity,
PowerClampMonthlyEntity,
PresenceSensorDailyEntity,
],
namingStrategy: new SnakeNamingStrategy(),
synchronize: Boolean(JSON.parse(configService.get('DB_SYNC'))),