can schedule in a show (just one playlist currently), schedule table is cleared of shows contents when a show is deleted, can clear a show of contents.

This commit is contained in:
Naomi 2010-12-16 15:15:43 -05:00
parent 1b216c16dd
commit d95c4ab0fc
24 changed files with 2825 additions and 300 deletions

View file

@ -37,17 +37,17 @@ class CcScheduleTableMap extends TableMap {
$this->setPackage('campcaster');
$this->setUseIdGenerator(false);
// columns
$this->addPrimaryKey('ID', 'Id', 'BIGINT', true, null, null);
$this->addColumn('PLAYLIST_ID', 'PlaylistId', 'INTEGER', true, null, null);
$this->addColumn('STARTS', 'Starts', 'TIMESTAMP', true, null, null);
$this->addColumn('ENDS', 'Ends', 'TIMESTAMP', true, null, null);
$this->addColumn('GROUP_ID', 'GroupId', 'INTEGER', false, null, null);
$this->addColumn('FILE_ID', 'FileId', 'INTEGER', false, null, null);
$this->addColumn('CLIP_LENGTH', 'ClipLength', 'TIME', false, null, '00:00:00');
$this->addColumn('FADE_IN', 'FadeIn', 'TIME', false, null, '00:00:00');
$this->addColumn('FADE_OUT', 'FadeOut', 'TIME', false, null, '00:00:00');
$this->addColumn('CUE_IN', 'CueIn', 'TIME', false, null, '00:00:00');
$this->addColumn('CUE_OUT', 'CueOut', 'TIME', false, null, '00:00:00');
$this->addPrimaryKey('ID', 'DbId', 'BIGINT', true, null, null);
$this->addColumn('PLAYLIST_ID', 'DbPlaylistId', 'INTEGER', true, null, null);
$this->addColumn('STARTS', 'DbStarts', 'TIMESTAMP', true, null, null);
$this->addColumn('ENDS', 'DbEnds', 'TIMESTAMP', true, null, null);
$this->addColumn('GROUP_ID', 'DbGroupId', 'INTEGER', false, null, null);
$this->addColumn('FILE_ID', 'DbFileId', 'INTEGER', false, null, null);
$this->addColumn('CLIP_LENGTH', 'DbClipLength', 'TIME', false, null, '00:00:00');
$this->addColumn('FADE_IN', 'DbFadeIn', 'TIME', false, null, '00:00:00');
$this->addColumn('FADE_OUT', 'DbFadeOut', 'TIME', false, null, '00:00:00');
$this->addColumn('CUE_IN', 'DbCueIn', 'TIME', false, null, '00:00:00');
$this->addColumn('CUE_OUT', 'DbCueOut', 'TIME', false, null, '00:00:00');
// validators
} // initialize()

View file

@ -0,0 +1,55 @@
<?php
/**
* This class defines the structure of the 'cc_show_schedule' table.
*
*
*
* This map class is used by Propel to do runtime db structure discovery.
* For example, the createSelectSql() method checks the type of a given column used in an
* ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
* (i.e. if it's a text column type).
*
* @package propel.generator.campcaster.map
*/
class CcShowScheduleTableMap extends TableMap {
/**
* The (dot-path) name of this class
*/
const CLASS_NAME = 'campcaster.map.CcShowScheduleTableMap';
/**
* Initialize the table attributes, columns and validators
* Relations are not initialized by this method since they are lazy loaded
*
* @return void
* @throws PropelException
*/
public function initialize()
{
// attributes
$this->setName('cc_show_schedule');
$this->setPhpName('CcShowSchedule');
$this->setClassname('CcShowSchedule');
$this->setPackage('campcaster');
$this->setUseIdGenerator(true);
$this->setPrimaryKeyMethodInfo('cc_show_schedule_id_seq');
// columns
$this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null);
$this->addForeignKey('SHOW_ID', 'DbShowId', 'INTEGER', 'cc_show', 'ID', true, null, null);
$this->addColumn('GROUP_ID', 'DbGroupId', 'INTEGER', true, null, null);
// validators
} // initialize()
/**
* Build the RelationMap objects for this table relationships
*/
public function buildRelations()
{
$this->addRelation('CcShow', 'CcShow', RelationMap::MANY_TO_ONE, array('show_id' => 'id', ), 'CASCADE', null);
} // buildRelations()
} // CcShowScheduleTableMap

View file

@ -52,6 +52,7 @@ class CcShowTableMap extends TableMap {
{
$this->addRelation('CcShowDays', 'CcShowDays', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null);
$this->addRelation('CcShowHosts', 'CcShowHosts', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null);
$this->addRelation('CcShowSchedule', 'CcShowSchedule', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null);
} // buildRelations()
} // CcShowTableMap