text: # Generated by Django 2.2.4 on 2019-08-19 23:35
  
  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),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Profile',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('cash', models.FloatField(default=10000)),
                  ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='Stock',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('symbol', models.CharField(max_length=10, unique=True)),
                  ('name', models.CharField(max_length=80)),
              ],
          ),
          migrations.CreateModel(
              name='Transaction',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('quantity', models.FloatField()),
                  ('price', models.FloatField()),
                  ('time', models.DateTimeField(auto_now_add=True)),
                  ('stock', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='stocktrader.Stock')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='transactions', to='stocktrader.Profile')),
              ],
          ),
      ]
  