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.

30 lines
1.1 KiB

  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models, migrations
  4. from django.conf import settings
  5. import uuid
  6. class Migration(migrations.Migration):
  7. dependencies = [
  8. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  9. ('api', '0009_auto_20150801_1250'),
  10. ]
  11. operations = [
  12. migrations.CreateModel(
  13. name='Channel',
  14. fields=[
  15. ('id', models.AutoField(primary_key=True, auto_created=True, verbose_name='ID', serialize=False)),
  16. ('code', models.UUIDField(editable=False, default=uuid.uuid4)),
  17. ('created', models.DateTimeField(auto_now_add=True)),
  18. ('kind', models.CharField(choices=[('email', 'Email'), ('webhook', 'Webhook'), ('pd', 'PagerDuty')], max_length=20)),
  19. ('value', models.CharField(max_length=200, blank=True)),
  20. ('email_verified', models.BooleanField(default=False)),
  21. ('checks', models.ManyToManyField(to='api.Check')),
  22. ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
  23. ],
  24. ),
  25. ]