CcShowDaysTableMap.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * This class defines the structure of the 'cc_show_days' 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 CcShowDaysTableMap extends TableMap {
  15. /**
  16. * The (dot-path) name of this class
  17. */
  18. const CLASS_NAME = 'airtime.map.CcShowDaysTableMap';
  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_show_days');
  30. $this->setPhpName('CcShowDays');
  31. $this->setClassname('CcShowDays');
  32. $this->setPackage('airtime');
  33. $this->setUseIdGenerator(true);
  34. $this->setPrimaryKeyMethodInfo('cc_show_days_id_seq');
  35. // columns
  36. $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null);
  37. $this->addColumn('FIRST_SHOW', 'DbFirstShow', 'DATE', true, null, null);
  38. $this->addColumn('LAST_SHOW', 'DbLastShow', 'DATE', false, null, null);
  39. $this->addColumn('START_TIME', 'DbStartTime', 'TIME', true, null, null);
  40. $this->addColumn('TIMEZONE', 'DbTimezone', 'VARCHAR', true, 255, null);
  41. $this->addColumn('DURATION', 'DbDuration', 'VARCHAR', true, 255, null);
  42. $this->addColumn('DAY', 'DbDay', 'TINYINT', false, null, null);
  43. $this->addColumn('REPEAT_TYPE', 'DbRepeatType', 'TINYINT', true, null, null);
  44. $this->addColumn('NEXT_POP_DATE', 'DbNextPopDate', 'DATE', false, null, null);
  45. $this->addForeignKey('SHOW_ID', 'DbShowId', 'INTEGER', 'cc_show', 'ID', true, null, null);
  46. $this->addColumn('RECORD', 'DbRecord', 'TINYINT', false, null, 0);
  47. // validators
  48. } // initialize()
  49. /**
  50. * Build the RelationMap objects for this table relationships
  51. */
  52. public function buildRelations()
  53. {
  54. $this->addRelation('CcShow', 'CcShow', RelationMap::MANY_TO_ONE, array('show_id' => 'id', ), 'CASCADE', null);
  55. } // buildRelations()
  56. } // CcShowDaysTableMap