Files
portal-legacy/lib/model/map/WorkorderTechMapBuilder.php
Chris Sewell cf140a2e97 initial commit
2012-11-28 03:55:08 -05:00

46 lines
918 B
PHP
Executable File

<?php
class WorkorderTechMapBuilder {
const CLASS_NAME = 'lib.model.map.WorkorderTechMapBuilder';
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('workorder_tech');
$tMap->setPhpName('WorkorderTech');
$tMap->setUseIdGenerator(true);
$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);
$tMap->addColumn('WORKORDER_ID', 'WorkorderId', 'int', CreoleTypes::INTEGER, false, null);
$tMap->addColumn('USER_ID', 'UserId', 'int', CreoleTypes::INTEGER, false, null);
$tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);
$tMap->addColumn('UPDATED_AT', 'UpdatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);
}
}