-
Notifications
You must be signed in to change notification settings - Fork 0
/
ormconfig.ts
25 lines (23 loc) · 860 Bytes
/
ormconfig.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { MysqlConnectionOptions } from "typeorm/driver/mysql/MysqlConnectionOptions";
import { Campaign } from "src/campaign/campaign.entity";
import { Creative } from "src/creative/creative.entity";
//import { CreativeType } from "src/creative/creativeType.entity";
import { CreativeLibrary } from "src/creativeLibrary/creativeLibrary.entity";
import { uploadMdata } from "src/UploadMedia/metaData.entity";
import { Advertiser } from "src/Advertiser/advertiser.entity";
const config: MysqlConnectionOptions = {
type: 'mysql',
host: 'localhost',
port: 3306,
username: 'root',
password: 'Sk7*1997',
database: 'socially',
entities: [Campaign,Creative,Advertiser,
CreativeLibrary,
uploadMdata
],
//entities: ['**/src/entity/*{.ts,.js}'],
synchronize: true
// dropSchema: true
}
export default config;