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/JobStatusMapBuilder.php
Executable file
46
lib/model/map/JobStatusMapBuilder.php
Executable file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
class JobStatusMapBuilder {
|
||||
|
||||
|
||||
const CLASS_NAME = 'lib.model.map.JobStatusMapBuilder';
|
||||
|
||||
|
||||
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('job_status');
|
||||
$tMap->setPhpName('JobStatus');
|
||||
|
||||
$tMap->setUseIdGenerator(true);
|
||||
|
||||
$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);
|
||||
|
||||
$tMap->addColumn('STATUS_NAME', 'StatusName', 'string', CreoleTypes::VARCHAR, true, 50);
|
||||
|
||||
$tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);
|
||||
|
||||
$tMap->addColumn('UPDATED_AT', 'UpdatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);
|
||||
|
||||
$tMap->addColumn('WORKORDER_TYPE_ID', 'WorkorderTypeId', 'int', CreoleTypes::INTEGER, false, null);
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user