diff --git a/applications/backend/django_server/news/migrations/0007_alter_news_img_src_url_alter_news_sentiment_and_more.py b/applications/backend/django_server/news/migrations/0007_alter_news_img_src_url_alter_news_sentiment_and_more.py new file mode 100644 index 0000000..551899b --- /dev/null +++ b/applications/backend/django_server/news/migrations/0007_alter_news_img_src_url_alter_news_sentiment_and_more.py @@ -0,0 +1,32 @@ +# Generated by Django 4.2.7 on 2023-12-12 10:09 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("news", "0006_analysis_neutral_news"), + ] + + operations = [ + migrations.AlterField( + model_name="news", + name="img_src_url", + field=models.URLField(max_length=2048), + ), + migrations.AlterField( + model_name="news", + name="sentiment", + field=models.IntegerField(), + ), + migrations.AlterField( + model_name="news", + name="src", + field=models.CharField(max_length=2048), + ), + migrations.AlterField( + model_name="news", + name="src_url", + field=models.URLField(max_length=2048), + ), + ] diff --git a/applications/backend/django_server/news/models.py b/applications/backend/django_server/news/models.py index bee848e..aa847db 100644 --- a/applications/backend/django_server/news/models.py +++ b/applications/backend/django_server/news/models.py @@ -5,16 +5,16 @@ class News(models.Model): category = models.CharField(max_length=100) symbol = models.CharField(max_length=100) - src = models.CharField(max_length=256) - src_url = models.URLField(max_length=500) - img_src_url = models.URLField(max_length=500) + src = models.CharField(max_length=2048) + src_url = models.URLField(max_length=2048) + img_src_url = models.URLField(max_length=2048) headline = models.TextField() summary = models.TextField() publish_time = models.DateTimeField() - sentiment = models.CharField(max_length=100) + sentiment = models.IntegerField() class Meta: unique_together = ("symbol", "headline")