<?php
/**
 * Created by PhpStorm.
 * User: exodus4d
 * Date: 17.02.15
 * Time: 20:01
 */

namespace Exodus4D\Pathfinder\Model\Pathfinder;

use DB\SQL\Schema;

class MapTypeModel extends AbstractPathfinderModel {

    /**
     * @var string
     */
    protected $table = 'map_type';

    /**
     * @var array
     */
    protected $fieldConf = [
        'active' => [
            'type' => Schema::DT_BOOL,
            'nullable' => false,
            'default' => 1,
            'index' => true
        ],
        'name' => [
            'type' => Schema::DT_VARCHAR128,
            'nullable' => false,
            'default' => ''
        ],
        'label' => [
            'type' => Schema::DT_VARCHAR128,
            'nullable' => false,
            'default' => ''
        ],
        'class' => [
            'type' => Schema::DT_VARCHAR128,
            'nullable' => false,
            'default' => ''
        ],
        'classTab' => [
            'type' => Schema::DT_VARCHAR128,
            'nullable' => false,
            'default' => ''
        ]
    ];

    /**
     * @var array
     */
    protected static $tableData = [
        [
            'id' => 1,
            'name' => 'standard',
            'label' => '',
            'class' => '',
            'classTab' => 'pf-map-type-tab-default'
        ],
        [
            'id' => 2,
            'name' => 'private',
            'label' => 'private',
            'class' => 'pf-map-type-private',
            'classTab' => 'pf-map-type-tab-private'
        ],
        [
            'id' => 3,
            'name' => 'corporation',
            'label' => 'corporation',
            'class' => 'pf-map-type-corporation',
            'classTab' => 'pf-map-type-tab-corporation'
        ],
        [
            'id' => 4,
            'name' => 'alliance',
            'label' => 'alliance',
            'class' => 'pf-map-type-alliance',
            'classTab' => 'pf-map-type-tab-alliance'
        ],
        [
            'id' => 5,
            'name' => 'global',
            'label' => 'global',
            'class' => 'pf-map-type-global',
            'classTab' => 'pf-map-type-tab-global'
        ]
    ];

} 