CcPlayoutHistoryTemplateFieldTableMap.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * This class defines the structure of the 'cc_playout_history_template_field' table.
  4. *
  5. *
  6. *
  7. * This map class is used by Propel to do runtime db structure discovery.
  8. * For example, the createSelectSql() method checks the type of a given column used in an
  9. * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
  10. * (i.e. if it's a text column type).
  11. *
  12. * @package propel.generator.airtime.map
  13. */
  14. class CcPlayoutHistoryTemplateFieldTableMap extends TableMap {
  15. /**
  16. * The (dot-path) name of this class
  17. */
  18. const CLASS_NAME = 'airtime.map.CcPlayoutHistoryTemplateFieldTableMap';
  19. /**
  20. * Initialize the table attributes, columns and validators
  21. * Relations are not initialized by this method since they are lazy loaded
  22. *
  23. * @return void
  24. * @throws PropelException
  25. */
  26. public function initialize()
  27. {
  28. // attributes
  29. $this->setName('cc_playout_history_template_field');
  30. $this->setPhpName('CcPlayoutHistoryTemplateField');
  31. $this->setClassname('CcPlayoutHistoryTemplateField');
  32. $this->setPackage('airtime');
  33. $this->setUseIdGenerator(true);
  34. $this->setPrimaryKeyMethodInfo('cc_playout_history_template_field_id_seq');
  35. // columns
  36. $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null);
  37. $this->addForeignKey('TEMPLATE_ID', 'DbTemplateId', 'INTEGER', 'cc_playout_history_template', 'ID', true, null, null);
  38. $this->addColumn('NAME', 'DbName', 'VARCHAR', true, 128, null);
  39. $this->addColumn('LABEL', 'DbLabel', 'VARCHAR', true, 128, null);
  40. $this->addColumn('TYPE', 'DbType', 'VARCHAR', true, 128, null);
  41. $this->addColumn('IS_FILE_MD', 'DbIsFileMD', 'BOOLEAN', true, null, false);
  42. $this->addColumn('POSITION', 'DbPosition', 'INTEGER', true, null, null);
  43. // validators
  44. } // initialize()
  45. /**
  46. * Build the RelationMap objects for this table relationships
  47. */
  48. public function buildRelations()
  49. {
  50. $this->addRelation('CcPlayoutHistoryTemplate', 'CcPlayoutHistoryTemplate', RelationMap::MANY_TO_ONE, array('template_id' => 'id', ), 'CASCADE', null);
  51. } // buildRelations()
  52. } // CcPlayoutHistoryTemplateFieldTableMap