CloudStockPriceDifferenceUserTeamStatistics.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace addons\CloudStock\common\models;
  3. use common\models\base\BaseActiveRecord;
  4. use Yii;
  5. /**
  6. * This is the model class for table "qimall_addons_cloud_stock_price_difference_user_team_statistics".
  7. *
  8. * @property int $id ID
  9. * @property int $mall_id 商城ID
  10. * @property int $user_id 用户ID
  11. * @property int $status 状态[-1:删除;0:禁用;1启用]
  12. * @property int $created_at 创建时间
  13. * @property int $updated_at 上次更新数据时间
  14. * @property float $user_direct_pay_selling_price 直推已支付的订单售价总额(商品价格)
  15. * @property float $user_indirect_pay_selling_price 间推已支付的订单售价总额(商品价格)
  16. * @property float $team_pay_selling_price 团队已支付的订单售价总额(商品价格)
  17. * @property float $self_selling_price 本人已支付的订单售价总额(商品价格)
  18. */
  19. class CloudStockPriceDifferenceUserTeamStatistics extends BaseActiveRecord
  20. {
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public static function tableName()
  25. {
  26. return '{{%addons_cloud_stock_price_difference_user_team_statistics}}';
  27. }
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public function rules()
  32. {
  33. return [
  34. [['mall_id', 'user_id', 'status', 'created_at', 'updated_at'], 'integer'],
  35. [['user_direct_pay_selling_price', 'user_indirect_pay_selling_price', 'team_pay_selling_price', 'self_selling_price'], 'number'],
  36. ];
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'id' => 'ID',
  45. 'mall_id' => 'Mall ID',
  46. 'user_id' => 'User ID',
  47. 'status' => 'Status',
  48. 'created_at' => 'Created At',
  49. 'updated_at' => 'Updated At',
  50. 'user_direct_pay_selling_price' => 'User Direct Pay Selling Price',
  51. 'user_indirect_pay_selling_price' => 'User Indirect Pay Selling Price',
  52. 'team_pay_selling_price' => 'Team Pay Selling Price',
  53. 'self_selling_price' => 'Self Selling Price',
  54. ];
  55. }
  56. }