init notification

This commit is contained in:
AmirHossein Mahmoodi
2023-10-24 10:55:50 +03:30
parent b95ed3b449
commit 416e05c31e
28 changed files with 8181 additions and 1701 deletions

21
src/app.module.ts Normal file
View File

@@ -0,0 +1,21 @@
import { Module } from "@nestjs/common";
import { NotificationModule } from "./notifications/notification.mudule";
import { SequelizeModule } from "@nestjs/sequelize";
@Module({
imports: [
SequelizeModule.forRoot({
dialect: "mysql",
host: "localhost",
port: 3306,
username: "root",
password: "",
database: "notification_db",
autoLoadModels: true,
synchronize: true,
}),
NotificationModule,
],
})
export class AppModule {
}