You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
818 B

  1. # Generated by Django 2.2 on 2019-04-25 12:46
  2. from django.db import migrations, models
  3. class Migration(migrations.Migration):
  4. dependencies = [("api", "0059_auto_20190314_1744")]
  5. operations = [
  6. migrations.CreateModel(
  7. name="TokenBucket",
  8. fields=[
  9. (
  10. "id",
  11. models.AutoField(
  12. auto_created=True,
  13. primary_key=True,
  14. serialize=False,
  15. verbose_name="ID",
  16. ),
  17. ),
  18. ("value", models.CharField(max_length=80, unique=True)),
  19. ("tokens", models.FloatField(default=1.0)),
  20. ("updated", models.DateTimeField(auto_now_add=True)),
  21. ],
  22. )
  23. ]