# Generated by Django 2.2.10 on 2020-05-19 18:10

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('accounts', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Financial',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('comment', models.TextField(blank=True, null=True)),
                ('currency', models.CharField(max_length=1)),
                ('revenue', models.FloatField()),
                ('cashBalance', models.FloatField()),
                ('monthlyBurn', models.FloatField()),
                ('startDate', models.DateField()),
                ('endDate', models.DateField()),
            ],
            options={
                'ordering': ['-startDate'],
            },
        ),
        migrations.CreateModel(
            name='Startup',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('startupEmail', models.EmailField(max_length=254)),
                ('name', models.CharField(max_length=100)),
                ('website', models.CharField(blank=True, max_length=100, null=True)),
                ('ownership', models.FloatField(blank=True, null=True)),
                ('board', models.CharField(blank=True, max_length=30, null=True)),
                ('users', models.ManyToManyField(blank=True, related_name='startups', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='KpiName',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=20)),
                ('startupId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='kpinames', to='startups.Startup')),
            ],
        ),
        migrations.CreateModel(
            name='Kpi',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=20, null=True)),
                ('value', models.FloatField(blank=True, null=True)),
                ('financialId', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='kpis', to='startups.Financial')),
            ],
        ),
        migrations.CreateModel(
            name='Job',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('url', models.URLField(blank=True, null=True)),
                ('title', models.TextField()),
                ('description', models.TextField(blank=True, null=True)),
                ('salary', models.CharField(blank=True, max_length=200, null=True)),
                ('location', models.CharField(blank=True, max_length=100, null=True)),
                ('importance', models.CharField(blank=True, max_length=50, null=True)),
                ('startupId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='jobs', to='startups.Startup')),
            ],
        ),
        migrations.CreateModel(
            name='Investment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('value', models.FloatField(blank=True)),
                ('currency', models.CharField(max_length=1)),
                ('investmentType', models.CharField(blank=True, max_length=20, null=True)),
                ('date', models.DateField(blank=True, null=True)),
                ('startupId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='investments', to='startups.Startup')),
            ],
            options={
                'ordering': ['date'],
            },
        ),
        migrations.CreateModel(
            name='Introduction',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('status', models.CharField(blank=True, max_length=200, null=True)),
                ('connection', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='introductions', to='accounts.Connection')),
                ('job', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='introductions', to='startups.Job')),
            ],
        ),
        migrations.AddField(
            model_name='financial',
            name='startupId',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='financials', to='startups.Startup'),
        ),
    ]
