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