<?xml version="1.0" encoding="UTF-8"?>
<schemaMeta xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
            xsi:noNamespaceSchemaLocation="http://schemaspy.sourceforge.net/xmlschema/2008/09/03/schemaspy.meta.xsd">
   <comments> Kaltura 1 database </comments>
   <tables>
      <table name="admin_permission">
         <column name="admin_kuser_id">
            <foreignKey table="admin_kuser" column="id"/>
         </column>
      </table>
      <table name="admin_kuser">
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
      </table>
      <table name="alert">
         <column name="kuser_id">
            <foreignKey table="kuser" column="id"/>
         </column>
      </table>
      <table name="conversion_params">
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
      </table>
      <table name="conversion_profile">
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
      </table>
      <table name="entry">
         <column name="kuser_id">
            <foreignKey table="kuser" column="id"/>
         </column>
         <column name="kshow_id">
            <foreignKey table="kshow" column="id"/>
         </column>
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
         <column name="puser_id">
            <foreignKey table="puser_kuser" column="id"/>
         </column>
      </table>
      <table name="batch_job">
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
         <column name="parent_job_id">
            <foreignKey table="batch_job" column="id"/>
         </column>
      </table>
      <table name="bb_post">
         <column name="kuser_id">
            <foreignKey table="kuser" column="id"/>
         </column>
         <column name="parent_id">
            <foreignKey table="bb_post" column="id"/>
         </column>
      </table>
      <table name="collect_stats">
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
         <column name="entry_id">
            <foreignKey table="entry" column="id"/>
         </column>
         <column name="widget_id">
            <foreignKey table="widget" column="id"/>
         </column>
      </table>
      <table name="comment">
         <column name="kuser_id">
            <foreignKey table="kuser" column="id"/>
         </column>
      </table>
      <table name="conversion">
         <column name="entry_id">
            <foreignKey table="entry" column="id"/>
         </column>
      </table>
      <table name="conversion_params">
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
      </table>
      <table name="conversion_profile">
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
      </table>
      <table name="facebook_invite">
         <column name="puser_id">
            <foreignKey table="puser_kuser" column="id"/>
         </column>
         <column name="invited_puser_id">
            <foreignKey table="puser_kuser" column="id"/>
         </column>
      </table>
      <table name="favorite">
         <column name="kuser_id">
            <foreignKey table="kuser" column="id"/>
         </column>
      </table>
      <table name="flag">
         <column name="kuser_id">
            <foreignKey table="kuser" column="id"/>
         </column>
      </table>
      <table name="kshow">
         <column name="show_entry_id">
            <foreignKey table="entry" column="id"/>
         </column>
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
      </table>
      <table name="kshow_kuser">
         <column name="kshow_id">
            <foreignKey table="kshow" column="id"/>
         </column>
         <column name="kuser_id">
            <foreignKey table="kuser" column="id"/>
         </column>
      </table>
      <table name="kuser">
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
         <column name="puser_id">
            <foreignKey table="puser_kuser" column="id"/>
         </column>
      </table>
      <table name="kvote">
         <column name="kshow_id">
            <foreignKey table="kshow" column="id"/>
         </column>
         <column name="entry_id">
            <foreignKey table="entry" column="id"/>
         </column>
         <column name="kuser_id">
            <foreignKey table="kuser" column="id"/>
         </column>
      </table>
      <table name="kwidget_log">
         <column name="widget_id">
            <foreignKey table="widget" column="id"/>
         </column>
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
         <column name="kshow_id">
            <foreignKey table="kshow" column="id"/>
         </column>
         <column name="ui_conf_id">
            <foreignKey table="ui_conf" column="id"/>
         </column>
         <column name="entry_id">
            <foreignKey table="entry" column="id"/>
         </column>
      </table>
      <table name="mail_job">
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
         <column name="campaign_id">
            <foreignKey table="email_campaign" column="id"/>
         </column>
      </table>
      <table name="moderation">
         <column name="kuser_id">
            <foreignKey table="kuser" column="id"/>
         </column>
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
         <column name="puser_id">
            <foreignKey table="puser_kuser" column="id"/>
         </column>
      </table>
      <table name="moderation_flag">
         <column name="kuser_id">
            <foreignKey table="kuser" column="id"/>
         </column>
         <column name="flagged_kuser_id">
            <foreignKey table="kuser" column="id"/>
         </column>
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
         <column name="flagged_entry_id">
            <foreignKey table="entry" column="id"/>
         </column>
      </table>
      <table name="notification">
         <column name="puser_id">
            <foreignKey table="puser_kuser" column="id"/>
         </column>
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
      </table>
      <table name="partner_activity">
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
      </table>
      <table name="partner_stats">
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
      </table>
      <table name="partner_transactions">
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
      </table>
      <table name="puser_kuser">
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
         <column name="kuser_id">
            <foreignKey table="kuser" column="id"/>
         </column>
         <column name="puser_id">
            <foreignKey table="puser_kuser" column="id"/>
         </column>
      </table>
      <table name="puser_role">
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
         <column name="kshow_id">
            <foreignKey table="kshow" column="id"/>
         </column>
         <column name="puser_id">
            <foreignKey table="puser_kuser" column="id"/>
         </column>
      </table>
      <table name="roughcut_entry">
         <column name="entry_id">
            <foreignKey table="entry" column="id"/>
         </column>
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
      </table>
      <table name="ui_conf">
         <column name="partner_id">
            <foreignKey table="entry" column="id"/>
         </column>
      </table>
      <table name="widget">
         <column name="partner_id">
            <foreignKey table="partner" column="id"/>
         </column>
         <column name="kshow_id">
            <foreignKey table="kshow" column="id"/>
         </column>
         <column name="entry_id">
            <foreignKey table="entry" column="id"/>
         </column>
         <column name="ui_conf_id">
            <foreignKey table="ui_conf" column="id"/>
         </column>
      </table>
</tables>
</schemaMeta>

