migration.yml 4.6 KB

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