mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Adding the premium fields to master just so I can continue using the old non-premium db.
This commit is contained in:
parent
ee89f25bb4
commit
6ea1887cc9
3 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@ from django.db.models.signals import post_save
|
|||
|
||||
class Profile(models.Model):
|
||||
user = models.OneToOneField(User, unique=True, related_name="profile")
|
||||
is_premium = models.BooleanField(default=False)
|
||||
preferences = models.TextField(default="{}")
|
||||
view_settings = models.TextField(default="{}")
|
||||
collapsed_folders = models.TextField(default="[]")
|
||||
|
|
|
@ -23,6 +23,7 @@ class UserSubscription(models.Model):
|
|||
"""
|
||||
user = models.ForeignKey(User, related_name='subscriptions')
|
||||
feed = models.ForeignKey(Feed, related_name='subscribers')
|
||||
active = models.BooleanField(default=False)
|
||||
last_read_date = models.DateTimeField(default=UNREAD_CUTOFF)
|
||||
mark_read_date = models.DateTimeField(default=UNREAD_CUTOFF)
|
||||
unread_count_neutral = models.IntegerField(default=0)
|
||||
|
|
|
@ -37,6 +37,7 @@ class Feed(models.Model):
|
|||
active = models.BooleanField(default=True)
|
||||
num_subscribers = models.IntegerField(default=-1)
|
||||
active_subscribers = models.IntegerField(default=-1)
|
||||
premium_subscribers = models.IntegerField(default=-1)
|
||||
last_update = models.DateTimeField(db_index=True)
|
||||
fetched_once = models.BooleanField(default=False)
|
||||
has_feed_exception = models.BooleanField(default=False, db_index=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue