setName('celery_tasks'); $this->setPhpName('CeleryTasks'); $this->setClassname('CeleryTasks'); $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('celery_tasks_id_seq'); // columns $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); $this->addColumn('task_id', 'DbTaskId', 'VARCHAR', true, 256, null); $this->addForeignKey('track_reference', 'DbTrackReference', 'INTEGER', 'third_party_track_references', 'id', true, null, null); $this->addColumn('name', 'DbName', 'VARCHAR', false, 256, null); $this->addColumn('dispatch_time', 'DbDispatchTime', 'TIMESTAMP', false, null, null); $this->addColumn('status', 'DbStatus', 'VARCHAR', true, 256, null); // validators } // initialize() /** * Build the RelationMap objects for this table relationships */ public function buildRelations() { $this->addRelation('ThirdPartyTrackReferences', 'ThirdPartyTrackReferences', RelationMap::MANY_TO_ONE, array('track_reference' => 'id', ), 'CASCADE', null); } // buildRelations() } // CeleryTasksTableMap