CorntabAssetsStatistics.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace common\models\statistics;
  3. use common\models\base\BaseActiveRecord;
  4. use Yii;
  5. /**
  6. *
  7. * @property int $id
  8. * @property int $mall_id
  9. * @property int $type
  10. * @property int $last_id
  11. * @property int $created_at
  12. * @property int $updated_at
  13. */
  14. class CorntabAssetsStatistics extends BaseActiveRecord
  15. {
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public static function tableName()
  20. {
  21. return '{{%crontab_assets_statistics}}';
  22. }
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function rules()
  27. {
  28. return [
  29. [['mall_id', 'type', 'last_id', 'created_at', 'updated_at'], 'required'],
  30. [['mall_id', 'type', 'last_id', 'created_at', 'updated_at'], 'integer'],
  31. ];
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function attributeLabels()
  37. {
  38. return [
  39. 'id' => 'ID',
  40. 'mall_id' => '商城id',
  41. 'type' => '类型',
  42. 'last_id' => '最后一次查询ID',
  43. 'created_at' => '创建时间',
  44. 'updated_at' => '编辑时间',
  45. ];
  46. }
  47. }