mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-01-26 18:48:40 +00:00
Database adjustments for client & item
This commit is contained in:
parent
c63a229134
commit
bdc0a2e6f3
|
|
@ -57,6 +57,24 @@ class Installer extends InstallerAbstract
|
|||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
||||
)->execute();
|
||||
|
||||
$dbPool->get('core')->con->prepare(
|
||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'itemreference_segmentation` (
|
||||
`itemreference_segmentation_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`itemreference_segmentation_type` varchar(30) DEFAULT NULL,
|
||||
`itemreference_segmentation_no` varchar(30) DEFAULT NULL,
|
||||
PRIMARY KEY (`itemreference_segmentation_id`)
|
||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
||||
)->execute();
|
||||
|
||||
$dbPool->get('core')->con->prepare(
|
||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'itemreference_segmentation_l11n` (
|
||||
`itemreference_segmentation_l11n_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`itemreference_segmentation_no` varchar(30) DEFAULT NULL,
|
||||
`itemreference_segmentation_name` varchar(30) DEFAULT NULL,
|
||||
PRIMARY KEY (`itemreference_segmentation_l11n_id`)
|
||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
||||
)->execute();
|
||||
|
||||
$dbPool->get('core')->con->prepare(
|
||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'itemreference_media` (
|
||||
`itemreference_media_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
|
|
@ -76,15 +94,15 @@ class Installer extends InstallerAbstract
|
|||
)->execute();
|
||||
|
||||
$dbPool->get('core')->con->prepare(
|
||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'itemreference_localization` (
|
||||
`itemreference_localization_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`itemreference_localization_language` varchar(30) DEFAULT NULL,
|
||||
`itemreference_localization_name1` varchar(30) DEFAULT NULL,
|
||||
`itemreference_localization_name2` varchar(30) DEFAULT NULL,
|
||||
`itemreference_localization_name3` varchar(30) DEFAULT NULL,
|
||||
`itemreference_localization_desc` text DEFAULT NULL,
|
||||
`itemreference_localization_item` text DEFAULT NULL,
|
||||
PRIMARY KEY (`itemreference_localization_id`)
|
||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'itemreference_item_l11n` (
|
||||
`itemreference_item_l11n_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`itemreference_item_l11n_language` varchar(30) DEFAULT NULL,
|
||||
`itemreference_item_l11n_name1` varchar(30) DEFAULT NULL,
|
||||
`itemreference_item_l11n_name2` varchar(30) DEFAULT NULL,
|
||||
`itemreference_item_l11n_name3` varchar(30) DEFAULT NULL,
|
||||
`itemreference_item_l11n_desc` text DEFAULT NULL,
|
||||
`itemreference_item_l11n_item` text DEFAULT NULL,
|
||||
PRIMARY KEY (`itemreference_item_l11n_id`)
|
||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
||||
)->execute();
|
||||
|
||||
|
|
|
|||
80
Models/Item.php
Normal file
80
Models/Item.php
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
namespace Modules\ItemManagement\Models;
|
||||
|
||||
/**
|
||||
* Account class.
|
||||
*
|
||||
* @category Modules
|
||||
* @package Modules\Admin
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Item
|
||||
{
|
||||
private $id = 0;
|
||||
|
||||
private $number = 0;
|
||||
|
||||
private $articleGroup = 0;
|
||||
|
||||
private $salesGroup = 0;
|
||||
|
||||
private $productGroup = 0;
|
||||
|
||||
private $segment = 0;
|
||||
|
||||
private $successor = 0;
|
||||
|
||||
public function __construct(int $id = 0)
|
||||
{
|
||||
$this->createdAt = new \DateTime('now');
|
||||
}
|
||||
|
||||
public function getNumber() : int
|
||||
{
|
||||
return $this->number;
|
||||
}
|
||||
|
||||
public function getArticleGroup() : int
|
||||
{
|
||||
return $this->articleGroup;
|
||||
}
|
||||
|
||||
public function getSalesGroup() : int
|
||||
{
|
||||
return $this->salesGroup;
|
||||
}
|
||||
|
||||
public function getProductGroup() : int
|
||||
{
|
||||
return $this->productGroup;
|
||||
}
|
||||
|
||||
public function getSegment() : int
|
||||
{
|
||||
return $this->segment;
|
||||
}
|
||||
|
||||
public function getSuccessor() : int
|
||||
{
|
||||
return $this->successor;
|
||||
}
|
||||
}
|
||||
0
Models/ItemLocalization.php
Normal file
0
Models/ItemLocalization.php
Normal file
0
Models/ItemLocalizationMapper.php
Normal file
0
Models/ItemLocalizationMapper.php
Normal file
0
Models/ItemMapper.php
Normal file
0
Models/ItemMapper.php
Normal file
Loading…
Reference in New Issue
Block a user