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.

34 lines
1.0 KiB

  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models, migrations
  4. class Migration(migrations.Migration):
  5. dependencies = [("api", "0010_channel")]
  6. operations = [
  7. migrations.CreateModel(
  8. name="Notification",
  9. fields=[
  10. (
  11. "id",
  12. models.AutoField(
  13. serialize=False,
  14. auto_created=True,
  15. verbose_name="ID",
  16. primary_key=True,
  17. ),
  18. ),
  19. ("check_status", models.CharField(max_length=6)),
  20. ("created", models.DateTimeField(auto_now_add=True)),
  21. ("status", models.IntegerField(default=0)),
  22. (
  23. "channel",
  24. models.ForeignKey(to="api.Channel", on_delete=models.CASCADE),
  25. ),
  26. ("owner", models.ForeignKey(to="api.Check", on_delete=models.CASCADE)),
  27. ],
  28. )
  29. ]