AddonsBossCommissionJob.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace addons\BossWeight\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addons_boss_weight_commission_job}}".
  6. *
  7. * @property int $id
  8. * @property int $mall_id 商城ID
  9. * @property string $date_limit 结算开始~结束日期
  10. * @property int $compute_period 结算周期:1天,2周,3月
  11. * @property int|null $status 状态[-1:删除;0:禁用;1启用]
  12. * @property int $created_at
  13. * @property int $updated_at
  14. */
  15. class AddonsBossCommissionJob extends \common\models\base\BaseActiveRecord
  16. {
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public static function tableName()
  21. {
  22. return '{{%addons_boss_weight_commission_job}}';
  23. }
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public function rules()
  28. {
  29. return [
  30. [['mall_id', 'compute_period', 'status', 'created_at', 'updated_at'], 'integer'],
  31. [['date_limit'], 'string', 'max' => 45],
  32. ];
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function attributeLabels()
  38. {
  39. return [
  40. 'id' => 'ID',
  41. 'mall_id' => '商城ID',
  42. 'date_limit' => '结算开始~结束日期',
  43. 'compute_period' => '结算周期:1天,2周,3月',
  44. 'status' => '状态[-1:删除;0:禁用;1启用]',
  45. 'created_at' => 'Created At',
  46. 'updated_at' => 'Updated At',
  47. ];
  48. }
  49. }