xhMerchantAsset.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhMerchantAsset".
  5. *
  6. * @property int $id
  7. * @property string $balance 余额
  8. * @property string $freezeBalance 提现时被冻结的余额
  9. * @property int $totalVisit 总访问量
  10. * @property int $totalUser 总用户
  11. * @property int $totalMember 总会员
  12. * @property int $totalFans 总粉丝
  13. * @property int $totalWeixinFans 微信公众号里的粉丝数
  14. * @property int $totalIntegral 总积分
  15. * @property int $totalPoint 积分
  16. * @property int $totalGoods 总计商品数量
  17. * @property string $totalRecharge 累计给用户充值金额
  18. * @property string $totalUseRecharge 充值消费收入,给用户充值金额已经使用部分
  19. * @property int $totalOrder 总计订单,线上
  20. * @property int $totalDeal 总计交易量,包括线上线下
  21. * @property int $merchantId 商户id
  22. * @property string $totalIncome 累计收入
  23. * @property string $totalExpend 累计消费
  24. * @property string $createTime 创建时间
  25. * @property string $updateTime
  26. */
  27. class xhMerchantAsset extends xhBaseModel
  28. {
  29. /**
  30. * @inheritdoc
  31. */
  32. public static function tableName()
  33. {
  34. return 'xhMerchantAsset';
  35. }
  36. /**
  37. * @inheritdoc
  38. */
  39. public function rules()
  40. {
  41. return [
  42. [['balance', 'freezeBalance', 'totalRecharge', 'totalUseRecharge', 'totalIncome', 'totalExpend'], 'number'],
  43. [['totalVisit', 'totalUser', 'totalMember', 'totalFans', 'totalWeixinFans', 'totalIntegral', 'totalPoint', 'totalGoods', 'totalOrder', 'totalDeal', 'merchantId'], 'integer'],
  44. [['createTime'], 'required'],
  45. [['createTime', 'updateTime'], 'safe'],
  46. [['merchantId'], 'unique'],
  47. ];
  48. }
  49. /**
  50. * @inheritdoc
  51. */
  52. public function attributeLabels()
  53. {
  54. return [
  55. 'id' => 'ID',
  56. 'balance' => 'Balance',
  57. 'freezeBalance' => 'Freeze Balance',
  58. 'totalVisit' => 'Total Visit',
  59. 'totalUser' => 'Total User',
  60. 'totalMember' => 'Total Member',
  61. 'totalFans' => 'Total Fans',
  62. 'totalWeixinFans' => 'Total Weixin Fans',
  63. 'totalIntegral' => 'Total Integral',
  64. 'totalPoint' => 'Total Point',
  65. 'totalGoods' => 'Total Goods',
  66. 'totalRecharge' => 'Total Recharge',
  67. 'totalUseRecharge' => 'Total Use Recharge',
  68. 'totalOrder' => 'Total Order',
  69. 'totalDeal' => 'Total Deal',
  70. 'merchantId' => 'Merchant ID',
  71. 'totalIncome' => 'Total Income',
  72. 'totalExpend' => 'Total Expend',
  73. 'createTime' => 'Create Time',
  74. 'updateTime' => 'Update Time',
  75. ];
  76. }
  77. }