12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace app\modules\car\models;
- use Yii;
- /**
- * This is the model class for table "{{%f_car_condition}}".
- *
- * @property int $id 序号
- * @property int $car_id 外键关联f_car_infor(car_id)
- * @property float|null $mileage 行驶里程
- * @property float|null $car_age 车龄
- * @property int|null $is_overage 是否超龄
- * @property int|null $year 年
- * @property int|null $month 月
- */
- class FCarCondition extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%f_car_condition}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['car_id'], 'required'],
- [['car_id', 'is_overage', 'year', 'month'], 'integer'],
- [['mileage', 'car_age'], 'number'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => '序号',
- 'car_id' => '外键关联f_car_infor(car_id)',
- 'mileage' => '行驶里程',
- 'car_age' => '车龄',
- 'is_overage' => '是否超龄',
- 'year' => '年',
- 'month' => '月',
- ];
- }
- }
|