0001_initial.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Generated by Django 4.1.3 on 2023-03-28 09:31
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. initial = True
  6. dependencies = [
  7. ("tickets", "0001_initial"),
  8. ]
  9. operations = [
  10. migrations.CreateModel(
  11. name="Documents",
  12. fields=[
  13. (
  14. "id",
  15. models.BigAutoField(
  16. auto_created=True,
  17. primary_key=True,
  18. serialize=False,
  19. verbose_name="ID",
  20. ),
  21. ),
  22. ("check_date", models.DateTimeField()),
  23. ("check_level", models.IntegerField()),
  24. ("expire_date", models.DateTimeField()),
  25. ("id_metaservice", models.BigIntegerField()),
  26. ("requirements", models.CharField(max_length=150)),
  27. ("status", models.CharField(max_length=150)),
  28. (
  29. "ticket_status",
  30. models.ForeignKey(
  31. on_delete=django.db.models.deletion.DO_NOTHING,
  32. to="tickets.task",
  33. ),
  34. ),
  35. ],
  36. options={
  37. "db_table": "documents",
  38. },
  39. ),
  40. ]