LevelConfig.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace common\models\member;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%member_level_config}}".
  6. *
  7. * @property int $id
  8. * @property int|null $merchant_id 商户id
  9. * @property int|null $upgrade_type 升级方式
  10. * @property int|null $auto_upgrade_type 自动升级类型
  11. * @property int|null $status 状态[-1:删除;0:禁用;1启用]
  12. * @property int|null $created_at 创建时间
  13. * @property int|null $updated_at 修改时间
  14. */
  15. class LevelConfig extends \common\models\base\BaseModel
  16. {
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public static function tableName()
  21. {
  22. return '{{%member_level_config}}';
  23. }
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public function rules()
  28. {
  29. return [
  30. [['merchant_id', 'upgrade_type', 'auto_upgrade_type', 'status', 'created_at', 'updated_at'], 'integer'],
  31. ];
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function attributeLabels()
  37. {
  38. return [
  39. 'id' => 'ID',
  40. 'merchant_id' => '商户id',
  41. 'upgrade_type' => '升级方式',
  42. 'auto_upgrade_type' => '自动升级类型',
  43. 'status' => '状态[-1:删除;0:禁用;1启用]',
  44. 'created_at' => '创建时间',
  45. 'updated_at' => '修改时间',
  46. ];
  47. }
  48. }
粤ICP备19079148号