rez_core 3.1.210 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/dist/module/dashboard/entity/dashboard_page_data.entity.js +1 -1
  2. package/dist/module/dashboard/entity/dashboard_page_data.entity.js.map +1 -1
  3. package/dist/module/dashboard/entity/widget_master.entity.js +1 -1
  4. package/dist/module/dashboard/entity/widget_master.entity.js.map +1 -1
  5. package/dist/module/dashboard/repository/dashboard.repository.js +1 -1
  6. package/dist/module/dashboard/repository/dashboard.repository.js.map +1 -1
  7. package/dist/module/enterprise/repository/school.repository.js +5 -5
  8. package/dist/module/enterprise/repository/school.repository.js.map +1 -1
  9. package/dist/module/filter/entity/saved-filter-detail.entity.js +1 -1
  10. package/dist/module/filter/entity/saved-filter-detail.entity.js.map +1 -1
  11. package/dist/module/filter/entity/saved-filter-master.entity.js +1 -1
  12. package/dist/module/filter/entity/saved-filter-master.entity.js.map +1 -1
  13. package/dist/module/filter/repository/saved-filter.repository.js +1 -1
  14. package/dist/module/filter/service/filter-evaluator.service.js +1 -1
  15. package/dist/module/filter/service/filter.service.js +7 -1
  16. package/dist/module/filter/service/filter.service.js.map +1 -1
  17. package/dist/module/integration/entity/integration-config.entity.js +1 -1
  18. package/dist/module/integration/entity/integration-config.entity.js.map +1 -1
  19. package/dist/module/integration/entity/integration-entity-mapper.entity.js +1 -1
  20. package/dist/module/integration/entity/integration-entity-mapper.entity.js.map +1 -1
  21. package/dist/module/integration/entity/integration-source.entity.js +1 -1
  22. package/dist/module/integration/entity/integration-source.entity.js.map +1 -1
  23. package/dist/module/integration/entity/user-integration.entity.js +1 -1
  24. package/dist/module/integration/entity/user-integration.entity.js.map +1 -1
  25. package/dist/module/integration/service/integration.service.js +1 -1
  26. package/dist/module/integration/service/integration.service.js.map +1 -1
  27. package/dist/module/integration/service/wrapper.service.js +8 -8
  28. package/dist/module/integration/service/wrapper.service.js.map +1 -1
  29. package/dist/module/layout_preference/entity/layout_preference.entity.js +1 -1
  30. package/dist/module/layout_preference/entity/layout_preference.entity.js.map +1 -1
  31. package/dist/module/listmaster/entity/list-master-items.entity.js +1 -1
  32. package/dist/module/listmaster/entity/list-master-items.entity.js.map +1 -1
  33. package/dist/module/listmaster/entity/list-master.entity.js +1 -1
  34. package/dist/module/listmaster/entity/list-master.entity.js.map +1 -1
  35. package/dist/module/listmaster/service/list-master-item.service.js +1 -1
  36. package/dist/module/listmaster/service/list-master.service.js +4 -5
  37. package/dist/module/listmaster/service/list-master.service.js.map +1 -1
  38. package/dist/module/mapper/entity/field-lovs.entity.js +1 -1
  39. package/dist/module/mapper/entity/field-lovs.entity.js.map +1 -1
  40. package/dist/module/mapper/entity/field-mapper.entity.js +1 -1
  41. package/dist/module/mapper/entity/field-mapper.entity.js.map +1 -1
  42. package/dist/module/mapper/entity/mapper.entity.js +1 -1
  43. package/dist/module/mapper/entity/mapper.entity.js.map +1 -1
  44. package/dist/module/mapper/service/field-mapper.service.js +1 -1
  45. package/dist/module/mapper/service/mapper.service.js +2 -2
  46. package/dist/module/mapper/service/mapper.service.js.map +1 -1
  47. package/dist/module/master/service/master.service.js +8 -8
  48. package/dist/module/master/service/master.service.js.map +1 -1
  49. package/dist/module/meta/entity/attribute-master.entity.js +1 -1
  50. package/dist/module/meta/entity/attribute-master.entity.js.map +1 -1
  51. package/dist/module/meta/entity/entity-master.entity.js +1 -1
  52. package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
  53. package/dist/module/meta/entity/entity-relation-data.entity.js +1 -1
  54. package/dist/module/meta/entity/entity-relation-data.entity.js.map +1 -1
  55. package/dist/module/meta/entity/entity-relation.entity.js +1 -1
  56. package/dist/module/meta/entity/entity-relation.entity.js.map +1 -1
  57. package/dist/module/meta/entity/entity-table-column.entity.js +1 -1
  58. package/dist/module/meta/entity/entity-table-column.entity.js.map +1 -1
  59. package/dist/module/meta/entity/entity-table.entity.js +1 -1
  60. package/dist/module/meta/entity/entity-table.entity.js.map +1 -1
  61. package/dist/module/meta/entity/media-data.entity.js +1 -1
  62. package/dist/module/meta/entity/media-data.entity.js.map +1 -1
  63. package/dist/module/meta/entity/preference.entity.js +1 -1
  64. package/dist/module/meta/entity/preference.entity.js.map +1 -1
  65. package/dist/module/meta/entity/view-master.entity.js +1 -1
  66. package/dist/module/meta/entity/view-master.entity.js.map +1 -1
  67. package/dist/module/meta/repository/attribute-master.repository.js +1 -1
  68. package/dist/module/meta/repository/attribute-master.repository.js.map +1 -1
  69. package/dist/module/meta/repository/entity-master.repository.js +2 -2
  70. package/dist/module/meta/repository/entity-master.repository.js.map +1 -1
  71. package/dist/module/meta/service/entity-dynamic.service.js +15 -15
  72. package/dist/module/meta/service/entity-dynamic.service.js.map +1 -1
  73. package/dist/module/meta/service/entity-master.service.js +1 -1
  74. package/dist/module/meta/service/entity-relation.service.js +3 -3
  75. package/dist/module/meta/service/entity-service-impl.service.js +2 -2
  76. package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
  77. package/dist/module/meta/service/populate-meta.service.js +11 -11
  78. package/dist/module/meta/service/populate-meta.service.js.map +1 -1
  79. package/dist/module/meta/service/resolver.service.js +8 -8
  80. package/dist/module/meta/service/resolver.service.js.map +1 -1
  81. package/dist/module/notification/entity/notification.entity.js +1 -1
  82. package/dist/module/notification/entity/notification.entity.js.map +1 -1
  83. package/dist/module/notification/service/email.service.js +2 -2
  84. package/dist/module/notification/service/email.service.js.map +1 -1
  85. package/dist/module/notification/service/notification.service.js +2 -2
  86. package/dist/module/third-party-module/entity/third-party-api-registry.entity.js +1 -1
  87. package/dist/module/third-party-module/entity/third-party-api-registry.entity.js.map +1 -1
  88. package/dist/module/workflow/entity/action-category.entity.js +1 -1
  89. package/dist/module/workflow/entity/action-category.entity.js.map +1 -1
  90. package/dist/module/workflow/entity/action-data.entity.js +1 -1
  91. package/dist/module/workflow/entity/action-data.entity.js.map +1 -1
  92. package/dist/module/workflow/entity/action-resources-mapping.entity.js +1 -1
  93. package/dist/module/workflow/entity/action-resources-mapping.entity.js.map +1 -1
  94. package/dist/module/workflow/entity/action-template-mapping.entity.js +1 -1
  95. package/dist/module/workflow/entity/action-template-mapping.entity.js.map +1 -1
  96. package/dist/module/workflow/entity/action.entity.js +1 -1
  97. package/dist/module/workflow/entity/action.entity.js.map +1 -1
  98. package/dist/module/workflow/entity/activity-log.entity.js +1 -1
  99. package/dist/module/workflow/entity/activity-log.entity.js.map +1 -1
  100. package/dist/module/workflow/entity/comm-template.entity.js +1 -1
  101. package/dist/module/workflow/entity/comm-template.entity.js.map +1 -1
  102. package/dist/module/workflow/entity/entity-modification.entity.js +1 -1
  103. package/dist/module/workflow/entity/entity-modification.entity.js.map +1 -1
  104. package/dist/module/workflow/entity/form.entity.js +1 -1
  105. package/dist/module/workflow/entity/form.entity.js.map +1 -1
  106. package/dist/module/workflow/entity/stage-action-mapping.entity.js +1 -1
  107. package/dist/module/workflow/entity/stage-action-mapping.entity.js.map +1 -1
  108. package/dist/module/workflow/entity/stage-group.entity.js +1 -1
  109. package/dist/module/workflow/entity/stage-group.entity.js.map +1 -1
  110. package/dist/module/workflow/entity/stage-movement-data.entity.js +1 -1
  111. package/dist/module/workflow/entity/stage-movement-data.entity.js.map +1 -1
  112. package/dist/module/workflow/entity/stage.entity.js +1 -1
  113. package/dist/module/workflow/entity/stage.entity.js.map +1 -1
  114. package/dist/module/workflow/entity/task-data.entity.js +1 -1
  115. package/dist/module/workflow/entity/task-data.entity.js.map +1 -1
  116. package/dist/module/workflow/entity/template-attach-mapper.entity.js +1 -1
  117. package/dist/module/workflow/entity/template-attach-mapper.entity.js.map +1 -1
  118. package/dist/module/workflow/entity/workflow-data.entity.js +1 -1
  119. package/dist/module/workflow/entity/workflow-data.entity.js.map +1 -1
  120. package/dist/module/workflow/entity/workflow-level-mapping.entity.js +1 -1
  121. package/dist/module/workflow/entity/workflow-level-mapping.entity.js.map +1 -1
  122. package/dist/module/workflow/entity/workflow.entity.js +1 -1
  123. package/dist/module/workflow/entity/workflow.entity.js.map +1 -1
  124. package/dist/module/workflow/repository/action-data.repository.js +4 -4
  125. package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
  126. package/dist/module/workflow/repository/action.repository.js +14 -14
  127. package/dist/module/workflow/repository/action.repository.js.map +1 -1
  128. package/dist/module/workflow/repository/comm-template.repository.js +2 -2
  129. package/dist/module/workflow/repository/form-master.repository.js +2 -2
  130. package/dist/module/workflow/repository/form-master.repository.js.map +1 -1
  131. package/dist/module/workflow/repository/stage-group.repository.js +6 -6
  132. package/dist/module/workflow/repository/stage-group.repository.js.map +1 -1
  133. package/dist/module/workflow/repository/stage-movement.repository.js +6 -6
  134. package/dist/module/workflow/repository/stage-movement.repository.js.map +1 -1
  135. package/dist/module/workflow/repository/stage.repository.js +6 -6
  136. package/dist/module/workflow/repository/stage.repository.js.map +1 -1
  137. package/dist/module/workflow/repository/task.repository.js +3 -3
  138. package/dist/module/workflow/repository/task.repository.js.map +1 -1
  139. package/dist/module/workflow/service/action-template-mapping.service.js +4 -4
  140. package/dist/module/workflow/service/action-template-mapping.service.js.map +1 -1
  141. package/dist/module/workflow/service/action.service.js +9 -9
  142. package/dist/module/workflow/service/action.service.js.map +1 -1
  143. package/dist/module/workflow/service/entity-modification.service.js +2 -2
  144. package/dist/module/workflow/service/entity-modification.service.js.map +1 -1
  145. package/dist/module/workflow/service/populate-workflow.service.js +14 -14
  146. package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
  147. package/dist/module/workflow/service/stage-group.service.js +3 -3
  148. package/dist/module/workflow/service/stage-group.service.js.map +1 -1
  149. package/dist/module/workflow/service/stage.service.js +3 -3
  150. package/dist/module/workflow/service/stage.service.js.map +1 -1
  151. package/dist/module/workflow/service/task.service.js +11 -11
  152. package/dist/module/workflow/service/task.service.js.map +1 -1
  153. package/dist/module/workflow/service/workflow-list-master.service.js +5 -5
  154. package/dist/module/workflow/service/workflow-list-master.service.js.map +1 -1
  155. package/dist/module/workflow/service/workflow-meta.service.js +10 -10
  156. package/dist/module/workflow/service/workflow-meta.service.js.map +1 -1
  157. package/dist/module/workflow/service/workflow.service.js +3 -3
  158. package/dist/module/workflow/service/workflow.service.js.map +1 -1
  159. package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js +1 -1
  160. package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js.map +1 -1
  161. package/dist/module/workflow-automation/entity/workflow-automation.entity.js +1 -1
  162. package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +1 -1
  163. package/dist/module/workflow-automation/service/workflow-automation-engine.service.js +1 -1
  164. package/dist/module/workflow-automation/service/workflow-automation-engine.service.js.map +1 -1
  165. package/dist/tsconfig.build.tsbuildinfo +1 -1
  166. package/docs/modules/event-driven-integration-design.md +1 -1
  167. package/docs/modules/integration.md +4 -4
  168. package/package.json +1 -1
  169. package/src/module/dashboard/entity/dashboard_page_data.entity.ts +1 -1
  170. package/src/module/dashboard/entity/widget_master.entity.ts +1 -1
  171. package/src/module/dashboard/repository/dashboard.repository.ts +1 -1
  172. package/src/module/enterprise/repository/school.repository.ts +5 -5
  173. package/src/module/filter/entity/saved-filter-detail.entity.ts +1 -1
  174. package/src/module/filter/entity/saved-filter-master.entity.ts +1 -1
  175. package/src/module/filter/repository/saved-filter.repository.ts +1 -1
  176. package/src/module/filter/service/filter-evaluator.service.ts +1 -1
  177. package/src/module/filter/service/filter.service.ts +9 -1
  178. package/src/module/integration/entity/integration-config.entity.ts +1 -1
  179. package/src/module/integration/entity/integration-entity-mapper.entity.ts +1 -1
  180. package/src/module/integration/entity/integration-source.entity.ts +1 -1
  181. package/src/module/integration/entity/user-integration.entity.ts +1 -1
  182. package/src/module/integration/service/integration.service.ts +1 -1
  183. package/src/module/integration/service/wrapper.service.ts +8 -8
  184. package/src/module/layout_preference/entity/layout_preference.entity.ts +1 -1
  185. package/src/module/listmaster/entity/list-master-items.entity.ts +1 -1
  186. package/src/module/listmaster/entity/list-master.entity.ts +1 -1
  187. package/src/module/listmaster/service/list-master-item.service.ts +1 -1
  188. package/src/module/listmaster/service/list-master.service.ts +26 -24
  189. package/src/module/mapper/entity/field-lovs.entity.ts +1 -1
  190. package/src/module/mapper/entity/field-mapper.entity.ts +1 -1
  191. package/src/module/mapper/entity/mapper.entity.ts +1 -1
  192. package/src/module/mapper/service/field-mapper.service.ts +1 -1
  193. package/src/module/mapper/service/mapper.service.ts +2 -2
  194. package/src/module/master/service/master.service.ts +15 -15
  195. package/src/module/meta/entity/attribute-master.entity.ts +1 -1
  196. package/src/module/meta/entity/entity-master.entity.ts +1 -1
  197. package/src/module/meta/entity/entity-relation-data.entity.ts +1 -1
  198. package/src/module/meta/entity/entity-relation.entity.ts +1 -1
  199. package/src/module/meta/entity/entity-table-column.entity.ts +1 -1
  200. package/src/module/meta/entity/entity-table.entity.ts +1 -1
  201. package/src/module/meta/entity/media-data.entity.ts +1 -1
  202. package/src/module/meta/entity/preference.entity.ts +1 -1
  203. package/src/module/meta/entity/view-master.entity.ts +1 -1
  204. package/src/module/meta/repository/attribute-master.repository.ts +1 -1
  205. package/src/module/meta/repository/entity-master.repository.ts +2 -2
  206. package/src/module/meta/service/entity-dynamic.service.ts +15 -15
  207. package/src/module/meta/service/entity-master.service.ts +1 -1
  208. package/src/module/meta/service/entity-relation.service.ts +3 -3
  209. package/src/module/meta/service/entity-service-impl.service.ts +2 -2
  210. package/src/module/meta/service/populate-meta.service.ts +14 -14
  211. package/src/module/meta/service/resolver.service.ts +8 -8
  212. package/src/module/notification/entity/notification.entity.ts +1 -1
  213. package/src/module/notification/service/email.service.ts +3 -3
  214. package/src/module/notification/service/notification.service.ts +2 -2
  215. package/src/module/third-party-module/entity/third-party-api-registry.entity.ts +1 -1
  216. package/src/module/workflow/entity/action-category.entity.ts +1 -1
  217. package/src/module/workflow/entity/action-data.entity.ts +1 -1
  218. package/src/module/workflow/entity/action-resources-mapping.entity.ts +1 -1
  219. package/src/module/workflow/entity/action-template-mapping.entity.ts +1 -1
  220. package/src/module/workflow/entity/action.entity.ts +1 -1
  221. package/src/module/workflow/entity/activity-log.entity.ts +1 -1
  222. package/src/module/workflow/entity/comm-template.entity.ts +1 -1
  223. package/src/module/workflow/entity/entity-modification.entity.ts +1 -1
  224. package/src/module/workflow/entity/form.entity.ts +1 -1
  225. package/src/module/workflow/entity/stage-action-mapping.entity.ts +1 -1
  226. package/src/module/workflow/entity/stage-group.entity.ts +1 -1
  227. package/src/module/workflow/entity/stage-movement-data.entity.ts +1 -1
  228. package/src/module/workflow/entity/stage.entity.ts +1 -1
  229. package/src/module/workflow/entity/task-data.entity.ts +1 -1
  230. package/src/module/workflow/entity/template-attach-mapper.entity.ts +1 -1
  231. package/src/module/workflow/entity/workflow-data.entity.ts +1 -1
  232. package/src/module/workflow/entity/workflow-level-mapping.entity.ts +1 -1
  233. package/src/module/workflow/entity/workflow.entity.ts +1 -1
  234. package/src/module/workflow/repository/action-data.repository.ts +4 -4
  235. package/src/module/workflow/repository/action.repository.ts +15 -15
  236. package/src/module/workflow/repository/comm-template.repository.ts +2 -2
  237. package/src/module/workflow/repository/form-master.repository.ts +2 -2
  238. package/src/module/workflow/repository/stage-group.repository.ts +6 -6
  239. package/src/module/workflow/repository/stage-movement.repository.ts +6 -6
  240. package/src/module/workflow/repository/stage.repository.ts +8 -8
  241. package/src/module/workflow/repository/task.repository.ts +3 -3
  242. package/src/module/workflow/service/action-template-mapping.service.ts +4 -4
  243. package/src/module/workflow/service/action.service.ts +9 -9
  244. package/src/module/workflow/service/entity-modification.service.ts +3 -3
  245. package/src/module/workflow/service/populate-workflow.service.ts +20 -20
  246. package/src/module/workflow/service/stage-group.service.ts +3 -3
  247. package/src/module/workflow/service/stage.service.ts +3 -3
  248. package/src/module/workflow/service/task.service.ts +12 -12
  249. package/src/module/workflow/service/workflow-list-master.service.ts +5 -5
  250. package/src/module/workflow/service/workflow-meta.service.ts +10 -10
  251. package/src/module/workflow/service/workflow.service.ts +4 -4
  252. package/src/module/workflow-automation/entity/workflow-automation-action.entity.ts +1 -1
  253. package/src/module/workflow-automation/entity/workflow-automation.entity.ts +1 -1
  254. package/src/module/workflow-automation/service/workflow-automation-engine.service.ts +2 -2
