Added Post and Image entities to the database.

This commit is contained in:
Errormacr
2023-11-20 15:34:05 +03:00
parent 35e72a2134
commit c76c61c23c
3 changed files with 54 additions and 1 deletions

View File

@@ -2,8 +2,10 @@ import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from './database/user.entity';
import { Admin } from './database/admin.entity';
import { Post } from './database/post.entity';
import { Image } from './database/image.entity';
@Module({
imports: [TypeOrmModule.forFeature([User, Admin])],
imports: [TypeOrmModule.forFeature([User, Admin, Post, Image])],
exports: [TypeOrmModule],
})
export class LibsModule {}