databases.yml 3.92 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

   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

   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
readOnlyInSlave: true