Add speed profiles to limit the bandwidth of each peer

This commit is contained in:
Eduardo Silva
2026-11-24 17:05:13 -03:00
parent 026c82445b
commit 3f2da7e545
35 changed files with 1538 additions and 25 deletions
+33
View File
@@ -0,0 +1,33 @@
# Generated by Django 5.2.19 on 2026-11-24 15:57
import uuid
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='SpeedProfile',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=64, unique=True)),
('download_limit', models.DecimalField(blank=True, decimal_places=3, max_digits=9, null=True)),
('upload_limit', models.DecimalField(blank=True, decimal_places=3, max_digits=9, null=True)),
('download_burst', models.DecimalField(blank=True, decimal_places=3, max_digits=9, null=True)),
('upload_burst', models.DecimalField(blank=True, decimal_places=3, max_digits=9, null=True)),
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
('uuid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
],
options={
'ordering': ['name'],
},
),
]