ServeBonusUpgradeLimit.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace addons\ServeBonus\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addons_servebonus_upgrade_limit}}".
  6. *
  7. * @property int $id
  8. * @property int|null $mall_id 商城ID
  9. * @property int|null $user_id 消费者ID
  10. * @property int|null $serve_uid 消费者上级ID
  11. * @property int|null $level 消费者上级等级
  12. * @property float|null $achievement 为上级贡献的业绩,单位:元
  13. * @property int|null $status 状态[-1:删除;0:禁用;1启用]
  14. * @property int|null $created_at 创建时间
  15. * @property int|null $updated_at 修改时间
  16. */
  17. class ServeBonusUpgradeLimit extends \common\models\base\BaseActiveRecord
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return '{{%addons_servebonus_upgrade_limit}}';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['mall_id', 'user_id', 'serve_uid', 'level', 'status', 'created_at', 'updated_at'], 'integer'],
  33. [['achievement'], 'number'],
  34. ];
  35. }
  36. /**
  37. * {@inheritdoc}
  38. */
  39. public function attributeLabels()
  40. {
  41. return [
  42. 'id' => 'ID',
  43. 'mall_id' => '商城ID',
  44. 'user_id' => '消费者ID',
  45. 'serve_uid' => '消费者上级ID',
  46. 'level' => '消费者上级等级',
  47. 'achievement' => '为上级贡献的业绩,单位:元',
  48. 'status' => '状态[-1:删除;0:禁用;1启用]',
  49. 'created_at' => '创建时间',
  50. 'updated_at' => '修改时间',
  51. ];
  52. }
  53. }