Begin adding platform support
This commit is contained in:
42
core/migrations/0008_platform.py
Normal file
42
core/migrations/0008_platform.py
Normal file
@@ -0,0 +1,42 @@
|
||||
# Generated by Django 4.1.7 on 2023-03-09 20:50
|
||||
|
||||
import uuid
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0007_alter_aggregator_account_info_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Platform',
|
||||
fields=[
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||
('name', models.CharField(max_length=255)),
|
||||
('service', models.CharField(choices=[('agora', 'Agora')], max_length=255)),
|
||||
('token', models.CharField(max_length=1024)),
|
||||
('password', models.CharField(max_length=1024)),
|
||||
('otp_token', models.CharField(blank=True, max_length=1024, null=True)),
|
||||
('username', models.CharField(max_length=255)),
|
||||
('send', models.BooleanField(default=True)),
|
||||
('cheat', models.BooleanField(default=False)),
|
||||
('dummy', models.BooleanField(default=False)),
|
||||
('cheat_interval_seconds', models.IntegerField(default=600)),
|
||||
('margin', models.FloatField(default=1.2)),
|
||||
('max_margin', models.FloatField(default=1.3)),
|
||||
('min_margin', models.FloatField(default=1.15)),
|
||||
('min_trade_size_usd', models.FloatField(default=10)),
|
||||
('max_trade_size_usd', models.FloatField(default=4000)),
|
||||
('accept_within_usd', models.FloatField(default=1)),
|
||||
('no_reference_amount_check_max_usd', models.FloatField(default=400)),
|
||||
('enabled', models.BooleanField(default=True)),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user