<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Import extends Model
{
    public static $CATEGORY = [
        [
            'id' => 1,
            'name' => '经销商导入',
            'model' => Dealer::class,
            'fields' => [
                [
                    'name' => '经销商编号',
                    'column' => 0,
                    'field' => 'identifier'
                ],
                [
                    'name' => '经销商',
                    'column' => 1,
                    'field' => 'name'
                ],
                [
                    'name' => '简介',
                    'column' => 2,
                    'field' => 'description'
                ],
                [
                    'name' => '省份',
                    'column' => 3,
                    'field' => 'province'
                ],
                [
                    'name' => '市',
                    'column' => 4,
                    'field' => 'city'
                ],

            ]
        ]
    ];
}
