12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace app\modules\car\models;
- use Yii;
- /**
- * This is the model class for table "{{%f_rent_car_cost}}".
- *
- * @property int $id 序号
- * @property int $car_id 外键关联f_car_infor(car_id)
- * @property float|null $repair_costs 维修
- * @property float|null $insurance_costs 保险
- * @property float|null $year_check_costs 年检
- * @property int|null $year 年
- * @property int|null $month 月
- */
- class FRentCarCost extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%f_rent_car_cost}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['car_id'], 'required'],
- [['car_id', 'year', 'month'], 'integer'],
- [['repair_costs', 'insurance_costs', 'year_check_costs'], 'number'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => '序号',
- 'car_id' => '外键关联f_car_infor(car_id)',
- 'repair_costs' => '维修',
- 'insurance_costs' => '保险',
- 'year_check_costs' => '年检',
- 'year' => '年',
- 'month' => '月',
- ];
- }
- }
|