dnmgmt/rrequests/migrations/0001_initial.py

40 lines
1.6 KiB
Python
Raw Normal View History

2017-03-14 20:18:57 +01:00
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-03 12:21
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('whoisdb', '0013_auto_20170303_1206'),
]
operations = [
migrations.CreateModel(
name='Request',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200)),
('state', models.CharField(choices=[('Open', 'OPEN'), ('Resolved', 'RESOLVED'), ('Rejected', 'REJECTED')], max_length=16)),
('requestResources', models.TextField()),
('grantedResources', models.TextField()),
('created', models.DateTimeField(auto_now_add=True)),
('lastAction', models.DateTimeField(auto_now_add=True)),
('requestedFrom', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='requestfrom_set', to='whoisdb.Maintainer')),
('requestedTo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='whoisdb.Maintainer')),
],
),
migrations.CreateModel(
name='RequestMessage',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('message', models.TextField()),
],
),
]