Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

Commit

Permalink
docs: update organization -> service
Browse files Browse the repository at this point in the history
  • Loading branch information
Spinelli Danilo committed Jan 12, 2018
1 parent 4eb6b19 commit 93ac59c
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 30 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ The data model is composed of the following core entities:
|[Profile](https://github.com/teamdigitale/digital-citizenship-functions/blob/master/lib/models/profile.ts)|Represents the profile of a citizen (i.e. his preferences)|
|[Message](https://github.com/teamdigitale/digital-citizenship-functions/blob/master/lib/models/message.ts)|Represents a message sent to a citizen by a service owned by an Organization|
|[Notification](https://github.com/teamdigitale/digital-citizenship-functions/blob/master/lib/models/notification.ts)|Represents a notification to the citizen, triggered by a Message|
|[Organization](https://github.com/teamdigitale/digital-citizenship-functions/blob/master/lib/models/organization.ts)|Represents the Organization that sends the messages or access citizen's profiles|
|[Service](https://github.com/teamdigitale/digital-citizenship-functions/blob/master/lib/models/service.ts)|Represents the Service,owned by an Organization, that sends the messages or access citizen's profiles|

The data model defines also several non-core entities used to describe events
happening inside the application:
Expand Down
41 changes: 30 additions & 11 deletions docs/entities.puml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,39 @@ abstract class DocumentDbModel
abstract class DocumentDbVersionedModel

class Message {
+UUID id
+UUID organizationId
+FiscalCode fiscalCode
+id uuid
+senderServiceId uuid
+senderUserId uuid
+fiscalCode string
+subject string
+content string
}

class Notification {
+UUID id
+UUID messageId
+id uuid
+messageId uuid
+fiscalCode string
}

class Organization {
+UUID id
class EmailNotification {
+id uuid
+notificationId uuid
+fiscalCode string
+fromAddress string
+toAddress string
+status string
}

class Service {
+id uuid
+organizationName string
+organizationDepartment string
+serviceName string
}

class Profile {
+FiscalCode fiscalCode
+fiscalCode string
+Email string
}

DocumentDbModel <|-- DocumentDbVersionedModel
Expand All @@ -31,11 +48,13 @@ DocumentDbModel <|-- Message

DocumentDbModel <|-- Notification

DocumentDbVersionedModel <|-- Organization
EmailNotification <--o Notification

DocumentDbVersionedModel <|-- Service

DocumentDbVersionedModel <|-- Profile

Organization "1" o-left- "many" Message
Service "1" o-left- "many" Message
Message "1" o-left- "?" Notification

@enduml
@enduml
Loading

0 comments on commit 93ac59c

Please sign in to comment.