-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf25e89
commit 4021fec
Showing
4 changed files
with
430 additions
and
1 deletion.
There are no files selected for viewing
242 changes: 242 additions & 0 deletions
242
src/openklant/components/klantinteracties/migrations/0005_actor.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,242 @@ | ||
# Generated by Django 3.2.18 on 2023-10-12 14:45 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("klantinteracties", "0004_digitaaladres"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="Actor", | ||
fields=[ | ||
( | ||
"id", | ||
models.UUIDField( | ||
default=uuid.uuid4, | ||
help_text="Unieke (technische) identificatiecode van de actor.", | ||
primary_key=True, | ||
serialize=False, | ||
unique=True, | ||
), | ||
), | ||
( | ||
"naam", | ||
models.CharField( | ||
help_text="Naam van de actor.", | ||
max_length=200, | ||
verbose_name="Naam", | ||
), | ||
), | ||
( | ||
"soort_actor", | ||
models.CharField( | ||
choices=[ | ||
("medewerker", "Medewerker"), | ||
("geautomatiseerde_actor", "Geautomatiseerde actor"), | ||
("organisatorische_eenheid", "Organisatorische eenheid"), | ||
], | ||
help_text="Geeft aan van welke specifieke soort actor sprake is.", | ||
max_length=24, | ||
verbose_name="Soort actor", | ||
), | ||
), | ||
( | ||
"indicatie_actief", | ||
models.BooleanField( | ||
help_text="Geeft aan of aan de actor nog betrokken mag worden bij nieuwe klantcontacten. Voor niet-actieve is dit niet toegestaan.", | ||
verbose_name="Indicatie actief", | ||
), | ||
), | ||
( | ||
"extern_register", | ||
models.URLField( | ||
blank=True, | ||
help_text="Externe (bron)register waarin gegevens over de actor zijn geregistreerd.", | ||
max_length=255, | ||
verbose_name="Extern register", | ||
), | ||
), | ||
( | ||
"extern_id", | ||
models.UUIDField( | ||
blank=True, | ||
help_text="Identificatiecode waarmee een actor in het externe (bron)register uniek geïdentificeerd kan worden.", | ||
unique=True, | ||
verbose_name="Extern ID", | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "Actor", | ||
"verbose_name_plural": "Actoren", | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name="OrganisatorischeEenheid", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
( | ||
"omschrijving", | ||
models.CharField( | ||
blank=True, | ||
help_text="Omschrijving van de geautomatiseerde actor.", | ||
max_length=200, | ||
verbose_name="Omschrijving", | ||
), | ||
), | ||
( | ||
"email", | ||
models.EmailField( | ||
blank=True, | ||
help_text="Elektronisch postadres waaronder de MEDEWERKER in de regel bereikbaar is.", | ||
max_length=254, | ||
verbose_name="email address", | ||
), | ||
), | ||
( | ||
"faxnummer", | ||
models.CharField( | ||
help_text="Faxnummer waaronder de organisatorische eenheid in de regel bereikbaar is.", | ||
max_length=20, | ||
verbose_name="Faxnummer", | ||
), | ||
), | ||
( | ||
"telefoonnummer", | ||
models.CharField( | ||
help_text="Telefoonnummer waaronder de MEDEWERKER in de regel bereikbaar is.", | ||
max_length=20, | ||
verbose_name="Telefoonnummer", | ||
), | ||
), | ||
( | ||
"actor", | ||
models.OneToOneField( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="organisatorische_eenheid", | ||
to="klantinteracties.actor", | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "organisatorische eenheid", | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name="Medewerker", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
( | ||
"functie", | ||
models.CharField( | ||
help_text="Functie van de geautomatiseerde actor of beschrijving van de werkzaamheden die deze uitvoert.", | ||
max_length=40, | ||
verbose_name="Functie", | ||
), | ||
), | ||
( | ||
"email", | ||
models.EmailField( | ||
blank=True, | ||
help_text="Elektronisch postadres waaronder de MEDEWERKER in de regel bereikbaar is.", | ||
max_length=254, | ||
verbose_name="email address", | ||
), | ||
), | ||
( | ||
"telefoonnummer", | ||
models.CharField( | ||
help_text="Telefoonnummer waaronder de MEDEWERKER in de regel bereikbaar is.", | ||
max_length=20, | ||
verbose_name="Telefoonnummer", | ||
), | ||
), | ||
( | ||
"actor", | ||
models.OneToOneField( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="medewerker", | ||
to="klantinteracties.actor", | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "Medewerker", | ||
"verbose_name_plural": "Mederwerkers", | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name="GeautomatiseerdeActor", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
( | ||
"functie", | ||
models.CharField( | ||
help_text="Functie van de geautomatiseerde actor of beschrijving van de werkzaamheden die deze uitvoert.", | ||
max_length=40, | ||
verbose_name="Functie", | ||
), | ||
), | ||
( | ||
"omschrijving", | ||
models.CharField( | ||
blank=True, | ||
help_text="Omschrijving van de geautomatiseerde actor.", | ||
max_length=200, | ||
verbose_name="Omschrijving", | ||
), | ||
), | ||
( | ||
"actor", | ||
models.OneToOneField( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="geautomatiseerde_actor", | ||
to="klantinteracties.actor", | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "Geautomatiseerde actor", | ||
"verbose_name_plural": "Geautomatiseerde actoren", | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name="klantcontact", | ||
name="actoren", | ||
field=models.ManyToManyField( | ||
help_text="De actoren die tijdens het klantcontant contact had met klanten of hun vertegenwoordigers.", | ||
related_name="klantcontacten", | ||
to="klantinteracties.Actor", | ||
verbose_name="Actoren", | ||
), | ||
), | ||
] |
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,3 +1,4 @@ | ||
from .actoren import * # noqa | ||
from .digitaal_adres import * # noqa | ||
from .klantcontacten import * # noqa | ||
from .partijen import * # noqa |
Oops, something went wrong.