ScoreExpansionRateTask.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace addons\ScoreExpansion\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_score_expansion_rate_task".
  6. *
  7. * @property int $id
  8. * @property int $order_id 订单id
  9. * @property int $is_work 是否执行过 1是 0否
  10. * @property string|null $day 执行时间
  11. * @property string|null $source_table 来源
  12. * @property int|null $updated_at
  13. * @property int|null $created_at
  14. */
  15. class ScoreExpansionRateTask extends \common\models\base\BaseActiveRecord
  16. {
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public static function tableName()
  21. {
  22. return 'qimall_addons_score_expansion_rate_task';
  23. }
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public function rules()
  28. {
  29. return [
  30. [['order_id'], 'required'],
  31. [['order_id', 'is_work', 'updated_at', 'created_at'], 'integer'],
  32. [['day'], 'string', 'max' => 255],
  33. [['source_table'], 'string', 'max' => 24],
  34. ];
  35. }
  36. /**
  37. * {@inheritdoc}
  38. */
  39. public function attributeLabels()
  40. {
  41. return [
  42. 'id' => 'ID',
  43. 'order_id' => 'Order ID',
  44. 'is_work' => 'Is Work',
  45. 'day' => 'Day',
  46. 'updated_at' => 'Updated At',
  47. 'created_at' => 'Created At',
  48. ];
  49. }
  50. }