-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce SMS content workflows
- Loading branch information
1 parent
08e7f7e
commit 8d0cdfc
Showing
34 changed files
with
2,335 additions
and
510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
|
||
import os | ||
import sys | ||
|
||
import django | ||
|
||
if os.getenv("READTHEDOCS", default=False) == "True": | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,76 @@ | ||
# Generated by Django 3.2.16 on 2023-01-20 07:32 | ||
|
||
from django.db import migrations, models | ||
import uuid | ||
|
||
import django.db.models.deletion | ||
import django.utils.timezone | ||
from django.db import migrations, models | ||
|
||
import mycarehub.common.models.base_models | ||
import mycarehub.utils.general_utils | ||
import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('common', '0002_initial'), | ||
("common", "0002_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Client', | ||
name="Client", | ||
fields=[ | ||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), | ||
('active', models.BooleanField(default=True)), | ||
('created', models.DateTimeField(default=django.utils.timezone.now)), | ||
('created_by', models.UUIDField(blank=True, null=True)), | ||
('updated', models.DateTimeField(default=django.utils.timezone.now)), | ||
('updated_by', models.UUIDField(blank=True, null=True)), | ||
('deleted_at', models.DateTimeField(blank=True, null=True)), | ||
('name', models.CharField(blank=True, max_length=255, verbose_name='Name of Client')), | ||
('gender', models.CharField(blank=True, choices=[('MALE', 'Male'), ('FEMALE', 'Female'), ('OTHER', 'Other')], max_length=16, null=True)), | ||
('date_of_birth', models.DateField(blank=True, null=True)), | ||
('organisation', models.ForeignKey(default=mycarehub.utils.general_utils.default_organisation, on_delete=django.db.models.deletion.PROTECT, related_name='clients_client_related', to='common.organisation')), | ||
('program', models.ForeignKey(default=mycarehub.utils.general_utils.default_program, on_delete=django.db.models.deletion.PROTECT, to='common.program')), | ||
( | ||
"id", | ||
models.UUIDField( | ||
default=uuid.uuid4, editable=False, primary_key=True, serialize=False | ||
), | ||
), | ||
("active", models.BooleanField(default=True)), | ||
("created", models.DateTimeField(default=django.utils.timezone.now)), | ||
("created_by", models.UUIDField(blank=True, null=True)), | ||
("updated", models.DateTimeField(default=django.utils.timezone.now)), | ||
("updated_by", models.UUIDField(blank=True, null=True)), | ||
("deleted_at", models.DateTimeField(blank=True, null=True)), | ||
( | ||
"name", | ||
models.CharField(blank=True, max_length=255, verbose_name="Name of Client"), | ||
), | ||
( | ||
"gender", | ||
models.CharField( | ||
blank=True, | ||
choices=[("MALE", "Male"), ("FEMALE", "Female"), ("OTHER", "Other")], | ||
max_length=16, | ||
null=True, | ||
), | ||
), | ||
("date_of_birth", models.DateField(blank=True, null=True)), | ||
( | ||
"organisation", | ||
models.ForeignKey( | ||
default=mycarehub.utils.general_utils.default_organisation, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="clients_client_related", | ||
to="common.organisation", | ||
), | ||
), | ||
( | ||
"program", | ||
models.ForeignKey( | ||
default=mycarehub.utils.general_utils.default_program, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
to="common.program", | ||
), | ||
), | ||
], | ||
options={ | ||
'ordering': ('-updated', '-created'), | ||
'abstract': False, | ||
"ordering": ("-updated", "-created"), | ||
"abstract": False, | ||
}, | ||
managers=[ | ||
('objects', mycarehub.common.models.base_models.AbstractBaseManager()), | ||
("objects", mycarehub.common.models.base_models.AbstractBaseManager()), | ||
], | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
# Generated by Django 3.2.16 on 2023-01-20 12:01 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
import mycarehub.utils.general_utils | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('common', '0002_initial'), | ||
('clients', '0001_initial'), | ||
("common", "0002_initial"), | ||
("clients", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='client', | ||
name='program', | ||
field=models.ForeignKey(default=mycarehub.utils.general_utils.default_program, on_delete=django.db.models.deletion.PROTECT, related_name='clients', to='common.program'), | ||
model_name="client", | ||
name="program", | ||
field=models.ForeignKey( | ||
default=mycarehub.utils.general_utils.default_program, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="clients", | ||
to="common.program", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
# Generated by Django 3.2.17 on 2023-02-14 11:34 | ||
|
||
from django.db import migrations, models | ||
import django.utils.timezone | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('clients', '0002_alter_client_program'), | ||
("clients", "0002_alter_client_program"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='client', | ||
name='enrollment_date', | ||
model_name="client", | ||
name="enrollment_date", | ||
field=models.DateTimeField(default=django.utils.timezone.now), | ||
), | ||
] |
3 changes: 2 additions & 1 deletion
3
mycarehub/clients/migrations/0004_alter_client_organisation.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.