migration.yml 4.4 KB

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