Development of an internal social media platform with personalised dashboards for students
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 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # -*- coding: utf-8 -*-
  2. from __future__ import absolute_import, unicode_literals
  3. from django.db import migrations, models
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ]
  7. operations = [
  8. migrations.CreateModel(
  9. name='Message',
  10. fields=[
  11. ('id', models.AutoField(
  12. verbose_name='ID', serialize=False,
  13. auto_created=True, primary_key=True)),
  14. ('visible', models.BooleanField(default=True, db_index=True)),
  15. ('sent_at', models.DateTimeField(
  16. db_index=True, auto_now_add=True, null=True)),
  17. ('payload', models.TextField(verbose_name='payload')),
  18. ],
  19. options={
  20. 'db_table': 'djkombu_message',
  21. 'verbose_name': 'message',
  22. 'verbose_name_plural': 'messages',
  23. },
  24. ),
  25. migrations.CreateModel(
  26. name='Queue',
  27. fields=[
  28. ('id', models.AutoField(
  29. verbose_name='ID', serialize=False,
  30. auto_created=True, primary_key=True)),
  31. ('name', models.CharField(
  32. unique=True, max_length=200, verbose_name='name')),
  33. ],
  34. options={
  35. 'db_table': 'djkombu_queue',
  36. 'verbose_name': 'queue',
  37. 'verbose_name_plural': 'queues',
  38. },
  39. ),
  40. migrations.AddField(
  41. model_name='message',
  42. name='queue',
  43. field=models.ForeignKey(on_delete=models.PROTECT, related_name='messages', to='kombu_transport_django.Queue'),
  44. ),
  45. ]