Skip to content

Commit

Permalink
feat: introduce SMS content workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
SharleneNdinda committed Aug 31, 2023
1 parent 08e7f7e commit 8d0cdfc
Show file tree
Hide file tree
Showing 34 changed files with 2,335 additions and 510 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import os
import sys

import django

if os.getenv("READTHEDOCS", default=False) == "True":
Expand Down
72 changes: 52 additions & 20 deletions mycarehub/clients/migrations/0001_initial.py
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()),
],
),
]
19 changes: 12 additions & 7 deletions mycarehub/clients/migrations/0002_alter_client_program.py
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",
),
),
]
9 changes: 4 additions & 5 deletions mycarehub/clients/migrations/0003_client_enrollment_date.py
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),
),
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Generated by Django 4.1.9 on 2023-05-04 13:46

from django.db import migrations, models
import django.db.models.deletion
from django.db import migrations, models

import mycarehub.utils.general_utils


Expand Down
Loading

0 comments on commit 8d0cdfc

Please sign in to comment.