<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "operational_adjustments".
 *
 * @property int $id
 * @property int|null $accident_id 案件ID
 * @property int|null $type_first
 * @property int|null $type_second
 * @property int|null $type_third
 * @property int|null $type_fourth
 * @property int|null $start_time 发生时间
 * @property int|null $is_important
 * @property string|null $important_content
 * @property string|null $content 内容
 * @property string|null $rules 规章
 * @property string|null $assess 评估
 * @property string|null $assess_two 评估
 * @property string $source_data 图片
 * @property int|null $delete_time 删除时间
 */
class OperationalAdjustments extends \yii\db\ActiveRecord
{
    public $dimension;

    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'operational_adjustments';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
//            [['accident_id', 'type', 'start_time'], 'integer'],
//            [['content'], 'string'],
//            [['image'], 'string', 'max' => 512],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'accident_id' => '案件ID',
            'type' => '运营调整类型',
            'start_time' => '发生时间',
            'content' => '内容',
            'assess' => '评估',
            'image' => '图片',
        ];
    }
}
