migration.yml 4.6 KB

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