| | 1 | == Submitting a Custumer Request |
| | 2 | |
| | 3 | ==== Actors: **Registered Shopper** |
| | 4 | |
| | 5 | **1.** The user submits a customer request to a specific store. |
| | 6 | |
| | 7 | **2.** The request is stored in {{{request}}}. |
| | 8 | |
| | 9 | {{{#!sql |
| | 10 | INSERT INTO request (request_num, date_and_time, problem, customer_satisfaction) VALUES |
| | 11 | ('0010120241001', CURRENT_TIMESTAMP,'Military discount', -1); |
| | 12 | |
| | 13 | }}} |
| | 14 | |
| | 15 | **3.** The request is linked to the client in {{{makes_request}}}. |
| | 16 | |
| | 17 | {{{#!sql |
| | 18 | INSERT INTO makes_request (client_ID, request_num) VALUES |
| | 19 | (1001, '0010120241001'); |
| | 20 | |
| | 21 | }}} |
| | 22 | |
| | 23 | **4.** The request is assigned to the specific store via {{{for_store}}}. |
| | 24 | |
| | 25 | {{{#!sql |
| | 26 | INSERT INTO for_store (request_num, store_ID) VALUES |
| | 27 | ('0010120241001', '001'); |
| | 28 | |
| | 29 | }}} |