diff --git a/src/core/migrations/0002_publicationcache_author_name_publicationcache_cid_and_more.py b/src/core/migrations/0002_publicationcache_author_name_publicationcache_cid_and_more.py new file mode 100644 index 0000000..fa88a3b --- /dev/null +++ b/src/core/migrations/0002_publicationcache_author_name_publicationcache_cid_and_more.py @@ -0,0 +1,28 @@ +# Generated by Django 5.1.3 on 2024-11-14 16:53 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='publicationcache', + name='author_name', + field=models.CharField(default='', max_length=255, verbose_name='Author Name'), + ), + migrations.AddField( + model_name='publicationcache', + name='cid', + field=models.CharField(default='', max_length=255, verbose_name='CID'), + ), + migrations.AddField( + model_name='publicationcache', + name='uri', + field=models.CharField(default='', max_length=255, verbose_name='URI'), + ), + ] diff --git a/src/core/models.py b/src/core/models.py index 16d045e..3c2656e 100644 --- a/src/core/models.py +++ b/src/core/models.py @@ -32,7 +32,10 @@ class PublicationCache(models.Model): related_name="cached_publications") content = models.TextField("Content") author = models.CharField("Author", max_length=255) + author_name = models.CharField("Author Name", default="", max_length=255) published_at = models.DateTimeField("Published At") + uri = models.CharField("URI", default="", max_length=255) + cid = models.CharField("CID", default="", max_length=255) is_unread = models.BooleanField("Unread", default=True) def mark_as_read(self):