mirror of
https://github.com/deunix-educ/Fail2banMqttActionBanishment.git
synced 2026-08-24 03:11:58 +02:00
First commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# 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'],
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user