Commit 05d6e1ea authored by nanahira's avatar nanahira

fix

parent f6438916
Pipeline #3095 passed with stages
in 1 minute and 37 seconds
import { TypeOrmModuleOptions } from '@nestjs/typeorm'; import { TypeOrmModuleOptions } from '@nestjs/typeorm';
import { User } from './entities/User'; import { User } from './entities/User';
import { Group } from './entities/Group';
export function dbConfig() { export function dbConfig() {
return { return {
...@@ -14,7 +15,7 @@ export function typeormConfig(): TypeOrmModuleOptions { ...@@ -14,7 +15,7 @@ export function typeormConfig(): TypeOrmModuleOptions {
return { return {
name: 'app', name: 'app',
type: 'mysql', type: 'mysql',
entities: [User], // entities here entities: [User, Group], // entities here
synchronize: true, synchronize: true,
...dbConfig(), ...dbConfig(),
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment