aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/apps/api/migrations/0030_reminder.py
blob: 8448ac8c1871c7d8ac28e56de517a529fd6d673e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Generated by Django 2.1.5 on 2019-01-22 22:17

import pysite.apps.api.models
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('api', '0029_add_infraction_type_watch'),
    ]

    operations = [
        migrations.CreateModel(
            name='Reminder',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('active', models.BooleanField(default=True, help_text='Whether this reminder is still active. If not, it has been sent out to the user.')),
                ('channel_id', models.BigIntegerField(help_text='The channel ID that this message was sent in, taken from Discord.', validators=[django.core.validators.MinValueValidator(limit_value=0, message='Channel IDs cannot be negative.')])),
                ('content', models.CharField(help_text='The content that the user wants to be reminded of.', max_length=1500)),
                ('expiration', models.DateTimeField(help_text='When this reminder should be sent.')),
                ('author', models.ForeignKey(help_text='The creator of this reminder.', on_delete=django.db.models.deletion.CASCADE, to='api.User')),
            ],
            bases=(pysite.apps.api.models.ModelReprMixin, models.Model),
        ),
    ]