|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- # Generated by Django 2.1.2 on 2018-10-30 10:43
-
- from django.conf import settings
- from django.db import migrations, models
- import django.db.models.deletion
- import django.utils.timezone
- import taggit.managers
-
-
- class Migration(migrations.Migration):
-
- initial = True
-
- dependencies = [
- migrations.swappable_dependency(settings.AUTH_USER_MODEL),
- ('taggit', '0001_initial'),
- ]
-
- operations = [
- migrations.CreateModel(
- name='CustomUser',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('tags', taggit.managers.TaggableManager(help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
- ('user', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
- ],
- ),
- migrations.CreateModel(
- name='Post',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('title', models.CharField(max_length=200)),
- ('text', models.TextField()),
- ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
- ('published_date', models.DateTimeField(blank=True, null=True)),
- ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
- ('tags', taggit.managers.TaggableManager(help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
- ],
- ),
- migrations.CreateModel(
- name='Report',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('report_text', models.TextField()),
- ],
- ),
- migrations.CreateModel(
- name='ReportRecipient',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('email', models.EmailField(max_length=254)),
- ],
- ),
- migrations.CreateModel(
- name='ScheduledReport',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('subject', models.CharField(max_length=200)),
- ('last_run_at', models.DateTimeField(blank=True, null=True)),
- ('next_run_at', models.DateTimeField(blank=True, null=True)),
- ('cron_expression', models.CharField(max_length=200)),
- ],
- ),
- migrations.CreateModel(
- name='ScheduledReportGroup',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('report', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='report', to='application.Report')),
- ('scheduled_report', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='relatedscheduledreport', to='application.ScheduledReport')),
- ],
- ),
- migrations.AddField(
- model_name='reportrecipient',
- name='scheduled_report',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reportrecep', to='application.ScheduledReport'),
- ),
- ]
|