mirror of https://github.com/zulip/zulip.git
33 lines
1.4 KiB
Python
33 lines
1.4 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
# Generated by Django 1.11.6 on 2018-01-10 01:11
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('zerver', '0133_rename_botuserconfigdata_botconfigdata'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='ScheduledMessage',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('subject', models.CharField(max_length=60)),
|
||
|
('content', models.TextField()),
|
||
|
('scheduled_timestamp', models.DateTimeField(db_index=True)),
|
||
|
('delivered', models.BooleanField(default=False)),
|
||
|
('realm', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='zerver.Realm')),
|
||
|
('recipient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='zerver.Recipient')),
|
||
|
('sender', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||
|
('sending_client', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='zerver.Client')),
|
||
|
('stream', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='zerver.Stream')),
|
||
|
],
|
||
|
),
|
||
|
]
|