Files
pathfinder/app/main/model/pathfinder/systemneighbourmodel.php
Mark Friedrich a33615445e - new "_NPC faction_" added for k-space systems, closed #773
- improved file structure for _Model_ classes (`app/main/model/..`). Group by database name
- improved database connection handling (fixed persistent DB connections)
2019-04-12 21:34:29 +02:00

49 lines
1018 B
PHP

<?php
/**
* Created by PhpStorm.
* User: Exodus
* Date: 24.12.2015
* Time: 00:59
*/
namespace Model\Pathfinder;
use DB\SQL\Schema;
class SystemNeighbourModel extends AbstractPathfinderModel {
protected $table = 'system_neighbour';
protected $fieldConf = [
'regionId' => [
'type' => Schema::DT_INT,
'index' => true
],
'constellationId' => [
'type' => Schema::DT_INT,
'index' => true
],
'systemName' => [
'type' => Schema::DT_VARCHAR128,
'default' => ''
],
'systemId' => [
'type' => Schema::DT_INT,
'index' => true
],
'jumpNodes' => [
'type' => Schema::DT_VARCHAR512,
'default' => ''
],
'trueSec' => [
'type' => Schema::DT_DECIMAL,
'default' => 0
]
];
/**
* No static columns added
* @var bool
*/
protected $addStaticFields = false;
}