-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38f88c3
commit 55341f2
Showing
12 changed files
with
381 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,4 +85,5 @@ web3 | |
eth-account | ||
eth-tester | ||
PyJWT | ||
djangorestframework-simplejwt | ||
djangorestframework-simplejwt | ||
hcloud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Django 4.1.7 on 2024-01-16 19:03 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api2', '0005_healtchecktask'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='GLM', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('current_price', models.FloatField(null=True)), | ||
], | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
stats-backend/api2/migrations/0007_offer_monthly_price_usd.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.1.7 on 2024-01-16 19:10 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api2', '0006_glm'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='offer', | ||
name='monthly_price_usd', | ||
field=models.FloatField(blank=True, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 4.1.7 on 2024-01-16 21:04 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api2', '0007_offer_monthly_price_usd'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='EC2Instance', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=100, unique=True)), | ||
('vcpu', models.IntegerField(null=True)), | ||
('memory', models.FloatField(null=True)), | ||
('price_usd', models.DecimalField(decimal_places=2, max_digits=10, null=True)), | ||
], | ||
), | ||
] |
24 changes: 24 additions & 0 deletions
24
stats-backend/api2/migrations/0009_offer_is_overpriced_offer_overpriced_compared_to.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by Django 4.1.7 on 2024-01-16 21:23 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api2', '0008_ec2instance'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='offer', | ||
name='is_overpriced', | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name='offer', | ||
name='overpriced_compared_to', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='api2.ec2instance'), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
stats-backend/api2/migrations/0010_offer_suggest_env_per_hour_price.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.1.7 on 2024-01-16 21:38 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api2', '0009_offer_is_overpriced_offer_overpriced_compared_to'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='offer', | ||
name='suggest_env_per_hour_price', | ||
field=models.FloatField(null=True), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
stats-backend/api2/migrations/0011_offer_times_more_expensive.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.1.7 on 2024-01-16 22:33 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api2', '0010_offer_suggest_env_per_hour_price'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='offer', | ||
name='times_more_expensive', | ||
field=models.FloatField(null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.