tradester.migrations package
Submodules
tradester.migrations.0001_initial module
- class tradester.migrations.0001_initial.Migration(name, app_label)[source]
Bases:
Migration
- dependencies = [('auth', '__first__')]
- initial = True
- operations = [<CreateModel name='Portfolio', fields=[('portfolio_id', <django.db.models.fields.AutoField>), ('username', <django.db.models.fields.related.ForeignKey>)]>]
tradester.migrations.0002_stock_portfolio_stock_order module
- class tradester.migrations.0002_stock_portfolio_stock_order.Migration(name, app_label)[source]
Bases:
Migration
- dependencies = [('auth', '__first__'), ('tradester', '0001_initial')]
- operations = [<CreateModel name='Stock', fields=[('stock_symbol', <django.db.models.fields.CharField>), ('company_name', <django.db.models.fields.CharField>), ('sector', <django.db.models.fields.CharField>), ('current_price', <django.db.models.fields.DecimalField>), ('market_cap', <django.db.models.fields.DecimalField>), ('dividend_yield', <django.db.models.fields.DecimalField>), ('earnings_per_share', <django.db.models.fields.DecimalField>), ('price_to_earnings_ratio', <django.db.models.fields.DecimalField>), ('beta', <django.db.models.fields.DecimalField>), ('high_52', <django.db.models.fields.DecimalField>), ('low_52', <django.db.models.fields.DecimalField>), ('avg_daily_volume', <django.db.models.fields.IntegerField>)]>, <CreateModel name='Portfolio_Stock', fields=[('id', <django.db.models.fields.BigAutoField>), ('quantity', <django.db.models.fields.IntegerField>), ('purchase_price', <django.db.models.fields.DecimalField>), ('portfolio_id', <django.db.models.fields.related.ForeignKey>), ('stock_symbol', <django.db.models.fields.related.ForeignKey>)]>, <CreateModel name='Order', fields=[('order_id', <django.db.models.fields.AutoField>), ('order_type', <django.db.models.fields.CharField>), ('quantity', <django.db.models.fields.IntegerField>), ('price', <django.db.models.fields.DecimalField>), ('order_time', <django.db.models.fields.DateTimeField>), ('stock_symbol', <django.db.models.fields.related.ForeignKey>), ('username', <django.db.models.fields.related.ForeignKey>)]>]
tradester.migrations.0003_alter_stock_avg_daily_volume_alter_stock_beta_and_more module
- class tradester.migrations.0003_alter_stock_avg_daily_volume_alter_stock_beta_and_more.Migration(name, app_label)[source]
Bases:
Migration
- dependencies = [('tradester', '0002_stock_portfolio_stock_order')]
- operations = [<AlterField model_name='stock', name='avg_daily_volume', field=<django.db.models.fields.IntegerField>>, <AlterField model_name='stock', name='beta', field=<django.db.models.fields.DecimalField>>, <AlterField model_name='stock', name='company_name', field=<django.db.models.fields.CharField>>, <AlterField model_name='stock', name='current_price', field=<django.db.models.fields.DecimalField>>, <AlterField model_name='stock', name='dividend_yield', field=<django.db.models.fields.DecimalField>>, <AlterField model_name='stock', name='earnings_per_share', field=<django.db.models.fields.DecimalField>>, <AlterField model_name='stock', name='high_52', field=<django.db.models.fields.DecimalField>>, <AlterField model_name='stock', name='low_52', field=<django.db.models.fields.DecimalField>>, <AlterField model_name='stock', name='market_cap', field=<django.db.models.fields.DecimalField>>, <AlterField model_name='stock', name='price_to_earnings_ratio', field=<django.db.models.fields.DecimalField>>, <AlterField model_name='stock', name='sector', field=<django.db.models.fields.CharField>>]
tradester.migrations.0003_investment module
- class tradester.migrations.0003_investment.Migration(name, app_label)[source]
Bases:
Migration
- dependencies = [('tradester', '0002_stock_portfolio_stock_order')]
- operations = [<CreateModel name='Investment', fields=[('id', <django.db.models.fields.BigAutoField>), ('amount', <django.db.models.fields.DecimalField>)]>]
tradester.migrations.0004_alter_stock_avg_daily_volume_alter_stock_beta_and_more module
- class tradester.migrations.0004_alter_stock_avg_daily_volume_alter_stock_beta_and_more.Migration(name, app_label)[source]
Bases:
Migration
- dependencies = [('tradester', '0003_alter_stock_avg_daily_volume_alter_stock_beta_and_more')]
- operations = [<AlterField model_name='stock', name='avg_daily_volume', field=<django.db.models.fields.IntegerField>>, <AlterField model_name='stock', name='beta', field=<django.db.models.fields.DecimalField>>, <AlterField model_name='stock', name='current_price', field=<django.db.models.fields.DecimalField>>, <AlterField model_name='stock', name='dividend_yield', field=<django.db.models.fields.DecimalField>>, <AlterField model_name='stock', name='earnings_per_share', field=<django.db.models.fields.DecimalField>>, <AlterField model_name='stock', name='high_52', field=<django.db.models.fields.DecimalField>>, <AlterField model_name='stock', name='low_52', field=<django.db.models.fields.DecimalField>>, <AlterField model_name='stock', name='market_cap', field=<django.db.models.fields.DecimalField>>, <AlterField model_name='stock', name='price_to_earnings_ratio', field=<django.db.models.fields.DecimalField>>]
tradester.migrations.0004_remove_investment_id_investment_investment_id module
- class tradester.migrations.0004_remove_investment_id_investment_investment_id.Migration(name, app_label)[source]
Bases:
Migration
- dependencies = [('tradester', '0003_investment')]
- operations = [<RemoveField model_name='investment', name='id'>, <AddField model_name='investment', name='investment_id', field=<django.db.models.fields.AutoField>>]