|
|
@@ -11,26 +11,26 @@ import { UserEntityMt, RoleMt } from '@d8d/user-module-mt'
|
|
|
import { FileMt } from '@d8d/file-module-mt'
|
|
|
|
|
|
// 导入已实现的包实体
|
|
|
-import { AreaEntity } from '@d8d/geo-areas-mt'
|
|
|
-import { PaymentEntity } from '@d8d/mini-payment-mt'
|
|
|
+import { AreaEntityMt } from '@d8d/geo-areas-mt'
|
|
|
+import { PaymentMtEntity } from '@d8d/mini-payment-mt'
|
|
|
import { Advertisement, AdvertisementType } from '@d8d/advertisements-module-mt'
|
|
|
-import { DeliveryAddress } from '@d8d/delivery-address-module-mt'
|
|
|
-import { Goods, GoodsCategory } from '@d8d/goods-module-mt'
|
|
|
-import { Merchant } from '@d8d/merchant-module-mt'
|
|
|
-import { Order, OrderGoods, OrderRefund } from '@d8d/orders-module-mt'
|
|
|
-import { Supplier } from '@d8d/supplier-module-mt'
|
|
|
+import { DeliveryAddressMt } from '@d8d/delivery-address-module-mt'
|
|
|
+import { GoodsMt, GoodsCategoryMt } from '@d8d/goods-module-mt'
|
|
|
+import { MerchantMt } from '@d8d/merchant-module-mt'
|
|
|
+import { OrderMt, OrderGoodsMt, OrderRefundMt } from '@d8d/orders-module-mt'
|
|
|
+import { SupplierMt } from '@d8d/supplier-module-mt'
|
|
|
|
|
|
if(!AppDataSource || !AppDataSource.isInitialized) {
|
|
|
initializeDataSource([
|
|
|
// 已实现的包实体
|
|
|
UserEntityMt, RoleMt, FileMt,
|
|
|
- AreaEntity, PaymentEntity,
|
|
|
+ AreaEntityMt, PaymentMtEntity,
|
|
|
Advertisement, AdvertisementType,
|
|
|
- DeliveryAddress,
|
|
|
- Goods, GoodsCategory,
|
|
|
- Merchant,
|
|
|
- Order, OrderGoods, OrderRefund,
|
|
|
- Supplier
|
|
|
+ DeliveryAddressMt,
|
|
|
+ GoodsMt, GoodsCategoryMt,
|
|
|
+ MerchantMt,
|
|
|
+ OrderMt, OrderGoodsMt, OrderRefundMt,
|
|
|
+ SupplierMt
|
|
|
])
|
|
|
await AppDataSource.initialize();
|
|
|
console.log('数据库初始化完成')
|