Skip to content

Commit

Permalink
added new property
Browse files Browse the repository at this point in the history
  • Loading branch information
emoltz committed May 29, 2024
1 parent 9a1372b commit 5a25239
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
18 changes: 18 additions & 0 deletions api/migrations/0007_meal_description.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.0.3 on 2024-05-25 16:05

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api', '0006_remove_meal_assumed_total_max_calories_and_more'),
]

operations = [
migrations.AddField(
model_name='meal',
name='description',
field=models.TextField(blank=True, null=True),
),
]
18 changes: 18 additions & 0 deletions api/migrations/0008_meal_most_recent_follow_up.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.0.3 on 2024-05-29 18:16

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api', '0007_meal_description'),
]

operations = [
migrations.AddField(
model_name='meal',
name='most_recent_follow_up',
field=models.CharField(blank=True, max_length=255, null=True),
),
]
2 changes: 2 additions & 0 deletions api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ class Meal(models.Model):
choices=MealTypes.choices,
default=MealTypes.NA
)
description = models.TextField(blank=True, null=True)
most_recent_follow_up = models.CharField(max_length=255, blank=True, null=True)
date = models.CharField(max_length=10, blank=False, null=False) # YYYY-MM-DD "2024-05-12"

@property
Expand Down

0 comments on commit 5a25239

Please sign in to comment.