32 lines
1.0 KiB
Python
32 lines
1.0 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11.23 on 2019-11-12 13:58
|
|
from __future__ import unicode_literals
|
|
|
|
import django.contrib.postgres.fields.jsonb
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Entry',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('host', models.CharField(max_length=128)),
|
|
('service', models.CharField(max_length=32)),
|
|
('priority', models.IntegerField(choices=[(0, '0'), (1, '1'), (2, '2'), (3, '3'), (4, '4'), (5, '5'), (6, '6'), (7, '7')], default=6)),
|
|
('timestamp', models.DateTimeField()),
|
|
('data', django.contrib.postgres.fields.jsonb.JSONField(blank=True)),
|
|
],
|
|
options={
|
|
'ordering': ['-timestamp', '-id'],
|
|
},
|
|
),
|
|
]
|