2011-08-26 16:30:40 +00:00

23 lines
1.0 KiB
PHP

<?php
Class commandes extends Doctrine_Record
{
function setTableDefinition()
{
$this->setTableName('commandes');
$this->hasColumn('User', 'varchar', 255, array('primary' => true));
$this->hasColumn('Ip', 'varchar', 255, array('notnull'=> true));
$this->hasColumn('ProviderOrderId', 'integer', 11, array('notnull'=> true));
$this->hasColumn('InternalOrderId', 'integer', 11, array('notnull'=> true));
$this->hasColumn('ConsumerId', 'integer', 11, array('notnull'=> true));
$this->hasColumn('CompanyName', 'varchar', 255, array('notnull' => true));
$this->hasColumn('CompanyCountry', 'varchar', 255, array('notnull' => true));
$this->hasColumn('ProviderId', 'integer', 11, array('notnull'=> true));
$this->hasColumn('CountryCode', 'char', 50, array('notnull'=> true));
$this->hasColumn('CompanyId','varchar', 255, array('notnull'=> true));
$this->hasColumn('DataSetType', 'varchar', 255, array('notnull'=> true));
$this->hasColumn('OrderDateTime', 'timestamp', array('notnull' => true));
}
}
?>