DoubleCopyPoolLog.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. namespace addons\DoubleCopy\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addons_double_copy_pool_log}}".
  6. *
  7. * @property int $id
  8. * @property int $send_id double_copy_pool_send.id
  9. * @property int $mall_id 商城ID
  10. * @property int $user_id 等级(权重)
  11. * @property int $level 等级(权重)
  12. * @property float|null $total_bonus_money 本次分红总额,单位:元
  13. * @property int|null $bonus_num 分红人数
  14. * @property float|null $bonus_money 可得分红金额,单位:元
  15. * @property int $status 状态[-1:删除;0:禁用;1启用]
  16. * @property int|null $created_at 创建时间
  17. * @property int|null $updated_at 更新时间
  18. * @property string $reward_currency 奖励类型:佣金-commission,积分-score
  19. */
  20. class DoubleCopyPoolLog extends \common\models\base\BaseActiveRecord
  21. {
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public static function tableName()
  26. {
  27. return '{{%addons_double_copy_pool_log}}';
  28. }
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['send_id', 'mall_id', 'user_id', 'level', 'bonus_num', 'status', 'created_at', 'updated_at'], 'integer'],
  36. [['total_bonus_money', 'bonus_money'], 'number'],
  37. [['reward_currency'],'string']
  38. ];
  39. }
  40. /**
  41. * {@inheritdoc}
  42. */
  43. public function attributeLabels()
  44. {
  45. return [
  46. 'id' => 'ID',
  47. 'send_id' => 'double_copy_pool_send.id',
  48. 'mall_id' => '商城ID',
  49. 'user_id' => '等级(权重)',
  50. 'level' => '等级(权重)',
  51. 'total_bonus_money' => '本次分红总额,单位:元',
  52. 'bonus_num' => '分红人数',
  53. 'bonus_money' => '可得分红金额,单位:元',
  54. 'status' => '状态[-1:删除;0:禁用;1启用]',
  55. 'created_at' => '创建时间',
  56. 'updated_at' => '更新时间',
  57. ];
  58. }
  59. }