migration.yml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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;pbx_uid
  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. unique: code
  72. attribute:
  73. id: history.costcenter_id
  74. code: costcenter_code
  75. name: costcenter_name
  76. description: description
  77. email: costcenter_email
  78. parent_id: history.parent_costcenter_id
  79. structure: history.costcenter_id_structure
  80. appliedDate: history.app_datetime
  81. expiredDate: history.exp_datetime
  82. - target: organization
  83. table: organization
  84. history: organizationhistory
  85. group: null
  86. unique: code
  87. attribute:
  88. id: history.organization_id
  89. code: organization_code
  90. name: organization_name
  91. description: description
  92. email: organization_email
  93. emailOnOverBudget: sendemail_overbudget
  94. parent_id: history.parent_organization_id
  95. structure: history.organization_id_structure
  96. appliedDate: history.app_datetime
  97. expiredDate: history.exp_datetime
  98. cpid: history.organization_id
  99. - target: phoneUser
  100. table: phoneuser
  101. history: phoneuserhistory
  102. group: phoneuserextlist
  103. unique: code
  104. attribute:
  105. id: history.phoneuser_id
  106. code: phoneuser_code
  107. name: phoneuser_name
  108. email: phoneuser_email
  109. whatsapp: phoneuser_mobile
  110. position: position
  111. emailOnOverBudget: sendemail_overbudget
  112. pin: history.phoneuser_pin
  113. extension: history.default_extension
  114. organization_id: history.organization_code
  115. costCenter_id: history.costcenter_code
  116. appliedDate: history.app_datetime
  117. expiredDate: history.exp_datetime
  118. budget__maxCost: history.max_cost
  119. budget__warnCost: history.warn_cost
  120. pbx_id: history.pbx_code
  121. pbx__list: group.pbx_list
  122. # corcosNormal_id: history.pbx_0_day
  123. # corcosReducing_id: history.pbx_1_day
  124. # corcosBlock_id: history.pbx_1_day
  125. # pbx__default: "01"
  126. - target: callTransaction
  127. table: calltransaction_20260127
  128. history: null
  129. group: null
  130. unique: raw_data
  131. attribute:
  132. direction: direction
  133. startOfCall: start_of_call
  134. duration: duration
  135. extension: ext_used
  136. pin: pin
  137. phoneUser_id: phoneuser_code
  138. extTransferFrom: ext_transfer_from
  139. extTransferTo: ext_transfer_to
  140. number: dialed_number
  141. callerNumber: caller_number
  142. accessNumber: access_number
  143. organization_id: organization_code
  144. costCenter_id: costcenter_code
  145. cost: cost_1
  146. service: cost_service
  147. tax: cost_tax1
  148. discount: cost_adjustment
  149. currency: currency
  150. pbx_id: pbx_code
  151. terminationCode: call_termination
  152. redirectReason: redirect_reason
  153. account_id: account_code
  154. trunk_id: trunk_code
  155. - target: webUser
  156. table: usersetup
  157. history: null
  158. group: null
  159. attribute:
  160. username: login_id
  161. password: login_password
  162. name: description
  163. phoneUser_id: phoneuser_code
  164. loginPin: used_pin
  165. lastTarget: pbx;corcos;provider;account;trunk;costCenter;organization;phoneUser;callTransaction;webUser
  166. lastAction: '2026-03-02 16:31:09'