mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
34 lines
1.2 KiB
Python
34 lines
1.2 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
# Generated by Django 1.11.4 on 2017-09-21 20:31
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.conf import settings
|
||
|
import django.contrib.postgres.fields.jsonb
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||
|
('extras', '0007_unicode_literals'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='ReportResult',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('created', models.DateTimeField(auto_created=True)),
|
||
|
('report', models.CharField(max_length=255, unique=True)),
|
||
|
('data', django.contrib.postgres.fields.jsonb.JSONField()),
|
||
|
('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
|
||
|
],
|
||
|
options={
|
||
|
'ordering': ['report'],
|
||
|
'permissions': (('run_report', 'Run a report and save the results'),),
|
||
|
},
|
||
|
),
|
||
|
]
|