Skip to content

Commit

Permalink
track abha numbers created by care (#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar authored Aug 8, 2023
1 parent ef0c2b7 commit 1b5633f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions care/abdm/api/viewsets/healthid.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def create_abha(self, abha_profile, token):
pincode=abha_profile["pincode"],
email=abha_profile["email"],
profile_photo=abha_profile["profilePhoto"],
new=abha_profile["new"],
txn_id=token["txn_id"],
access_token=token["access_token"],
refresh_token=token["refresh_token"],
Expand Down
17 changes: 17 additions & 0 deletions care/abdm/migrations/0008_abhanumber_new.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.2 on 2023-08-07 07:33

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("abdm", "0001_initial_squashed_0007_alter_abhanumber_id"),
]

operations = [
migrations.AddField(
model_name="abhanumber",
name="new",
field=models.BooleanField(default=False),
),
]
2 changes: 2 additions & 0 deletions care/abdm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class AbhaNumber(BaseModel):
email = models.EmailField(null=True, blank=True)
profile_photo = models.TextField(null=True, blank=True)

new = models.BooleanField(default=False)

txn_id = models.TextField(null=True, blank=True)
access_token = models.TextField(null=True, blank=True)
refresh_token = models.TextField(null=True, blank=True)
Expand Down

0 comments on commit 1b5633f

Please sign in to comment.