SHARE
TWEET

Untitled

a guest Oct 13th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. group: TugasPraktikum1
  2.  
  3. Membership = {
  4. memberId:number, memberType:string
  5. 1, 'Silver'
  6. 2, 'Gold'
  7. 3, 'Platinum'
  8. }
  9.  
  10. Customer = {
  11. customerId:string, customerName:string, memberId:number, registrationDate:string
  12. 'C001', 'Nada', 1, '5/9/2019'
  13. 'C002', 'Ucha', 2, '13/8/2019'
  14. 'C003', 'Kharisma', 3, '30/8/2019'
  15. 'C004', 'Doohan', 3, '28/8/2019'
  16. 'C005', 'Kevin', 2, '15/7/2019'
  17. }
  18.  
  19. Product = {
  20. productId:string, productName:string, price:number, stock:number
  21. '001', 'Lemari', 800000, 10
  22. '002', 'Meja', 500000, 40
  23. '003', 'Kursi', 200000, 20
  24. '004', 'Kasur', 700000, 10
  25. '005', 'Setrika', 350000, 70
  26. '006', 'Gelas', 15000, 100
  27. '007', 'Piring', 20000, 150
  28. }
  29.  
  30. Transaction = {
  31. transactionId:number, productId:string, amount:number, customerId:string, purchaseDate:string, cashierNo:number
  32. 1, '002', 1, 'C001', '1/9/2019', 1
  33. 2, '006', 3, 'C001', '2/9/2019', 2
  34. 3, '007', 3, 'C002', '3/9/2019', 3
  35. 4, '006', 4, 'C002', '4/9/2019', 1
  36. 5, '004', 1, 'C003', '5/9/2019', 2
  37. 6, '007', 5, 'C003', '6/9/2019', 3
  38. 7, '005', 1, 'C004', '7/9/2019', 1
  39. 8, '007', 2, 'C004', '8/9/2019', 2
  40. 9, '003', 1, 'C005', '9/9/2019', 3
  41. 10, '001', 1, 'C005', '10/9/2019', 1
  42. }
  43.  
  44. Cashier = {
  45. cashierNo:number, period:string, staffId:string
  46. 1, 'Pagi', 'S001'
  47. 1, 'Siang', 'S002'
  48. 1, 'Sore', 'S004'
  49. 2, 'Pagi', 'S002'
  50. 2, 'Siang', 'S001'
  51. 2, 'Sore', 'S005'
  52. 3, 'Pagi', 'S004'
  53. 3, 'Siang', 'S005'
  54. 3, 'Sore', 'S003'
  55. }
  56.  
  57. Staff = {
  58. staffId:string, staffName:string, gender:string, birthDate:string
  59. 'S001', 'Jihan', 'Female', '7/10/2000'
  60. 'S002', 'Benita', 'Female', '30/6/2000'
  61. 'S003', 'Erlangga', 'Male', '15/8/1999'
  62. 'S004', 'Reynaldi', 'Male', '22/2/2000'
  63. 'S005', 'Bayu', 'Male', '28/6/2000'
  64. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top