aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/apps/api/migrations/0030_reminder.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-05 12:11:31 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-05 12:11:31 +0100
commitebda74029355ce3236ca9266acde40fd40329df7 (patch)
treeaba491f902c874328c88b8e7ccb9772b5414c17f /pysite/apps/api/migrations/0030_reminder.py
parentSet `harakiri = 30`. (diff)
[#176] Redo project layout
Diffstat (limited to 'pysite/apps/api/migrations/0030_reminder.py')
-rw-r--r--pysite/apps/api/migrations/0030_reminder.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/pysite/apps/api/migrations/0030_reminder.py b/pysite/apps/api/migrations/0030_reminder.py
new file mode 100644
index 00000000..8448ac8c
--- /dev/null
+++ b/pysite/apps/api/migrations/0030_reminder.py
@@ -0,0 +1,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),
+ ),
+ ]