summaryrefslogtreecommitdiff
path: root/app/trading/migrations/0017_luxoptioncontact_luxoptionpurchase.py
blob: 225846671e6eb4488445e9020f62af5551c5a187 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Generated by Django 3.2.7 on 2022-01-03 13:11

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('trading', '0016_alter_luxoptionstrade_pl'),
    ]

    operations = [
        migrations.CreateModel(
            name='LuxOptionContact',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('symbol', models.CharField(max_length=256)),
                ('strike_price', models.FloatField()),
                ('expiration_date', models.DateField()),
                ('contract_open_price', models.FloatField()),
                ('contract_close_price', models.FloatField(blank=True, null=True)),
                ('call_put', models.IntegerField(choices=[(0, 'Call'), (1, 'Put')], default=0)),
            ],
        ),
        migrations.CreateModel(
            name='LuxOptionPurchase',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('symbol', models.CharField(max_length=256)),
                ('open_date', models.DateTimeField(auto_now_add=True)),
                ('contracts', models.ManyToManyField(to='trading.LuxOptionContact')),
            ],
        ),
    ]