No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

0001_initial.py 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.10.5 on 2017-03-14 21:04
  3. from __future__ import unicode_literals
  4. from django.db import migrations, models
  5. import django.db.models.deletion
  6. class Migration(migrations.Migration):
  7. initial = True
  8. dependencies = [
  9. ('whoisdb', '0013_auto_20170303_1206'),
  10. ]
  11. operations = [
  12. migrations.CreateModel(
  13. name='Domain',
  14. fields=[
  15. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  16. ('created', models.DateTimeField(auto_now_add=True)),
  17. ('last_modified', models.DateTimeField(auto_now_add=True)),
  18. ('name', models.CharField(db_index=True, max_length=67, unique=True)),
  19. ('admin_c', models.ManyToManyField(to='whoisdb.Contact')),
  20. ('mnt_by', models.ManyToManyField(to='whoisdb.Maintainer')),
  21. ],
  22. options={
  23. 'abstract': False,
  24. },
  25. ),
  26. migrations.CreateModel(
  27. name='Nameserver',
  28. fields=[
  29. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  30. ('created', models.DateTimeField(auto_now_add=True)),
  31. ('last_modified', models.DateTimeField(auto_now_add=True)),
  32. ('name', models.CharField(max_length=256, unique=True)),
  33. ('glueIPv4', models.GenericIPAddressField(blank=True, null=True, protocol='IPv4')),
  34. ('glueIPv6', models.GenericIPAddressField(blank=True, null=True, protocol='IPv6')),
  35. ('admin_c', models.ManyToManyField(to='whoisdb.Contact')),
  36. ('mnt_by', models.ManyToManyField(to='whoisdb.Maintainer')),
  37. ],
  38. options={
  39. 'abstract': False,
  40. },
  41. ),
  42. migrations.CreateModel(
  43. name='ReverseZone',
  44. fields=[
  45. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  46. ('address', models.GenericIPAddressField(db_index=True)),
  47. ('netmask', models.PositiveIntegerField()),
  48. ('nameservers', models.ManyToManyField(to='domains.Nameserver')),
  49. ('parentNet', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='whoisdb.InetNum')),
  50. ],
  51. ),
  52. migrations.AddField(
  53. model_name='domain',
  54. name='nameservers',
  55. field=models.ManyToManyField(blank=True, to='domains.Nameserver'),
  56. ),
  57. ]