databases.yml 4.62 KB
datasources:
   ufo_passport:
      servers:
        - ${jdbc.mysql.ufo.master}
        - ${jdbc.mysql.ufo.slave}
      username: ${jdbc.mysql.ufo.username}
      password: ${jdbc.mysql.ufo.password}
      daos:
        - com.yohoufo.dal.user.IUserAuthorizeHistoryDao
        - com.yohoufo.dal.user.IUserAuthorizeInfoDao
        - com.yohoufo.dal.user.IZhiMaCertDao

   ufo_product:
      servers:
        - ${jdbc.mysql.ufo.master}
        - ${jdbc.mysql.ufo.slave}
      username: ${jdbc.mysql.ufo.username}
      password: ${jdbc.mysql.ufo.password}
      daos:
        - com.yohoufo.dal.product.StoragePriceMapper
        - com.yohoufo.dal.product.StorageMapper
        - com.yohoufo.dal.product.ProductMapper
        - com.yohoufo.dal.product.GoodsMapper
        - com.yohoufo.dal.product.GoodsImagesMapper
        - com.yohoufo.dal.product.SizeMapper
        - com.yohoufo.dal.product.BrandMapper
        - com.yohoufo.dal.product.BrandSeriesMapper
        - com.yohoufo.dal.product.ProductSortMapper
        - com.yohoufo.dal.product.SearchWordMapper
        - com.yohoufo.dal.product.SaleCategoryMapper
        - com.yohoufo.dal.product.IdentifyRecordsMapper
        - com.yohoufo.dal.product.IdentifyRelationMapper
        - com.yohoufo.dal.product.ProductChainMapper
        - com.yohoufo.dal.product.PriceTrendSixtyDayMapper
        - com.yohoufo.dal.product.PriceTrendMonthMapper
        - com.yohoufo.dal.product.PriceTrendHalfYearMapper
        - com.yohoufo.dal.product.PriceTrendDayMapper

   ufo_order:
         servers:
           - ${jdbc.mysql.ufo.master}
           - ${jdbc.mysql.ufo.slave}
         username: ${jdbc.mysql.ufo.username}
         password: ${jdbc.mysql.ufo.password}
         daos:
           - com.yohoufo.dal.order.BuyerOrderGoodsMapper
           - com.yohoufo.dal.order.BuyerOrderMapper
           - com.yohoufo.dal.order.BuyerOrderMetaMapper
           - com.yohoufo.dal.order.ExpressRecordMapper
           - com.yohoufo.dal.order.ExpressInfoMapper
           - com.yohoufo.dal.order.SellerOrderGoodsMapper
           - com.yohoufo.dal.order.SellerOrderMapper
           - com.yohoufo.dal.order.SellerOrderMetaMapper
           - com.yohoufo.dal.order.OrdersPayMapper
           - com.yohoufo.dal.order.OrdersPayRefundMapper
           - com.yohoufo.dal.order.ExpressCompanyMapper
           - com.yohoufo.dal.order.AppraiseAddressMapper
           - com.yohoufo.dal.order.TradeBillsMapper
           - com.yohoufo.dal.order.OrdersPayTransferMapper
           - com.yohoufo.dal.order.ManualTransferMapper
           - com.yohoufo.dal.order.MachineIdGenerateMapper
           - com.yohoufo.dal.order.SkupBatchMapper
           - com.yohoufo.dal.order.SellerWalletMapper
           - com.yohoufo.dal.order.SellerWalletDetailMapper
           - com.yohoufo.dal.order.OrderCouponMapper
           - com.yohoufo.dal.order.EntrySellerRechargeOrderMapper
           - com.yohoufo.dal.order.StoredSellerMapper
           - com.yohoufo.dal.order.SuperEntrySellerMapper
           - com.yohoufo.dal.order.QiniuLiveRecordMapper
           - com.yohoufo.dal.order.SellerOrderGoodsViewMapper
           - com.yohoufo.dal.order.SellerTaskMapper
           - com.yohoufo.dal.order.SellerTaskDetailMapper
           - com.yohoufo.dal.order.OrdersPrePayMapper
           - com.yohoufo.dal.order.MetaConfigMapper
           - com.yohoufo.dal.order.BuyerOrderStatusFlowMapper
           - com.yohoufo.dal.order.BusinessLicenseMapper

   ufo_promotion:
         servers:
           - ${jdbc.mysql.ufo.master}
           - ${jdbc.mysql.ufo.master}
         username: ${jdbc.mysql.ufo.username}
         password: ${jdbc.mysql.ufo.password}
         daos:
           - com.yohoufo.dal.promotion.CouponMapper
           - com.yohoufo.dal.promotion.CouponProductLimitMapper
           - com.yohoufo.dal.promotion.CouponTypeMapper
           - com.yohoufo.dal.promotion.UserCouponMapper


   ufo_resource:
      servers:
        - ${jdbc.mysql.ufo.master}
        - ${jdbc.mysql.ufo.slave}
      username: ${jdbc.mysql.ufo.username}
      password: ${jdbc.mysql.ufo.password}
      daos:
        - com.yohoufo.dal.resource.ResourcesContentDataMapper
        - com.yohoufo.dal.resource.ResourcesContentMapper
        - com.yohoufo.dal.resource.ResourcesMapper
        - com.yohoufo.dal.resource.ConfigTypeMapper
        - com.yohoufo.dal.resource.ResourcesGoodsPoolMapper

   line_shops:
     servers:
       - ${jdbc.mysql.lineshops.master}
       - ${jdbc.mysql.lineshops.slave}
     username: ${jdbc.mysql.lineshops.username}
     password: ${jdbc.mysql.lineshops.password}
     daos:
       - com.yohoufo.dal.product.IStoreInfoDAO
       - com.yohoufo.dal.product.IStoreInfoExtendDAO

readOnlyInSlave: true