26 lines
848 B
Python
26 lines
848 B
Python
# Generated by Django 5.2.19 on 2026-11-16 12:52
|
|||
|
|
|
||
|
|
import django.utils.timezone
|
||
|
|
from django.db import migrations, models
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
('accounts', '0001_initial'),
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='ThrottleEvent',
|
||
|
|
fields=[
|
||
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
|
('scope', models.CharField(max_length=16)),
|
||
|
|
('key', models.CharField(max_length=150)),
|
||
|
|
('created_at', models.DateTimeField(default=django.utils.timezone.now)),
|
||
|
|
],
|
||
|
|
options={
|
||
|
|
'indexes': [models.Index(fields=['scope', 'key', 'created_at'], name='accounts_th_scope_248904_idx')],
|
||
|
|
},
|
||
|
|
),
|
||
|
|
]
|