Advertisement
Guest User

Untitled

a guest
Jan 31st, 2019
3,269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. Booking:
  2. - Id
  3. - Client : Client
  4. - StartDate
  5. - EndDate
  6. - DocumentMail: Message
  7. - Status: Enum { 1 = Prenotato, 2 = Confermato, 3 = Annullato }
  8.  
  9. Client:
  10. - Id
  11. - FirstName
  12. - LastName
  13. - BornDate : Nullable
  14. - Email
  15.  
  16. Message:
  17. - Id
  18. - ReceivedDate
  19. - AttachmentList: List<Attachment>
  20.  
  21. Attachment
  22. - Id
  23. - Name
  24.  
  25. POPOLAZIONE TABELLE:
  26.  
  27. { 1,
  28. Client:{10, Mario, Rossi, 10/11/1975, mario@rossi@email.it},
  29. 25/12/2018, 06/01/2019,
  30. Message: { 1, 19/11/2018, List:{ 1, Passaporto | 2, CI | 3, Varie} }
  31. Status: 2
  32. }
  33.  
  34. { 2,
  35. Client:{20, Gino, Verdi, null, gino.verdi@email.it},
  36. 25/08/2018, 31/08/2018,
  37. Message: { 2, 10/08/2018, List:{ 4, Passaporto } }
  38. Status: 2
  39. }
  40.  
  41. { 3,
  42. Client:{30, Marco, Bruno, 10/11/1992, marco.bruno@virgilio.it},
  43. 22/11/2018, 08/12/2018,
  44. Message: null
  45. Status: 1
  46. }
  47.  
  48.  
  49. { 4,
  50. Client:{40, Francesco, Rifugio, null, dragon@gmail.com},
  51. 01/12/2018, 08/12/2018,
  52. Message: { 3, 20/09/2018, List:{ 5, CI | 6, ScanVarie} }
  53. Status: 1
  54. }
  55.  
  56. { 5,
  57. Client:{40, Francesco, Rifugio, null, dragon@gmail.com},
  58. 01/12/2017, 08/12/2017,
  59. Message: { 4, 21/11/2017, List:{ 7, CI | 8, Passaporto} }
  60. Status: 2
  61. }
  62.  
  63. { 6,
  64. Client:{10, Mario, Rossi, 10/11/1975, mario@rossi@email.it},
  65. 01/06/2019, 10/06/2019,
  66. Message: null,
  67. Status: 1
  68. }
  69.  
  70.  
  71. QUERY:
  72. - Tutti i booking già conclusi
  73. - Tutti i booking confermati
  74. - Tutti i clienti che hanno più di 30 anni
  75. - Tutte le prenotazioni fatte da un cliente
  76. - Elenco delle prenotazioni raggruppate per cliente
  77. - Tutti gli attachment che hanno nome CI
  78. - Verificare se esiste (e nel caso estrarre) un Booking prenotato, che inizierà fra 2 giorni, ma che non ha ancora un oggetto DocumentMail associato
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement