migration.yml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. migration:
  2. type: FILE
  3. sourceDatabase:
  4. type: sqlserver
  5. host: 192.168.100.25
  6. port: 1433
  7. name: cpcimb
  8. username: sa
  9. password: D4tacom!
  10. properties: encrypt=true;trustServerCertificate=true;
  11. target: null
  12. schema:
  13. - target: pbx
  14. table: pbxlist
  15. history: null
  16. group: null
  17. unique: code
  18. attribute:
  19. code: pbx_code
  20. name: description
  21. ipPbx: ip_pbx
  22. pbxSupporter: pbx_supporter
  23. sharePath: share_path
  24. appliedDate: ext_start
  25. expiredDate: ext_end
  26. - target: corcos
  27. table: womastercorcos
  28. history: null
  29. group: null
  30. attribute:
  31. command: command
  32. name: short_desc
  33. description: description
  34. - target: provider
  35. table: provider
  36. history: null
  37. group: null
  38. attribute:
  39. code: provider_prefix
  40. name: description
  41. description: description
  42. - target: account
  43. table: account
  44. history: accounthistory
  45. group: null
  46. attribute:
  47. id: history.account_id
  48. code: account_code
  49. name: history.account_number
  50. description: description
  51. appliedDate: history.app_datetime
  52. expiredDate: history.exp_datetime
  53. - target: trunk
  54. table: trunk
  55. history: trunkhistory
  56. group: null
  57. unique: code
  58. attribute:
  59. id: history.trunk_id
  60. code: trunk_code
  61. name: description
  62. pbx_id: location_code
  63. direction: cap_direction
  64. appliedDate: history.app_datetime
  65. expiredDate: history.exp_datetime
  66. subscribedNo: history.trunk_number
  67. - target: costCenter
  68. table: costcenter
  69. history: costcenterhistory
  70. group: null
  71. attribute:
  72. id: history.costcenter_id
  73. code: costcenter_code
  74. name: costcenter_name
  75. description: description
  76. email: costcenter_email
  77. parent_id: history.parent_costcenter_id
  78. structure: history.costcenter_id_structure
  79. appliedDate: history.app_datetime
  80. expiredDate: history.exp_datetime
  81. - target: organization
  82. table: organization
  83. history: organizationhistory
  84. group: null
  85. unique: code
  86. attribute:
  87. id: history.organization_id
  88. code: organization_code
  89. name: organization_name
  90. description: description
  91. email: organization_email
  92. emailOnOverBudget: sendemail_overbudget
  93. parent_id: history.parent_organization_id
  94. structure: history.organization_id_structure
  95. appliedDate: history.app_datetime
  96. expiredDate: history.exp_datetime
  97. cpid: history.organization_id
  98. - target: phoneUser
  99. table: phoneuser
  100. history: phoneuserhistory
  101. group: phoneuserextlist
  102. unique: code
  103. attribute:
  104. id: history.phoneuser_id
  105. code: phoneuser_code
  106. name: phoneuser_name
  107. email: phoneuser_email
  108. whatsapp: phoneuser_mobile
  109. position: position
  110. emailOnOverBudget: sendemail_overbudget
  111. pin: history.phoneuser_pin
  112. extension: history.default_extension
  113. organization_id: history.organization_code
  114. costCenter_id: history.costcenter_code
  115. appliedDate: history.app_datetime
  116. expiredDate: history.exp_datetime
  117. budget__maxCost: history.max_cost
  118. budget__warnCost: history.warn_cost
  119. pbx_id: history.pbx_code
  120. pbx__list: group.pbx_list
  121. # corcosNormal_id: history.pbx_0_day
  122. # corcosReducing_id: history.pbx_1_day
  123. # corcosBlock_id: history.pbx_1_day
  124. # pbx__default: "01"
  125. - target: callTransaction
  126. table: calltransaction_20260127
  127. history: null
  128. group: null
  129. unique: raw_data
  130. attribute:
  131. direction: direction
  132. startOfCall: start_of_call
  133. duration: duration
  134. extension: ext_used
  135. pin: pin
  136. phoneUser_id: phoneuser_code
  137. extTransferFrom: ext_transfer_from
  138. extTransferTo: ext_transfer_to
  139. number: dialed_number
  140. callerNumber: caller_number
  141. accessNumber: access_number
  142. organization_id: organization_code
  143. costCenter_id: costcenter_code
  144. cost: cost_1
  145. service: cost_service
  146. tax: cost_tax1
  147. discount: cost_adjustment
  148. currency: currency
  149. pbx_id: pbx_code
  150. terminationCode: call_termination
  151. redirectReason: redirect_reason
  152. account_id: account_code
  153. trunk_id: trunk_code
  154. - target: webUser
  155. table: usersetup
  156. history: null
  157. group: null
  158. attribute:
  159. username: login_id
  160. password: login_password
  161. name: description
  162. phoneUser_id: phoneuser_code
  163. loginPin: used_pin
  164. lastTarget: pbx;corcos;provider;account;trunk;costCenter;organization;phoneUser;callTransaction;webUser
  165. lastAction: '2026-03-02 16:31:09'