mirror of
https://github.com/deunix-educ/Fail2banMqttActionBanishment.git
synced 2026-08-24 03:11:58 +02:00
35 lines
1.3 KiB
Python
35 lines
1.3 KiB
Python
# Generated by Django 6.0.7 on 2026-07-14 16:15
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='BanEvent',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('node', models.CharField(max_length=64)),
|
|
('action', models.CharField(max_length=32)),
|
|
('jail_name', models.CharField(max_length=64)),
|
|
('ip_address', models.GenericIPAddressField()),
|
|
('port', models.PositiveIntegerField(blank=True, null=True)),
|
|
('protocol', models.CharField(blank=True, max_length=16)),
|
|
('bantime', models.IntegerField(blank=True, null=True)),
|
|
('reason', models.CharField(blank=True, max_length=255)),
|
|
('event_time', models.DateTimeField(blank=True, null=True)),
|
|
('received_at', models.DateTimeField(auto_now_add=True)),
|
|
('raw_payload', models.JSONField(blank=True, default=dict)),
|
|
],
|
|
options={
|
|
'ordering': ['-received_at'],
|
|
},
|
|
),
|
|
]
|