123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace app\modules\car\models;
- use Yii;
- /**
- * This is the model class for table "{{%f_deta_illegal_using_car}}".
- *
- * @property int $id 序号
- * @property int $car_id 外键关联f_car_infor(car_id)
- * @property string|null $alarm_area_des 报警区域描述
- * @property string|null $alarm_rule_des 报警规则描述
- * @property string $cross_border_t 越界时间
- * @property string|null $dest 目的地
- * @property string|null $reason 出车事由
- * @property int|null $year 年
- * @property int|null $month 月
- */
- class FDetaIllegalUsingCar extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%f_deta_illegal_using_car}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['car_id'], 'required'],
- [['car_id', 'year', 'month'], 'integer'],
- [['cross_border_t'], 'safe'],
- [['alarm_area_des', 'alarm_rule_des', 'dest', 'reason'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => '序号',
- 'car_id' => '外键关联f_car_infor(car_id)',
- 'alarm_area_des' => '报警区域描述',
- 'alarm_rule_des' => '报警规则描述',
- 'cross_border_t' => '越界时间',
- 'dest' => '目的地',
- 'reason' => '出车事由',
- 'year' => '年',
- 'month' => '月',
- ];
- }
- }
|