mirror of
https://github.com/atlanticbiomedical/portal-legacy.git
synced 2025-07-02 01:47:28 -04:00
initial commit
This commit is contained in:
46
lib/model/map/DevicesFailedMapBuilder.php
Executable file
46
lib/model/map/DevicesFailedMapBuilder.php
Executable file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
class DevicesFailedMapBuilder {
|
||||
|
||||
|
||||
const CLASS_NAME = 'lib.model.map.DevicesFailedMapBuilder';
|
||||
|
||||
|
||||
private $dbMap;
|
||||
|
||||
|
||||
public function isBuilt()
|
||||
{
|
||||
return ($this->dbMap !== null);
|
||||
}
|
||||
|
||||
|
||||
public function getDatabaseMap()
|
||||
{
|
||||
return $this->dbMap;
|
||||
}
|
||||
|
||||
|
||||
public function doBuild()
|
||||
{
|
||||
$this->dbMap = Propel::getDatabaseMap('propel');
|
||||
|
||||
$tMap = $this->dbMap->addTable('devices_failed');
|
||||
$tMap->setPhpName('DevicesFailed');
|
||||
|
||||
$tMap->setUseIdGenerator(true);
|
||||
|
||||
$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);
|
||||
|
||||
$tMap->addForeignKey('DEVICE_ID', 'DeviceId', 'int', CreoleTypes::INTEGER, 'device', 'ID', false, null);
|
||||
|
||||
$tMap->addColumn('REPORT_ID', 'ReportId', 'int', CreoleTypes::INTEGER, false, null);
|
||||
|
||||
$tMap->addColumn('CLIENT_ID', 'ClientId', 'string', CreoleTypes::VARCHAR, false, 50);
|
||||
|
||||
$tMap->addColumn('STATUS', 'Status', 'string', CreoleTypes::VARCHAR, false, 50);
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user