@@ -2,7 +2,7 @@ import { ENTITYTYPE_ENTITYTABLECOLUMN } from '../../../constant/global.constant'
2
2
  import { Column, Entity } from 'typeorm';
3
3
  import { BaseEntity } from './base-entity.entity';
4
4
 
5
- @Entity({ name: 'cr_entity_table_column' })
5
+ @Entity({ name: 'frm_entity_table_column' })
6
6
  export class EntityTableColumn extends BaseEntity {
7
7
  constructor() {
8
8
  super();
@@ -2,7 +2,7 @@ import { Column, Entity } from 'typeorm';
2
2
  import { BaseEntity } from './base-entity.entity';
3
3
  import { ENTITYTYPE_ENTITYTABLE } from '../../../constant/global.constant';
4
4
 
5
- @Entity({ name: 'cr_entity_table' })
5
+ @Entity({ name: 'frm_entity_table' })
6
6
  export class EntityTable extends BaseEntity {
7
7
  constructor() {
8
8
  super();
@@ -2,7 +2,7 @@ import { Column, Entity } from 'typeorm';
2
2
  import { BaseEntity } from './base-entity.entity';
3
3
  import { ENTITYTYPE_MEDIA } from '../../../constant/global.constant';
4
4
 
5
- @Entity({ name: 'cr_media_data' })
5
+ @Entity({ name: 'frm_media_data' })
6
6
  export class MediaData extends BaseEntity {
7
7
  constructor() {
8
8
  super();
@@ -2,7 +2,7 @@ import { BaseEntity } from './base-entity.entity';
2
2
  import { Column, Entity } from 'typeorm';
3
3
  import { ENTITYTYPE_PREFERENCEMASTER } from '../../../constant/global.constant';
4
4
 
5
- @Entity({ name: 'cr_preference_master' })
5
+ @Entity({ name: 'frm_preference_master' })
6
6
  export class PreferenceMaster extends BaseEntity {
7
7
  constructor() {
8
8
  super();
@@ -2,7 +2,7 @@ import { BaseEntity } from './base-entity.entity';
2
2
  import { Column, Entity } from 'typeorm';
3
3
  import { ENTITYTYPE_VIEWMASTER } from '../../../constant/global.constant';
4
4
 
5
- @Entity({ name: 'cr_entity_view' })
5
+ @Entity({ name: 'frm_entity_view' })
6
6
  export class ViewMaster extends BaseEntity {
7
7
  constructor() {
8
8
  super();
@@ -82,7 +82,7 @@ export class AttributeMasterRepository {
82
82
  loggedInUser: UserData,
83
83
  ): Promise<string | null> {
84
84
  const result = await this.dataSource.query(
85
- `SELECT db_table_name FROM cr_entity_master WHERE mapped_entity_type = ? AND organization_id = ?`,
85
+ `SELECT db_table_name FROM frm_entity_master WHERE mapped_entity_type = ? AND organization_id = ?`,
86
86
  [entityType, loggedInUser.organization_id],
87
87
  );
88
88
  return result.length ? result[0].db_table_name : null;
@@ -18,7 +18,7 @@ export class EntityMasterRepository {
18
18
  let data = await this.entityMasterRepository.findOne({ where: { id } });
19
19
  if (data) {
20
20
  let listMasterData = await this.entityMasterRepository.query(
21
- `SELECT * FROM cr_list_master_items where id = ?`,
21
+ `SELECT * FROM frm_list_master_items where id = ?`,
22
22
  [data?.status],
23
23
  );
24
24
  data.status = listMasterData?.[0].name;
@@ -55,7 +55,7 @@ export class EntityMasterRepository {
55
55
  const organization_id = loggedInUser.organization_id;
56
56
 
57
57
  const attributes = await this.dataSource.query(
58
- `SELECT * FROM cr_entity_attribute WHERE mapped_entity_type = ? AND data_type = 'DATE' AND organization_id = ?`,
58
+ `SELECT * FROM frm_entity_attribute WHERE mapped_entity_type = ? AND data_type = 'DATE' AND organization_id = ?`,
59
59
  [entity_type, organization_id],
60
60
  );
61
61
 
@@ -33,7 +33,7 @@ export class EntityDynamicService {
33
33
  );
34
34
 
35
35
  const statusList = await this.dataSource.query(
36
- `SELECT id FROM cr_list_master_items WHERE code = ? AND organization_id = ?`,
36
+ `SELECT id FROM frm_list_master_items WHERE code = ? AND organization_id = ?`,
37
37
  [STATUS_ACTIVE, loggedInUser?.organization_id || 0],
38
38
  );
39
39
 
@@ -148,7 +148,7 @@ export class EntityDynamicService {
148
148
  const organizationId = loggedInUser.organization_id;
149
149
 
150
150
  const getRelation = await this.dataSource.query(
151
- `SELECT * FROM cr_entity_relation WHERE organization_id = ? AND source_entity_type = ?`,
151
+ `SELECT * FROM frm_entity_relation WHERE organization_id = ? AND source_entity_type = ?`,
152
152
  [organizationId, entityType],
153
153
  );
154
154
 
@@ -189,7 +189,7 @@ export class EntityDynamicService {
189
189
  );
190
190
 
191
191
  await this.dataSource.query(
192
- `INSERT INTO cr_entity_relation_data (organization_id, source_entity_id, source_entity_type, target_entity_id, target_entity_type, relation_type) VALUES (?, ?, ?, ?, ?,?)`,
192
+ `INSERT INTO frm_entity_relation_data (organization_id, source_entity_id, source_entity_type, target_entity_id, target_entity_type, relation_type) VALUES (?, ?, ?, ?, ?,?)`,
193
193
  [
194
194
  organizationId,
195
195
  mainID,
@@ -221,8 +221,8 @@ export class EntityDynamicService {
221
221
  const mainEntity = await this.getEntity(entityType, id, loggedInUser);
222
222
 
223
223
  const relatedEntities = await this.dataSource.query(
224
- `SELECT * FROM cr_entity_relation_data WHERE source_entity_id = ? AND target_entity_type IN (
225
- SELECT target_entity_type FROM cr_entity_relation WHERE source_entity_type = ?)`,
224
+ `SELECT * FROM frm_entity_relation_data WHERE source_entity_id = ? AND target_entity_type IN (
225
+ SELECT target_entity_type FROM frm_entity_relation WHERE source_entity_type = ?)`,
226
226
  [id, entityType],
227
227
  );
228
228
 
@@ -293,7 +293,7 @@ export class EntityDynamicService {
293
293
 
294
294
  if (mappedEntities) {
295
295
  const getRelationDefs = await this.dataSource.query(
296
- `SELECT * FROM cr_entity_relation WHERE organization_id = ? AND source_entity_type = ?`,
296
+ `SELECT * FROM frm_entity_relation WHERE organization_id = ? AND source_entity_type = ?`,
297
297
  [organizationId, entityType],
298
298
  );
299
299
 
@@ -312,7 +312,7 @@ export class EntityDynamicService {
312
312
 
313
313
  // Delete previous relations and related entities
314
314
  const existingRelationsForType = await this.dataSource.query(
315
- `SELECT * FROM cr_entity_relation_data WHERE source_entity_type = ? AND source_entity_id = ? AND target_entity_type = ?`,
315
+ `SELECT * FROM frm_entity_relation_data WHERE source_entity_type = ? AND source_entity_id = ? AND target_entity_type = ?`,
316
316
  [entityType, id, targetEntityType],
317
317
  );
318
318
 
@@ -326,7 +326,7 @@ export class EntityDynamicService {
326
326
 
327
327
  // Delete the relation row
328
328
  await this.dataSource.query(
329
- `DELETE FROM cr_entity_relation_data WHERE id = ?`,
329
+ `DELETE FROM frm_entity_relation_data WHERE id = ?`,
330
330
  [existingRel.id],
331
331
  );
332
332
  }
@@ -371,7 +371,7 @@ export class EntityDynamicService {
371
371
 
372
372
  // Insert relation
373
373
  await this.dataSource.query(
374
- `INSERT INTO cr_entity_relation_data
374
+ `INSERT INTO frm_entity_relation_data
375
375
  (organization_id, source_entity_id, source_entity_type, target_entity_id, target_entity_type, relation_type)
376
376
  VALUES (?, ?, ?, ?, ?,?)`,
377
377
  [
@@ -599,12 +599,12 @@ export class EntityDynamicService {
599
599
  organizationId: string,
600
600
  ): Promise<string> {
601
601
  const result = await this.dataSource.query(
602
- `SELECT db_table_name FROM cr_entity_master WHERE organization_id = ? AND mapped_entity_type = ?`,
602
+ `SELECT db_table_name FROM frm_entity_master WHERE organization_id = ? AND mapped_entity_type = ?`,
603
603
  [organizationId, entityType],
604
604
  );
605
605
 
606
606
  if (!result.length) {
607
- console.log(`Entity type '${entityType}' not found in cr_entity_master`);
607
+ console.log(`Entity type '${entityType}' not found in frm_entity_master`);
608
608
  }
609
609
 
610
610
  return result[0].db_table_name;
@@ -626,7 +626,7 @@ export class EntityDynamicService {
626
626
  MAX(db_datatype) AS db_datatype,
627
627
  MAX(element_type) AS element_type,
628
628
  MAX(is_hidden) AS is_hidden
629
- FROM cr_entity_attribute
629
+ FROM frm_entity_attribute
630
630
  WHERE mapped_entity_type = ? AND organization_id = ?
631
631
  and (is_hidden IS NULL OR is_hidden = 0) -- Exclude hidden attributes
632
632
  GROUP BY attribute_key`,
@@ -669,7 +669,7 @@ export class EntityDynamicService {
669
669
  ): Promise<any> {
670
670
  const organizationId = loggedInUser.organization_id;
671
671
 
672
- let query = `SELECT name as label,mapped_entity_type as value FROM cr_entity_master WHERE organization_id = ?`;
672
+ let query = `SELECT name as label,mapped_entity_type as value FROM frm_entity_master WHERE organization_id = ?`;
673
673
  const params = [organizationId];
674
674
 
675
675
  if (appcode) {
@@ -687,14 +687,14 @@ export class EntityDynamicService {
687
687
  // 1. Get db_table_name from entity master
688
688
  const result = await this.dataSource.query(
689
689
  `SELECT db_table_name
690
- FROM cr_entity_master
690
+ FROM frm_entity_master
691
691
  WHERE mapped_entity_type = ? AND organization_id = ?`,
692
692
  [entityType, organizationId],
693
693
  );
694
694
 
695
695
  if (!result.length) {
696
696
  throw new Error(
697
- `Entity type '${entityType}' not found in cr_entity_master for org '${organizationId}'`,
697
+ `Entity type '${entityType}' not found in frm_entity_master for org '${organizationId}'`,
698
698
  );
699
699
  }
700
700
 
@@ -85,7 +85,7 @@ export class EntityMasterService {
85
85
  // Step 2: Get attribute_master (instead of entity_table_column)
86
86
  const attributes = await this.dataSource.query(
87
87
  `SELECT *
88
- FROM cr_entity_attribute
88
+ FROM frm_entity_attribute
89
89
  WHERE mapped_entity_type = ?
90
90
  AND organization_id = ? `,
91
91
  [entityMasterData.mapped_entity_type, loggedInUser.organization_id],
@@ -15,7 +15,7 @@ export class EntityRelationService extends EntityServiceImpl {
15
15
  ): Promise<any> {
16
16
  const relations = await this.dataSource.query(
17
17
  `SELECT name as label, target_entity_type as value, id
18
- FROM cr_entity_relation
18
+ FROM frm_entity_relation
19
19
  WHERE source_entity_type = ? AND organization_id = ?`,
20
20
  [entityType, loggedInUser.organization_id],
21
21
  );
@@ -23,7 +23,7 @@ export class EntityRelationService extends EntityServiceImpl {
23
23
  if (includeSelf) {
24
24
  const [entity] = await this.dataSource.query(
25
25
  `SELECT name as label
26
- FROM cr_entity_master
26
+ FROM frm_entity_master
27
27
  WHERE mapped_entity_type = ? AND organization_id = ?`,
28
28
  [entityType, loggedInUser.organization_id],
29
29
  );
@@ -52,7 +52,7 @@ export class EntityRelationService extends EntityServiceImpl {
52
52
  const result = await this.dataSource.query(
53
53
  `
54
54
  SELECT DISTINCT source_entity_id
55
- FROM cr_entity_relation_data
55
+ FROM frm_entity_relation_data
56
56
  WHERE source_entity_type = ?
57
57
  AND target_entity_type = ?
58
58
  AND target_entity_id IN (?)
@@ -100,7 +100,7 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
100
100
 
101
101
  const statusList = await repo.query(
102
102
  `SELECT id
103
- FROM cr_list_master_items
103
+ FROM frm_list_master_items
104
104
  WHERE code = ?
105
105
  AND organization_id = ?`,
106
106
  [STATUS_ACTIVE, loggedInUser?.organization_id || -1],
@@ -449,7 +449,7 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
449
449
  ): Promise<number> {
450
450
  let tableName: string;
451
451
  if (ENTITYTYPE_ENTITYMASTER === entityType) {
452
- tableName = 'cr_entity_master';
452
+ tableName = 'frm_entity_master';
453
453
  } else {
454
454
  const entityMaster = await this.entityMasterService.getEntityData(
455
455
  entityType,
@@ -12,9 +12,9 @@ export class PopulateMetaService {
12
12
  // async populateMetaData(organization_id: number) {
13
13
  // // Define metadata tables
14
14
  // const metadataTables = [
15
- // 'cr_entity_master',
16
- // 'cr_entity_attribute',
17
- // 'cr_entity_table',
15
+ // 'frm_entity_master',
16
+ // 'frm_entity_attribute',
17
+ // 'frm_entity_table',
18
18
  // ];
19
19
 
20
20
  // // Fetch and transform all factory data
@@ -53,15 +53,15 @@ export class PopulateMetaService {
53
53
 
54
54
  async populateMetaData(organization_id: number) {
55
55
  const metadataTables = [
56
- 'cr_entity_master',
57
- 'cr_entity_attribute',
58
- 'cr_entity_view',
59
- 'cr_entity_relation',
56
+ 'frm_entity_master',
57
+ 'frm_entity_attribute',
58
+ 'frm_entity_view',
59
+ 'frm_entity_relation',
60
60
  ];
61
61
  const entityTypeToNewIdMap = new Map<string, number>();
62
62
 
63
63
  const getStatus = await this.dataSource.query(
64
- `SELECT * FROM cr_list_master_items WHERE organization_id = ${organization_id} AND code = "STATUS_ACTIVE"`,
64
+ `SELECT * FROM frm_list_master_items WHERE organization_id = ${organization_id} AND code = "STATUS_ACTIVE"`,
65
65
  );
66
66
  const status = getStatus[0]?.id ? getStatus[0].id : 'ACTIVE';
67
67
 
@@ -75,7 +75,7 @@ export class PopulateMetaService {
75
75
 
76
76
  let transformedData;
77
77
 
78
- if (table === 'cr_entity_master') {
78
+ if (table === 'frm_entity_master') {
79
79
  transformedData = factoryData.map(
80
80
  ({ id, created_date, modified_date, ...rest }) => ({
81
81
  ...rest,
@@ -86,7 +86,7 @@ export class PopulateMetaService {
86
86
  status: status,
87
87
  }),
88
88
  );
89
- } else if (table === 'cr_entity_attribute') {
89
+ } else if (table === 'frm_entity_attribute') {
90
90
  transformedData = factoryData.map(
91
91
  ({ id, created_date, modified_date, ...rest }) => ({
92
92
  ...rest,
@@ -120,7 +120,7 @@ export class PopulateMetaService {
120
120
  }
121
121
 
122
122
  const entityTables = await this.dataSource.query(
123
- `SELECT * FROM cr_entity_table WHERE organization_id = -1 AND level_type = 'ORG' AND level_id = -1`,
123
+ `SELECT * FROM frm_entity_table WHERE organization_id = -1 AND level_type = 'ORG' AND level_id = -1`,
124
124
  );
125
125
 
126
126
  for (let entityTable of entityTables) {
@@ -136,14 +136,14 @@ export class PopulateMetaService {
136
136
  const insertResult = await this.dataSource
137
137
  .createQueryBuilder()
138
138
  .insert()
139
- .into('cr_entity_table')
139
+ .into('frm_entity_table')
140
140
  .values(entityTable)
141
141
  .execute();
142
142
 
143
143
  const newId = insertResult.identifiers[0].id; // or insertResult.raw.insertId if needed
144
144
 
145
145
  const entityTableColumns = await this.dataSource.query(
146
- `SELECT * FROM cr_entity_table_column WHERE organization_id = -1 AND level_type = 'ORG' AND level_id = -1 AND mapped_entity_type = '${mapped_entity_type}' AND display_type = '${display_type}'`,
146
+ `SELECT * FROM frm_entity_table_column WHERE organization_id = -1 AND level_type = 'ORG' AND level_id = -1 AND mapped_entity_type = '${mapped_entity_type}' AND display_type = '${display_type}'`,
147
147
  );
148
148
  for (const column of entityTableColumns) {
149
149
  const { id, created_date, modified_date, ...columnRest } = column;
@@ -159,7 +159,7 @@ export class PopulateMetaService {
159
159
  await this.dataSource
160
160
  .createQueryBuilder()
161
161
  .insert()
162
- .into('cr_entity_table_column')
162
+ .into('frm_entity_table_column')
163
163
  .values(newColumn)
164
164
  .execute();
165
165
  }
@@ -18,7 +18,7 @@ export class ResolverService {
18
18
  entityType: string,
19
19
  ): Promise<any> {
20
20
  const attributeItems = await this.dataSource.query(
21
- `SELECT * FROM cr_entity_attribute WHERE mapped_entity_type = ? AND organization_id = ?`,
21
+ `SELECT * FROM frm_entity_attribute WHERE mapped_entity_type = ? AND organization_id = ?`,
22
22
  [entityType, loggedInUser.organization_id],
23
23
  );
24
24
 
@@ -102,7 +102,7 @@ export class ResolverService {
102
102
 
103
103
  // fetch attribute meta only for the given attributeKey
104
104
  const [attr] = await this.dataSource.query(
105
- `SELECT * FROM cr_entity_attribute WHERE mapped_entity_type = ? AND organization_id = ? AND attribute_key = ?`,
105
+ `SELECT * FROM frm_entity_attribute WHERE mapped_entity_type = ? AND organization_id = ? AND attribute_key = ?`,
106
106
  [entityType, loggedInUser.organization_id, attrKey],
107
107
  );
108
108
 
@@ -111,7 +111,7 @@ export class ResolverService {
111
111
  // -------- ENTITY data_source_type --------
112
112
  if (attr.data_source_type === 'entity') {
113
113
  const [entityDef] = await this.dataSource.query(
114
- `SELECT * FROM cr_entity_master WHERE mapped_entity_type = ? AND organization_id = ?`,
114
+ `SELECT * FROM frm_entity_master WHERE mapped_entity_type = ? AND organization_id = ?`,
115
115
  [attr.datasource_list, loggedInUser.organization_id],
116
116
  );
117
117
 
@@ -158,7 +158,7 @@ export class ResolverService {
158
158
  const resolvedValues: string[] = [];
159
159
  for (const code of rawValue) {
160
160
  const [item] = await this.dataSource.query(
161
- `SELECT * FROM cr_list_master_items WHERE id = ? AND organization_id = ?`,
161
+ `SELECT * FROM frm_list_master_items WHERE id = ? AND organization_id = ?`,
162
162
  [code, loggedInUser.organization_id],
163
163
  );
164
164
  resolvedValues.push(item?.[attr.data_source_attribute] ?? code);
@@ -166,7 +166,7 @@ export class ResolverService {
166
166
  return resolvedValues;
167
167
  } else {
168
168
  const [item] = await this.dataSource.query(
169
- `SELECT * FROM cr_list_master_items WHERE id = ? AND organization_id = ?`,
169
+ `SELECT * FROM frm_list_master_items WHERE id = ? AND organization_id = ?`,
170
170
  [rawValue, loggedInUser.organization_id],
171
171
  );
172
172
  return item?.[attr.data_source_attribute] ?? rawValue;
@@ -192,7 +192,7 @@ export class ResolverService {
192
192
 
193
193
  // fetch attribute meta
194
194
  const [attr] = await this.dataSource.query(
195
- `SELECT * FROM cr_entity_attribute
195
+ `SELECT * FROM frm_entity_attribute
196
196
  WHERE mapped_entity_type = ? AND organization_id = ? AND attribute_key = ?`,
197
197
  [entityType, loggedInUser.organization_id, attrKey],
198
198
  );
@@ -202,7 +202,7 @@ export class ResolverService {
202
202
  // -------- ENTITY data_source_type --------
203
203
  if (attr.data_source_type === 'entity') {
204
204
  const [entityDef] = await this.dataSource.query(
205
- `SELECT * FROM cr_entity_master
205
+ `SELECT * FROM frm_entity_master
206
206
  WHERE mapped_entity_type = ? AND organization_id = ?`,
207
207
  [attr.datasource_list, loggedInUser.organization_id],
208
208
  );
@@ -228,7 +228,7 @@ export class ResolverService {
228
228
  // -------- MASTER data_source_type --------
229
229
  else if (attr.data_source_type === 'master') {
230
230
  const [item] = await this.dataSource.query(
231
- `SELECT id FROM cr_list_master_items
231
+ `SELECT id FROM frm_list_master_items
232
232
  WHERE ${attr.data_source_attribute} = ? AND organization_id = ?`,
233
233
  [displayValue, loggedInUser.organization_id],
234
234
  );
@@ -1,7 +1,7 @@
1
1
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
2
2
  import { Column, Entity } from 'typeorm';
3
3
 
4
- @Entity({ name: 'cr_notification' })
4
+ @Entity({ name: 'frm_notification' })
5
5
  export class NotificationData extends BaseEntity {
6
6
  @Column({ name: 'user_id', type: 'int', nullable: true })
7
7
  user_id: number | null;
@@ -19,7 +19,7 @@ export class EmailService {
19
19
  icsPayload?: any,
20
20
  ) {
21
21
  const template = await this.datasource
22
- .getRepository('cr_wf_comm_template')
22
+ .getRepository('frm_wf_comm_template')
23
23
  .findOne({ where: { code: 'OTP_TEMPLATE' } });
24
24
 
25
25
  if (!template) return;
@@ -72,9 +72,9 @@ export class EmailService {
72
72
  context?: any,
73
73
  icsPayload?: any,
74
74
  ) {
75
- // retrieve the rich_text from the database table cr_wf_comm_template for the given templateCode
75
+ // retrieve the rich_text from the database table frm_wf_comm_template for the given templateCode
76
76
  const template = await this.datasource
77
- .getRepository('cr_wf_comm_template')
77
+ .getRepository('frm_wf_comm_template')
78
78
  .findOne({ where: { code: templateCode } });
79
79
 
80
80
  if (!template) {
@@ -83,7 +83,7 @@ export class NotificationsService {
83
83
  let query = `
84
84
  SELECT
85
85
  n.*
86
- FROM cr_notification n
86
+ FROM frm_notification n
87
87
  WHERE n.user_id = ? AND n.level_id = ? AND n.level_type = ?
88
88
  `;
89
89
 
@@ -150,7 +150,7 @@ export class NotificationsService {
150
150
  const { id, level_id, level_type } = loggedInUser;
151
151
 
152
152
  const query = `
153
- UPDATE cr_notification
153
+ UPDATE frm_notification
154
154
  SET is_read = 1
155
155
  WHERE user_id = ? AND level_id = ? AND level_type = ? AND is_read = 0
156
156
  `;
@@ -1,6 +1,6 @@
1
1
  import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
2
2
 
3
- @Entity({ name: 'cr_list_master_api' })
3
+ @Entity({ name: 'frm_list_master_api' })
4
4
  export class ThirdPartyApiRegistry {
5
5
  @PrimaryGeneratedColumn()
6
6
  id: number;
@@ -2,7 +2,7 @@ import { ACTION_CATEGORY } from 'src/constant/global.constant';
2
2
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
3
3
  import { Column, Entity } from 'typeorm';
4
4
 
5
- @Entity({ name: 'cr_wf_action_category' })
5
+ @Entity({ name: 'frm_wf_action_category' })
6
6
  export class ActionCategory extends BaseEntity {
7
7
  constructor() {
8
8
  super();
@@ -1,7 +1,7 @@
1
1
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
2
2
  import { Column, Entity } from 'typeorm';
3
3
 
4
- @Entity({ name: 'cr_wf_action_data' })
4
+ @Entity({ name: 'frm_wf_action_data' })
5
5
  export class ActionDataEntity extends BaseEntity {
6
6
  constructor() {
7
7
  super();
@@ -5,7 +5,7 @@ import {
5
5
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
6
6
  import { Column, Entity } from 'typeorm';
7
7
 
8
- @Entity({ name: 'cr_wf_action_resources_mapping' })
8
+ @Entity({ name: 'frm_wf_action_resources_mapping' })
9
9
  export class ActionResourcesMapping extends BaseEntity {
10
10
  constructor() {
11
11
  super();
@@ -2,7 +2,7 @@ import { ACTION_TEMPLATE_MAPPING } from 'src/constant/global.constant';
2
2
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
3
3
  import { Column, Entity } from 'typeorm';
4
4
 
5
- @Entity({ name: 'cr_wf_action_template_mapping' })
5
+ @Entity({ name: 'frm_wf_action_template_mapping' })
6
6
  export class ActionTemplateMapping extends BaseEntity {
7
7
  constructor() {
8
8
  super();
@@ -2,7 +2,7 @@ import { ACTION } from 'src/constant/global.constant';
2
2
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
3
3
  import { Column, Entity } from 'typeorm';
4
4
 
5
- @Entity({ name: 'cr_wf_action' })
5
+ @Entity({ name: 'frm_wf_action' })
6
6
  export class ActionEntity extends BaseEntity {
7
7
  constructor() {
8
8
  super();
@@ -1,7 +1,7 @@
1
1
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
2
2
  import { Column, Entity } from 'typeorm';
3
3
 
4
- @Entity({ name: 'cr_activity_log' })
4
+ @Entity({ name: 'frm_activity_log' })
5
5
  export class ActivityLog extends BaseEntity {
6
6
  constructor() {
7
7
  super();
@@ -2,7 +2,7 @@ import { COMM_TEMPLATE } from 'src/constant/global.constant';
2
2
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
3
3
  import { Column, Entity } from 'typeorm';
4
4
 
5
- @Entity({ name: 'cr_wf_comm_template' })
5
+ @Entity({ name: 'frm_wf_comm_template' })
6
6
  export class CommTemplate extends BaseEntity {
7
7
  constructor() {
8
8
  super();
@@ -2,7 +2,7 @@ import { ENTITY_MODIFICATION } from 'src/constant/global.constant';
2
2
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
3
3
  import { Column, Entity } from 'typeorm';
4
4
 
5
- @Entity({ name: 'cr_wf_entity_modification' })
5
+ @Entity({ name: 'frm_wf_entity_modification' })
6
6
  export class EntityModification extends BaseEntity {
7
7
  constructor() {
8
8
  super();
@@ -1,7 +1,7 @@
1
1
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
2
2
  import { Column, Entity } from 'typeorm';
3
3
 
4
- @Entity({ name: 'cr_wf_form' })
4
+ @Entity({ name: 'frm_wf_form' })
5
5
  export class FormDataEntity extends BaseEntity {
6
6
  constructor() {
7
7
  super();
@@ -2,7 +2,7 @@ import { STAGE_ACTION_MAPPING } from 'src/constant/global.constant';
2
2
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
3
3
  import { Column, Entity } from 'typeorm';
4
4
 
5
- @Entity({ name: 'cr_wf_stage_action_mapping' })
5
+ @Entity({ name: 'frm_wf_stage_action_mapping' })
6
6
  export class StageActionMapping extends BaseEntity {
7
7
  constructor() {
8
8
  super();
@@ -2,7 +2,7 @@ import { STAGE_GROUP } from 'src/constant/global.constant';
2
2
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
3
3
  import { Column, Entity } from 'typeorm';
4
4
 
5
- @Entity({ name: 'cr_wf_stage_group' })
5
+ @Entity({ name: 'frm_wf_stage_group' })
6
6
  export class StageGroup extends BaseEntity {
7
7
  constructor() {
8
8
  super();
@@ -2,7 +2,7 @@ import { STAGE_MOVEMENT_DATA } from 'src/constant/global.constant';
2
2
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
3
3
  import { Column, Entity } from 'typeorm';
4
4
 
5
- @Entity({ name: 'cr_wf_stage_movement_data' })
5
+ @Entity({ name: 'frm_wf_stage_movement_data' })
6
6
  export class StageMovementData extends BaseEntity {
7
7
  constructor() {
8
8
  super();
@@ -2,7 +2,7 @@ import { STAGE } from 'src/constant/global.constant';
2
2
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
3
3
  import { Column, Entity } from 'typeorm';
4
4
 
5
- @Entity({ name: 'cr_wf_stage' })
5
+ @Entity({ name: 'frm_wf_stage' })
6
6
  export class Stage extends BaseEntity {
7
7
  constructor() {
8
8
  super();
@@ -1,7 +1,7 @@
1
1
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
2
2
  import { Column, Entity } from 'typeorm';
3
3
 
4
- @Entity({ name: 'cr_wf_task_data' })
4
+ @Entity({ name: 'frm_wf_task_data' })
5
5
  export class TaskDataEntity extends BaseEntity {
6
6
  constructor() {
7
7
  super();
@@ -1,6 +1,6 @@
1
1
  import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
2
2
 
3
- @Entity({ name: 'cr_wf_tem_attach_mapper' })
3
+ @Entity({ name: 'frm_wf_tem_attach_mapper' })
4
4
  export class TemplateAttach {
5
5
  constructor() {}
6
6
 
@@ -2,7 +2,7 @@ import { WORKFLOW_DATA } from 'src/constant/global.constant';
2
2
  import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
3
3
  import { Entity } from 'typeorm';
4
4
 
5
- @Entity({ name: 'cr_wf_data' })
5
+ @Entity({ name: 'frm_wf_data' })
6
6
  export class WorkFlowData extends BaseEntity {
7
7
  constructor() {
8
8
  super();
@@ -1,6 +1,6 @@
1
1
  import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
2
2
 
3
- @Entity({ name: 'cr_wf_level_mapping' })
3
+ @Entity({ name: 'frm_wf_level_mapping' })
4
4
  export class WorkflowLevelMappingEntity {
5
5
  constructor() {}
6
6