# Generated by Django 3.1.4 on 2021-06-14 19:47

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


class Migration(migrations.Migration):

    dependencies = [
        ("stocks", "0012_auto_20210614_1544"),
    ]

    operations = [
        migrations.CreateModel(
            name="PortfolioSectors",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "book_cost",
                    models.DecimalField(decimal_places=2, max_digits=20, null=True),
                ),
                (
                    "market_value",
                    models.DecimalField(decimal_places=2, max_digits=20, null=True),
                ),
                (
                    "total_gain_loss",
                    models.DecimalField(decimal_places=2, max_digits=20, null=True),
                ),
                ("sector", models.CharField(max_length=100)),
                (
                    "user",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
        ),
        migrations.AlterModelOptions(
            name="portfoliosummary",
            options={"managed": True},
        ),
    ]
