fisk/core/migrations/0008_trade.py

29 lines
1.1 KiB
Python
Raw Normal View History

2022-10-17 17:56:16 +00:00
# Generated by Django 4.1.2 on 2022-10-17 17:39
import django.db.models.deletion
2022-10-17 18:06:09 +00:00
from django.db import migrations, models
2022-10-17 17:56:16 +00:00
class Migration(migrations.Migration):
dependencies = [
('core', '0007_account'),
]
operations = [
migrations.CreateModel(
name='Trade',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('symbol', models.CharField(max_length=255)),
('type', models.CharField(max_length=255)),
('amount', models.FloatField()),
('price', models.FloatField()),
('stop_loss', models.FloatField(blank=True, null=True)),
('take_profit', models.FloatField(blank=True, null=True)),
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.account')),
('hook', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.hook')),
],
),
]