1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- # Generated by Django 3.2.5 on 2021-08-07 09:49
- from django.conf import settings
- from django.db import migrations, models
- import django.db.models.deletion
- class Migration(migrations.Migration):
- initial = True
- dependencies = [
- migrations.swappable_dependency(settings.AUTH_USER_MODEL),
- ]
- operations = [
- migrations.CreateModel(
- name='DateMission',
- fields=[
- ('date_mission_id', models.AutoField(primary_key=True, serialize=False)),
- ('date', models.DateField()),
- ('is_date_finished', models.BooleanField(default=False)),
- ],
- ),
- migrations.CreateModel(
- name='TimeMission',
- fields=[
- ('time_mission_id', models.AutoField(primary_key=True, serialize=False)),
- ('time', models.DateTimeField()),
- ('is_time_finished', models.BooleanField(default=False)),
- ('date_mission', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='TimeMission', to='CrawKeywords.datemission')),
- ],
- ),
- migrations.CreateModel(
- name='PageMission',
- fields=[
- ('page_mission_id', models.AutoField(primary_key=True, serialize=False)),
- ('page', models.BigIntegerField()),
- ('finisher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='PageMission', to=settings.AUTH_USER_MODEL)),
- ('time_mission', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='PageMission', to='CrawKeywords.timemission')),
- ],
- ),
- migrations.CreateModel(
- name='KeywordMission',
- fields=[
- ('keyword_mission_id', models.AutoField(primary_key=True, serialize=False)),
- ('keyword', models.CharField(max_length=256)),
- ('publisher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='publisher', to=settings.AUTH_USER_MODEL)),
- ],
- ),
- migrations.AddField(
- model_name='datemission',
- name='keyword_mission',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='DateMission', to='CrawKeywords.keywordmission'),
- ),
- migrations.CreateModel(
- name='ArticleMission',
- fields=[
- ('article_mission_id', models.AutoField(primary_key=True, serialize=False)),
- ('article_id', models.CharField(max_length=100)),
- ('publish_time', models.DateTimeField()),
- ('content', models.TextField()),
- ('like_count', models.IntegerField()),
- ('comment_count', models.IntegerField()),
- ('page_mission', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ArticleMission', to='CrawKeywords.pagemission')),
- ],
- ),
- ]
|