# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-09 11:32
from __future__ import unicode_literals

import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
    ]

    operations = [
        migrations.CreateModel(
            name='Company',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255)),
                ('source', django.contrib.postgres.fields.jsonb.JSONField(default={})),
                ('financial_data', django.contrib.postgres.fields.jsonb.JSONField(default={})),
                ('stock_data', django.contrib.postgres.fields.jsonb.JSONField(default={})),
            ],
        ),
        migrations.CreateModel(
            name='Exchange',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255)),
                ('source', django.contrib.postgres.fields.jsonb.JSONField(default={})),
            ],
        ),
        migrations.CreateModel(
            name='News',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255)),
                ('source', models.URLField(max_length=255)),
                ('source_title', models.CharField(max_length=255)),
                ('companies', models.ManyToManyField(related_name='news', to='intellifin.Company')),
            ],
        ),
        migrations.AddField(
            model_name='company',
            name='exchange',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='companies', to='intellifin.Exchange'),
        ),
    ]

    initial = True

    dependencies = [