<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "linkman_t".
 *
 * @property integer $id
 * @property integer $car_id
 * @property string $name
 * @property string $phone
 * @property string $type
 * @property string $id_number
 * @property string $created_at
 * @property string $updated_at
 */
class LinkmanT extends \common\models\Base
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'linkman_t';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['car_id'], 'required'],
            [['car_id'], 'integer'],
            [['created_at', 'updated_at'], 'safe'],
            [['name'], 'string', 'max' => 100],
            [['phone', 'type', 'id_type', 'id_number'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'car_id' => 'Car ID',
            'name' => 'Name',
            'phone' => 'Phone',
            'type' => 'Type',
            'id_type' => 'Id Type',
            'id_number' => 'Id Number',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}