This commit is contained in:
João Geonizeli
2022-07-09 14:28:36 -03:00
parent 97dac843fe
commit 82c078f5db
17 changed files with 200 additions and 50 deletions

View File

@@ -2,6 +2,7 @@ import * as dotenv from 'dotenv';
import "reflect-metadata";
import { DataSource } from "typeorm";
import { Project } from "../entity/project.entity";
import { Task } from '../entity/task.entity';
import { User } from "../entity/user.entity";
dotenv.config();
@@ -14,7 +15,7 @@ export const AppDataSource = new DataSource({
database: process.env.DB_NAME,
synchronize: true,
logging: false,
entities: [User, Project],
entities: [User, Project, Task],
migrations: [],
subscribers: [],
})