Implement profit sharing system and write tests
This commit is contained in:
25
core/migrations/0032_operatorwallets.py
Normal file
25
core/migrations/0032_operatorwallets.py
Normal file
@@ -0,0 +1,25 @@
|
||||
# Generated by Django 4.1.7 on 2023-03-20 09:35
|
||||
|
||||
import uuid
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0031_remove_ad_aggregators_remove_ad_platforms_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='OperatorWallets',
|
||||
fields=[
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||
('payees', models.ManyToManyField(blank=True, to='core.wallet')),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
]
|
||||
18
core/migrations/0033_platform_throughput.py
Normal file
18
core/migrations/0033_platform_throughput.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.1.7 on 2023-03-20 09:59
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0032_operatorwallets'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='platform',
|
||||
name='throughput',
|
||||
field=models.FloatField(default=0),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user