

def forwards(self, orm):
    db.create_table('api_popularhistory', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True)), ('popular_history', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['api.PopularHistoryInfo'])), ('top_score', self.gf('django.db.models.fields.FloatField')(default=0.0)), ('unique_visitor_score', self.gf('django.db.models.fields.FloatField')(default=0.0)), ('avg_time_spent_score', self.gf('django.db.models.fields.FloatField')(default=0.0)), ('num_comment_score', self.gf('django.db.models.fields.FloatField')(default=0.0)), ('total_time_spent', self.gf('django.db.models.fields.IntegerField')(default=0)), ('total_time_ago', self.gf('django.db.models.fields.IntegerField')(default=0))))
    db.send_create_signal('api', ['PopularHistory'])
    m2m_table_name = db.shorten_name('api_popularhistory_eye_hists')
    db.create_table(m2m_table_name, (('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('popularhistory', models.ForeignKey(orm['api.popularhistory'], null=False)), ('eyehistory', models.ForeignKey(orm['api.eyehistory'], null=False))))
    db.create_unique(m2m_table_name, ['popularhistory_id', 'eyehistory_id'])
    m2m_table_name = db.shorten_name('api_popularhistory_visitors')
    db.create_table(m2m_table_name, (('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('popularhistory', models.ForeignKey(orm['api.popularhistory'], null=False)), ('user', models.ForeignKey(orm['auth.user'], null=False))))
    db.create_unique(m2m_table_name, ['popularhistory_id', 'user_id'])
    m2m_table_name = db.shorten_name('api_popularhistory_messages')
    db.create_table(m2m_table_name, (('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('popularhistory', models.ForeignKey(orm['api.popularhistory'], null=False)), ('eyehistorymessage', models.ForeignKey(orm['api.eyehistorymessage'], null=False))))
    db.create_unique(m2m_table_name, ['popularhistory_id', 'eyehistorymessage_id'])
    db.create_unique('api_popularhistory', ['user_id', 'popular_history_id'])
    db.create_table('api_popularhistoryinfo', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('url', self.gf('django.db.models.fields.URLField')(unique=True, max_length=255)), ('img_url', self.gf('django.db.models.fields.URLField')(default='', max_length=2000)), ('description', self.gf('django.db.models.fields.TextField')(default='')), ('domain', self.gf('django.db.models.fields.URLField')(default='', max_length=100)), ('favIconUrl', self.gf('django.db.models.fields.URLField')(default='', max_length=2000)), ('title', self.gf('django.db.models.fields.CharField')(default='', max_length=2000))))
    db.send_create_signal('api', ['PopularHistoryInfo'])

dataset/ETHPy150Open haystack/eyebrowse-server/api/migrations/0026_auto__add_popularhistory__add_unique_popularhistory_user_popular_histo.py Migration.forwards/original