Files
pathfinder/app/main/model/universe/constellationmodel.php
Mark Friedrich ff15fc0bf9 - added new "Jump log" for selected wormhole connections, closed #313 closed #449 closed #382
- added new "select connection" feature to map - ctrl + click for multiselect, closed  #174
- added new "wormhole type" table to "Jump info" dialog, closed  #174
- added new re-order drag&drop feature for pannels, #470 closed #234
- fixed PHP-Doc comments - added @throw statements
- fixed some Javascript memory leaks with infinite counters
- updated "Peity jQuery plugin" `3.2.0` -> `3.2.1`
2017-12-04 15:12:52 +01:00

66 lines
1.4 KiB
PHP

<?php
/**
* Created by PhpStorm.
* User: exodus4d
* Date: 29.07.2017
* Time: 16:49
*/
namespace Model\Universe;
use DB\SQL\Schema;
class ConstellationModel extends BasicUniverseModel {
protected $table = 'constellation';
/**
* No static columns added
* @var bool
*/
protected $addStaticFields = false;
protected $fieldConf = [
'name' => [
'type' => Schema::DT_VARCHAR128,
'nullable' => false,
'default' => ''
],
'regionId' => [
'type' => Schema::DT_INT,
'index' => true,
'belongs-to-one' => 'Model\Universe\RegionModel',
'constraint' => [
[
'table' => 'region',
'on-delete' => 'CASCADE'
]
]
],
'x' => [
'type' => Schema::DT_INT8,
'nullable' => false,
'default' => 0
],
'y' => [
'type' => Schema::DT_INT8,
'nullable' => false,
'default' => 0
],
'z' => [
'type' => Schema::DT_INT8,
'nullable' => false,
'default' => 0
]
];
/**
* @param int $id
* @param string $accessToken
* @param array $additionalOptions
*/
protected function loadData(int $id, string $accessToken = '', array $additionalOptions = []){
}
}