FFlucFuelHkm.php 1014 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace app\modules\car\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%f_fluc_fuel_hkm}}".
  6. *
  7. * @property int $id 序号
  8. * @property string|null $city 地市
  9. * @property int|null $year 年
  10. * @property int|null $month 月
  11. * @property float|null $fuel_hkm 百公里油耗
  12. */
  13. class FFlucFuelHkm extends \app\common\models\EActiveRecord
  14. {
  15. /**
  16. * {@inheritdoc}
  17. */
  18. public static function tableName()
  19. {
  20. return '{{%f_fluc_fuel_hkm}}';
  21. }
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public function rules()
  26. {
  27. return [
  28. [['year', 'month'], 'integer'],
  29. [['fuel_hkm'], 'number'],
  30. [['city'], 'string', 'max' => 255],
  31. ];
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function attributeLabels()
  37. {
  38. return [
  39. 'id' => '序号',
  40. 'city' => '地市',
  41. 'year' => '年',
  42. 'month' => '月',
  43. 'fuel_hkm' => '百公里油耗',
  44. ];
  45. }
  46. }