- BC Break: Project folder structure changed. Removed `app/main` dir. - BC Break: Core _PHP_ framework + dependencies moved into `composer.json` and are no longer part of this repo
62 lines
1.2 KiB
PHP
62 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: exodus4d
|
|
* Date: 01.04.15
|
|
* Time: 21:12
|
|
*/
|
|
|
|
namespace Exodus4D\Pathfinder\Model\Pathfinder;
|
|
|
|
use DB\SQL\Schema;
|
|
|
|
class CharacterStatusModel extends AbstractPathfinderModel {
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $table = 'character_status';
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected $fieldConf = [
|
|
'active' => [
|
|
'type' => Schema::DT_BOOL,
|
|
'nullable' => false,
|
|
'default' => 1,
|
|
'index' => true
|
|
],
|
|
'name' => [
|
|
'type' => Schema::DT_VARCHAR128,
|
|
'nullable' => false,
|
|
'default' => ''
|
|
],
|
|
'class' => [
|
|
'type' => Schema::DT_VARCHAR128,
|
|
'nullable' => false,
|
|
'default' => ''
|
|
]
|
|
];
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected static $tableData = [
|
|
[
|
|
'id' => 1,
|
|
'name' => 'corporation',
|
|
'class' => 'pf-user-status-corp'
|
|
],
|
|
[
|
|
'id' => 2,
|
|
'name' => 'alliance',
|
|
'class' => 'pf-user-status-ally'
|
|
],
|
|
[
|
|
'id' => 3,
|
|
'name' => 'own',
|
|
'class' => 'pf-user-status-own'
|
|
]
|
|
];
|
|
}
|