DistributionUpgradeLimit.php 1.6 KB

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