[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 | .. _label-account: |
---|
| 30 | |
---|
[10701] | 31 | Account |
---|
| 32 | ------- |
---|
[10699] | 33 | |
---|
[10701] | 34 | A customer account contains the assets/debts of a :ref:`customer |
---|
| 35 | <label-customer>`. It is *not* a system account (see |
---|
| 36 | :ref:`label-login-credentials` for that) but a virtual financial |
---|
| 37 | account kept by the system. Basically it tells, how much money a |
---|
| 38 | certain :ref:`customer <label-customer>` owes or is eligible for. Each |
---|
| 39 | account is connected to exactly one customer. |
---|
[10700] | 40 | |
---|
[10701] | 41 | Connected to: :ref:`label-customer` (1:1), :ref:`label-payment` (1:n), |
---|
| 42 | :ref:`label-consumption` (1:n) |
---|
| 43 | |
---|
[10717] | 44 | Used in the following use cases: :ref:`label-uc-account-add` |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | .. _label-contact-address: |
---|
| 48 | |
---|
| 49 | Contact Address |
---|
| 50 | --------------- |
---|
| 51 | |
---|
| 52 | A postal address. |
---|
| 53 | |
---|
| 54 | Connected to: :ref:`label-contact-data` (n:1) |
---|
| 55 | |
---|
[10701] | 56 | Used in the following use cases: |
---|
| 57 | |
---|
[10716] | 58 | |
---|
[10699] | 59 | .. _label-contact-data: |
---|
| 60 | |
---|
[10701] | 61 | Contact Data |
---|
| 62 | ------------ |
---|
[10699] | 63 | |
---|
[10716] | 64 | The data neccessary to contact some customer, staff person or similar |
---|
[10717] | 65 | entity. Contact data might contain several addresses, phone numbers, |
---|
| 66 | emails, etc. |
---|
[10699] | 67 | |
---|
[10717] | 68 | Connected to: :ref:`label-customer` (1:1), |
---|
[10719] | 69 | :ref:`label-contact-address` (1:|n0|), :ref:`label-contact-email` (1:|n0|) |
---|
[10716] | 70 | |
---|
| 71 | Used in the following use cases: |
---|
| 72 | |
---|
| 73 | |
---|
[10719] | 74 | .. _label-contact-email: |
---|
| 75 | |
---|
| 76 | Contact Email |
---|
| 77 | ------------- |
---|
| 78 | |
---|
| 79 | An email address with optional additional clear name. For email |
---|
| 80 | addresses we store some timestamp that indicates when the respective |
---|
| 81 | email address was last checked successfully (thus marking it a 'valid' |
---|
| 82 | one). |
---|
| 83 | |
---|
| 84 | Connected to: :ref:`label-contact-data` (|n0|:1) |
---|
| 85 | |
---|
| 86 | Used in the following use cases: |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | .. _label-contact-phone: |
---|
| 90 | |
---|
| 91 | Contact Phone |
---|
| 92 | ------------- |
---|
| 93 | |
---|
| 94 | A phone number. |
---|
| 95 | |
---|
| 96 | Connected to: :ref:`label-contact-data` (|n0|:1) |
---|
| 97 | |
---|
| 98 | Used in the following use cases: |
---|
| 99 | |
---|
| 100 | |
---|
[10699] | 101 | .. _label-contract: |
---|
| 102 | |
---|
[10701] | 103 | Contract |
---|
| 104 | -------- |
---|
[10699] | 105 | |
---|
| 106 | .. _label-contract-types: |
---|
| 107 | |
---|
[10701] | 108 | Contract Types |
---|
| 109 | -------------- |
---|
[10696] | 110 | |
---|
[10699] | 111 | .. _label-contract-termination: |
---|
| 112 | |
---|
[10701] | 113 | Contract Termination |
---|
| 114 | -------------------- |
---|
[10696] | 115 | |
---|
[10699] | 116 | .. _label-consumption: |
---|
| 117 | |
---|
[10701] | 118 | Consumption |
---|
| 119 | ----------- |
---|
[10696] | 120 | |
---|
[10699] | 121 | .. _label-customer: |
---|
| 122 | |
---|
[10701] | 123 | Customer |
---|
| 124 | -------- |
---|
[10696] | 125 | |
---|
[10701] | 126 | Beneficiary of a contract |
---|
| 127 | |
---|
[10699] | 128 | .. _label-login-credentials: |
---|
| 129 | |
---|
[10701] | 130 | Login Credentials |
---|
| 131 | ----------------- |
---|
[10699] | 132 | |
---|
| 133 | .. _label-meter: |
---|
| 134 | |
---|
[10701] | 135 | Meter |
---|
| 136 | ----- |
---|
[10696] | 137 | |
---|
[10699] | 138 | .. _label-meter-status: |
---|
| 139 | |
---|
[10701] | 140 | Meter Status |
---|
| 141 | ------------ |
---|
[10696] | 142 | |
---|
[10699] | 143 | .. _label-meter-value: |
---|
[10696] | 144 | |
---|
[10701] | 145 | Meter Value |
---|
| 146 | ----------- |
---|
[10696] | 147 | |
---|
[10699] | 148 | .. _label-meter-reader: |
---|
[10696] | 149 | |
---|
[10701] | 150 | Meter Reader |
---|
| 151 | ------------ |
---|
[10696] | 152 | |
---|
[10699] | 153 | .. _label-payment: |
---|
[10696] | 154 | |
---|
[10701] | 155 | Payment |
---|
| 156 | ------- |
---|
[10696] | 157 | |
---|
[10701] | 158 | .. _label-point-of-consumption: |
---|
| 159 | |
---|
| 160 | Point of Consumption |
---|
| 161 | -------------------- |
---|
| 162 | |
---|
[10699] | 163 | .. _label-report: |
---|
[10696] | 164 | |
---|
[10701] | 165 | Report |
---|
| 166 | ------ |
---|
[10699] | 167 | |
---|
[10720] | 168 | |
---|
| 169 | .. _label-service: |
---|
| 170 | |
---|
| 171 | Service |
---|
| 172 | ------- |
---|
| 173 | |
---|
| 174 | |
---|
[10699] | 175 | .. _label-timestamp: |
---|
| 176 | |
---|
[10701] | 177 | Timestamp |
---|
| 178 | --------- |
---|
| 179 | |
---|
[10720] | 180 | |
---|
| 181 | .. _label-transaction: |
---|
| 182 | |
---|
| 183 | Transaction |
---|
| 184 | ----------- |
---|
| 185 | |
---|
| 186 | A transaction is some business-relevant action taken. A transaction |
---|
| 187 | means basically, that something happened, that leads to increased or |
---|
| 188 | decreased customer accounts. Normally this is something like a |
---|
| 189 | payment, some service order or similar. |
---|
| 190 | |
---|
| 191 | Transactions do always belong to one certain customer account. They |
---|
| 192 | also contain some amount of money which is thereby transfered to or |
---|
| 193 | from a customer's account. They also always reference a service which |
---|
| 194 | is consumed or purchased by the respective customer. |
---|
| 195 | |
---|
| 196 | .. todo:: this is an initial draft, by no means the final version |
---|
| 197 | |
---|
| 198 | Connected to: :ref:`label-account` (|n0|:1), :ref:`label-service` (1:1) |
---|
| 199 | |
---|
| 200 | Used in the following use cases: |
---|
| 201 | |
---|
| 202 | |
---|
[10701] | 203 | .. [#] Relation types: (1:1): One-to-one, (1:n): One-to-many, (n:1): |
---|
[10719] | 204 | many-to-one, (n:m): many-to-many. ``n`` and ``m`` mean some |
---|
| 205 | value ``1..n``. To indicate zero or more (``0..n``) relations, |
---|
| 206 | we use |n0| and |m0| respectively. |
---|