1 | |
---|
2 | .. |n0| replace:: n\ :sub:`0` |
---|
3 | .. |m0| replace:: m\ :sub:`0` |
---|
4 | |
---|
5 | .. _label-data-entities: |
---|
6 | |
---|
7 | Data Entities |
---|
8 | ============= |
---|
9 | |
---|
10 | These are the data entities the new system is supposed to model. Each |
---|
11 | of these entities should be addable, editable, and removable as |
---|
12 | covered in more detail in :ref:`label-use-cases`. |
---|
13 | |
---|
14 | For each entity we give a short description to tell what it means, |
---|
15 | what its purpose is and in what regards (and how) it should be handled |
---|
16 | by the system. Again the more detailed actions on these entities |
---|
17 | provided by the system are described in the :ref:`label-use-cases` |
---|
18 | section. |
---|
19 | |
---|
20 | The data entities are sorted alphabetically, not by importance or |
---|
21 | similar. Used description terms should link to other respective |
---|
22 | entities/terms where possible. |
---|
23 | |
---|
24 | Each data entitiy description provides a list of use cases and other |
---|
25 | data entities connected. Connections to other data entities contain a |
---|
26 | relationship telling how many instances of the described entity are |
---|
27 | connected to how many instances of the related entity [#]_. |
---|
28 | |
---|
29 | |
---|
30 | .. _label-contact-address: |
---|
31 | |
---|
32 | Contact Address |
---|
33 | --------------- |
---|
34 | |
---|
35 | A postal address. |
---|
36 | |
---|
37 | Connected to: :ref:`label-contact-data` (n:1) |
---|
38 | |
---|
39 | Used in the following use cases: |
---|
40 | |
---|
41 | |
---|
42 | .. _label-contact-data: |
---|
43 | |
---|
44 | Contact Data |
---|
45 | ------------ |
---|
46 | |
---|
47 | The data neccessary to contact some :ref:`label-customer`, staff |
---|
48 | person or similar entity. Contact data might contain several |
---|
49 | addresses, phone numbers, emails, etc. |
---|
50 | |
---|
51 | Connected to: :ref:`label-customer` (1:1), |
---|
52 | :ref:`label-contact-address` (1:|n0|), :ref:`label-contact-email` |
---|
53 | (1:|n0|), :ref:`label-contact-phone` (1:|n0|) |
---|
54 | |
---|
55 | Used in the following use cases: |
---|
56 | |
---|
57 | |
---|
58 | .. _label-contact-email: |
---|
59 | |
---|
60 | Contact Email |
---|
61 | ------------- |
---|
62 | |
---|
63 | An email address with optional additional clear name. For email |
---|
64 | addresses we store some timestamp that indicates when the respective |
---|
65 | email address was last checked successfully (thus marking it a 'valid' |
---|
66 | one). |
---|
67 | |
---|
68 | Connected to: :ref:`label-contact-data` (|n0|:1) |
---|
69 | |
---|
70 | Used in the following use cases: |
---|
71 | |
---|
72 | |
---|
73 | .. _label-contact-phone: |
---|
74 | |
---|
75 | Contact Phone |
---|
76 | ------------- |
---|
77 | |
---|
78 | A phone number. |
---|
79 | |
---|
80 | Connected to: :ref:`label-contact-data` (|n0|:1) |
---|
81 | |
---|
82 | Used in the following use cases: |
---|
83 | |
---|
84 | |
---|
85 | .. _label-contract: |
---|
86 | |
---|
87 | Contract |
---|
88 | -------- |
---|
89 | |
---|
90 | A contract is created whenever a :ref:`label-customer` orders some |
---|
91 | :ref:`label-service` from the system. It is always connected to a |
---|
92 | :ref:`label-customer` and a :ref:`label-service` . |
---|
93 | |
---|
94 | A contract is not necessarily written on paper and signed by |
---|
95 | people. Instead it is an abstraction used inside the system. |
---|
96 | |
---|
97 | It is always created from a :ref:`label-service` , which tells about |
---|
98 | the basic data, with additional parameters set that depend on the type |
---|
99 | of :ref:`label-service` ordered. |
---|
100 | |
---|
101 | Contracts can trigger :ref:`label-transaction`\ s. For instance if some |
---|
102 | :ref:`label-customer` orders a service. When the service charges |
---|
103 | become due, a respective :ref:`label-transaction` is triggered. |
---|
104 | |
---|
105 | Contracts can have multiple :ref:`label-contract-addon`. |
---|
106 | |
---|
107 | Connected to: :ref:`label-service` (|n0|:1), :ref:`label-customer` (|n0|:1), |
---|
108 | :ref:`label-contract-addon` (1:|n0|), :ref:`label-transaction` (|n0|, |m0|) |
---|
109 | |
---|
110 | Used in the following use cases: |
---|
111 | |
---|
112 | |
---|
113 | .. _label-contract-addon: |
---|
114 | |
---|
115 | Contract Addon |
---|
116 | -------------- |
---|
117 | |
---|
118 | Kind of 'sub contract' that always belongs to some already existing |
---|
119 | :ref:`label-contract` but comes with an own set of |
---|
120 | parameters. Contract addons are created by :ref:`label-contract`\ s. |
---|
121 | |
---|
122 | Connected to: :ref:`label-contract` (|n0|:1) |
---|
123 | |
---|
124 | |
---|
125 | .. _label-customer: |
---|
126 | |
---|
127 | Customer |
---|
128 | -------- |
---|
129 | |
---|
130 | Beneficiary of a contract |
---|
131 | |
---|
132 | |
---|
133 | .. _label-login-credentials: |
---|
134 | |
---|
135 | Login Credentials |
---|
136 | ----------------- |
---|
137 | |
---|
138 | |
---|
139 | .. _label-meter: |
---|
140 | |
---|
141 | Meter |
---|
142 | ----- |
---|
143 | |
---|
144 | |
---|
145 | .. _label-meter-status: |
---|
146 | |
---|
147 | Meter Status |
---|
148 | ------------ |
---|
149 | |
---|
150 | |
---|
151 | .. _label-meter-value: |
---|
152 | |
---|
153 | Meter Value |
---|
154 | ----------- |
---|
155 | |
---|
156 | |
---|
157 | .. _label-meter-reader: |
---|
158 | |
---|
159 | Meter Reader |
---|
160 | ------------ |
---|
161 | |
---|
162 | |
---|
163 | .. _label-point-of-consumption: |
---|
164 | |
---|
165 | Point of Consumption |
---|
166 | -------------------- |
---|
167 | |
---|
168 | |
---|
169 | .. _label-report: |
---|
170 | |
---|
171 | Report |
---|
172 | ------ |
---|
173 | |
---|
174 | |
---|
175 | .. _label-service: |
---|
176 | |
---|
177 | Service |
---|
178 | ------- |
---|
179 | |
---|
180 | The system will provide different services to |
---|
181 | :ref:`label-customer`\ s. These can have arbitrary forms, including |
---|
182 | one-time services (like installation of meters) and open-ended |
---|
183 | long-time services (like delivering power based on contract). Services |
---|
184 | are managable by staff like goods offered in a shop. |
---|
185 | |
---|
186 | Services define the conditions under which they can be ordered by |
---|
187 | :ref:`label-customer`\ s, including prices, runtimes, etc. |
---|
188 | |
---|
189 | Services also serve as factories for :ref:`label-contract`\ s. |
---|
190 | |
---|
191 | Connected to: :ref:`label-contract` (1:|n0|), |
---|
192 | |
---|
193 | Used in the following use cases: |
---|
194 | |
---|
195 | |
---|
196 | |
---|
197 | .. _label-timestamp: |
---|
198 | |
---|
199 | Timestamp |
---|
200 | --------- |
---|
201 | |
---|
202 | |
---|
203 | .. _label-transaction: |
---|
204 | |
---|
205 | Transaction |
---|
206 | ----------- |
---|
207 | |
---|
208 | A transaction is some business-relevant action taken. A transaction |
---|
209 | means basically, that something happened, that leads to increased or |
---|
210 | decreased customer accounts. Normally this is something like a |
---|
211 | payment, some service order or similar. |
---|
212 | |
---|
213 | Transactions do always belong to one certain customer account. They |
---|
214 | also contain some amount of money which is thereby transfered to or |
---|
215 | from a customer's account. They also always reference a service which |
---|
216 | is consumed, purchased, or (pre-)paid by the respective customer. |
---|
217 | |
---|
218 | Connected to: :ref:`label-customer` (1:|n0|), :ref:`label-service` |
---|
219 | (|n0|:1) |
---|
220 | |
---|
221 | Used in the following use cases: |
---|
222 | |
---|
223 | |
---|
224 | .. [#] Relation types: (1:1): One-to-one, (1:n): One-to-many, (n:1): |
---|
225 | many-to-one, (n:m): many-to-many. ``n`` and ``m`` mean some |
---|
226 | value ``1..n``. To indicate zero or more (``0..n``) relations, |
---|
227 | we use |n0| and |m0| respectively. |
---|