migration.yml 4.6 KB

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