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.

36 lines
1.0 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models, migrations
  4. import uuid
  5. from django.conf import settings
  6. class Migration(migrations.Migration):
  7. dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
  8. operations = [
  9. migrations.CreateModel(
  10. name="Check",
  11. fields=[
  12. (
  13. "id",
  14. models.AutoField(
  15. auto_created=True,
  16. primary_key=True,
  17. verbose_name="ID",
  18. serialize=False,
  19. ),
  20. ),
  21. ("code", models.UUIDField(default=uuid.uuid4, editable=False)),
  22. ("last_ping", models.DateTimeField(null=True, blank=True)),
  23. (
  24. "user",
  25. models.ForeignKey(
  26. to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE
  27. ),
  28. ),
  29. ],
  30. )
  31. ]