-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathormconfig.ts
44 lines (41 loc) · 1.58 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { Discount } from 'src/modules/discounts/entities/discount.entity';
import { UserDiscount } from 'src/modules/discounts/entities/user_discount.entity';
import { OrderDetail } from 'src/modules/oders/entities/order-detail.entity';
import { OrderStatus } from 'src/modules/oders/entities/order-status.entity';
import { Order } from 'src/modules/oders/entities/order.entity';
import { Category } from 'src/modules/products/entities/product-category';
import { Collection } from 'src/modules/products/entities/product-collection.entity';
import { Color } from 'src/modules/products/entities/product-color.entity';
import { ProductGroup } from 'src/modules/products/entities/product-group.entity';
import { Material } from 'src/modules/products/entities/product-material';
import { Size } from 'src/modules/products/entities/product-size.entity';
import { Product } from 'src/modules/products/entities/product.entity';
import { Role } from 'src/modules/roles/entities/role.entity';
import { User } from 'src/modules/users/entities/user.entity';
import { PostgresConnectionOptions } from 'typeorm/driver/postgres/PostgresConnectionOptions';
const config: PostgresConnectionOptions = {
type: 'postgres',
database: 'testDB',
host: 'localhost',
port: 5432,
username: 'caonam',
password: 'namnam',
entities: [
User,
Role,
Product,
Size,
Collection,
Color,
Category,
ProductGroup,
Material,
OrderDetail,
Order,
OrderStatus,
Discount,
UserDiscount,
],
synchronize: true,
};
export default config;