Add migrations
This commit is contained in:
parent
aa0b522d76
commit
beb5049fec
|
@ -0,0 +1,53 @@
|
||||||
|
# Generated by Django 4.1.7 on 2023-03-12 12:18
|
||||||
|
|
||||||
|
import uuid
|
||||||
|
|
||||||
|
import django.db.models.deletion
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('core', '0017_alter_platform_cheat_interval_seconds'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='Transaction',
|
||||||
|
fields=[
|
||||||
|
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||||
|
('account_id', models.CharField(max_length=255)),
|
||||||
|
('recipient', models.CharField(blank=True, max_length=255, null=True)),
|
||||||
|
('sender', models.CharField(blank=True, max_length=255, null=True)),
|
||||||
|
('amount', models.FloatField()),
|
||||||
|
('currency', models.CharField(max_length=16)),
|
||||||
|
('note', models.CharField(blank=True, max_length=255, null=True)),
|
||||||
|
('reconciled', models.BooleanField(default=False)),
|
||||||
|
('aggregator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.aggregator')),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='Trade',
|
||||||
|
fields=[
|
||||||
|
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||||
|
('contact_id', models.CharField(max_length=255)),
|
||||||
|
('reference', models.CharField(max_length=255)),
|
||||||
|
('buyer', models.CharField(max_length=255)),
|
||||||
|
('seller', models.CharField(max_length=255)),
|
||||||
|
('amount_fiat', models.FloatField()),
|
||||||
|
('currency', models.CharField(max_length=16)),
|
||||||
|
('amount_crypto', models.FloatField()),
|
||||||
|
('coin', models.CharField(max_length=16)),
|
||||||
|
('provider', models.CharField(max_length=255)),
|
||||||
|
('type', models.CharField(max_length=255)),
|
||||||
|
('ad_id', models.CharField(max_length=255)),
|
||||||
|
('status', models.CharField(max_length=255)),
|
||||||
|
('reconciled', models.BooleanField(default=False)),
|
||||||
|
('released', models.BooleanField(default=False)),
|
||||||
|
('release_response', models.JSONField(default=dict)),
|
||||||
|
('linked', models.ManyToManyField(to='core.transaction')),
|
||||||
|
('platform', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.platform')),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
Loading…
Reference in New Issue