@kipicore/dbcore 1.1.644 → 1.1.645

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 (77) hide show
  1. package/dist/constants/app.d.ts +2 -14
  2. package/dist/constants/app.js +2 -17
  3. package/dist/interfaces/index.d.ts +0 -11
  4. package/dist/interfaces/index.js +0 -12
  5. package/dist/models/mongodb/index.d.ts +0 -1
  6. package/dist/models/mongodb/index.js +1 -4
  7. package/dist/models/psql/index.d.ts +0 -10
  8. package/dist/models/psql/index.js +1 -22
  9. package/dist/types/index.d.ts +0 -11
  10. package/dist/types/index.js +0 -12
  11. package/package.json +1 -1
  12. package/dist/interfaces/ageGroupInterface.d.ts +0 -9
  13. package/dist/interfaces/ageGroupInterface.js +0 -2
  14. package/dist/interfaces/assessmentTestInterface.d.ts +0 -24
  15. package/dist/interfaces/assessmentTestInterface.js +0 -2
  16. package/dist/interfaces/equipmentInterface.d.ts +0 -10
  17. package/dist/interfaces/equipmentInterface.js +0 -2
  18. package/dist/interfaces/facilityMasterInterface.d.ts +0 -9
  19. package/dist/interfaces/facilityMasterInterface.js +0 -2
  20. package/dist/interfaces/facilitySportInterface.d.ts +0 -6
  21. package/dist/interfaces/facilitySportInterface.js +0 -2
  22. package/dist/interfaces/skillInterface.d.ts +0 -15
  23. package/dist/interfaces/skillInterface.js +0 -2
  24. package/dist/interfaces/sportCategoryInterface.d.ts +0 -9
  25. package/dist/interfaces/sportCategoryInterface.js +0 -2
  26. package/dist/interfaces/sportInterface.d.ts +0 -10
  27. package/dist/interfaces/sportInterface.js +0 -2
  28. package/dist/interfaces/sportRoleInterface.d.ts +0 -11
  29. package/dist/interfaces/sportRoleInterface.js +0 -2
  30. package/dist/interfaces/sportSubCategoryInterface.d.ts +0 -10
  31. package/dist/interfaces/sportSubCategoryInterface.js +0 -2
  32. package/dist/interfaces/unitInterface.d.ts +0 -10
  33. package/dist/interfaces/unitInterface.js +0 -2
  34. package/dist/models/mongodb/assessmentTestModel.d.ts +0 -4
  35. package/dist/models/mongodb/assessmentTestModel.js +0 -72
  36. package/dist/models/psql/ageGroupModel.d.ts +0 -19
  37. package/dist/models/psql/ageGroupModel.js +0 -53
  38. package/dist/models/psql/equipmentModel.d.ts +0 -20
  39. package/dist/models/psql/equipmentModel.js +0 -57
  40. package/dist/models/psql/facilityMasterModel.d.ts +0 -18
  41. package/dist/models/psql/facilityMasterModel.js +0 -64
  42. package/dist/models/psql/facilitySportModel.d.ts +0 -12
  43. package/dist/models/psql/facilitySportModel.js +0 -51
  44. package/dist/models/psql/skillModel.d.ts +0 -25
  45. package/dist/models/psql/skillModel.js +0 -99
  46. package/dist/models/psql/sportCategoryModel.d.ts +0 -19
  47. package/dist/models/psql/sportCategoryModel.js +0 -53
  48. package/dist/models/psql/sportModel.d.ts +0 -20
  49. package/dist/models/psql/sportModel.js +0 -57
  50. package/dist/models/psql/sportRoleModel.d.ts +0 -21
  51. package/dist/models/psql/sportRoleModel.js +0 -70
  52. package/dist/models/psql/sportSubCategoryModel.d.ts +0 -20
  53. package/dist/models/psql/sportSubCategoryModel.js +0 -75
  54. package/dist/models/psql/unitModel.d.ts +0 -20
  55. package/dist/models/psql/unitModel.js +0 -57
  56. package/dist/types/ageGroupType.d.ts +0 -2
  57. package/dist/types/ageGroupType.js +0 -2
  58. package/dist/types/assessmentTestType.d.ts +0 -2
  59. package/dist/types/assessmentTestType.js +0 -2
  60. package/dist/types/equipmentType.d.ts +0 -2
  61. package/dist/types/equipmentType.js +0 -2
  62. package/dist/types/facilityMasterType.d.ts +0 -3
  63. package/dist/types/facilityMasterType.js +0 -2
  64. package/dist/types/facilitySportType.d.ts +0 -2
  65. package/dist/types/facilitySportType.js +0 -2
  66. package/dist/types/skillType.d.ts +0 -2
  67. package/dist/types/skillType.js +0 -2
  68. package/dist/types/sportCategoryType.d.ts +0 -2
  69. package/dist/types/sportCategoryType.js +0 -2
  70. package/dist/types/sportRoleType.d.ts +0 -2
  71. package/dist/types/sportRoleType.js +0 -2
  72. package/dist/types/sportSubCategoryType.d.ts +0 -2
  73. package/dist/types/sportSubCategoryType.js +0 -2
  74. package/dist/types/sportType.d.ts +0 -2
  75. package/dist/types/sportType.js +0 -2
  76. package/dist/types/unitType.d.ts +0 -2
  77. package/dist/types/unitType.js +0 -2
@@ -1,20 +0,0 @@
1
- import { Model } from 'sequelize';
2
- import { IUnitModelAttributes } from '../../interfaces/unitInterface';
3
- import { TUnitModelCreationAttributes } from '../../types/unitType';
4
- import { COMMAN_STATUS } from '../../constants/app';
5
- export declare class UnitModel extends Model<IUnitModelAttributes, TUnitModelCreationAttributes> {
6
- id: string;
7
- name: string;
8
- code: string;
9
- symbol: string;
10
- description?: string;
11
- status: COMMAN_STATUS;
12
- createdBy?: string;
13
- updatedBy?: string;
14
- deletedBy?: string;
15
- readonly createdAt: Date;
16
- readonly updatedAt: Date;
17
- readonly deletedAt?: string;
18
- static associate(models: any): void;
19
- }
20
- export default UnitModel;
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnitModel = void 0;
4
- const sequelize_1 = require("sequelize");
5
- const index_1 = require("./index");
6
- class UnitModel extends sequelize_1.Model {
7
- static associate(models) {
8
- const { UserModel } = models;
9
- UnitModel.belongsTo(UserModel, {
10
- foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
11
- as: 'createdByUser',
12
- });
13
- UnitModel.belongsTo(UserModel, {
14
- foreignKey: { name: 'updatedBy', allowNull: true, field: 'updated_by' },
15
- as: 'updatedByUser',
16
- });
17
- UnitModel.belongsTo(UserModel, {
18
- foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
19
- as: 'deletedByUser',
20
- });
21
- }
22
- }
23
- exports.UnitModel = UnitModel;
24
- UnitModel.init({
25
- id: {
26
- type: sequelize_1.DataTypes.UUID,
27
- defaultValue: sequelize_1.DataTypes.UUIDV4,
28
- allowNull: false,
29
- primaryKey: true,
30
- },
31
- name: {
32
- type: sequelize_1.DataTypes.STRING,
33
- allowNull: true,
34
- },
35
- code: {
36
- type: sequelize_1.DataTypes.STRING,
37
- allowNull: true,
38
- },
39
- symbol: {
40
- type: sequelize_1.DataTypes.STRING,
41
- allowNull: true,
42
- },
43
- description: {
44
- type: sequelize_1.DataTypes.TEXT,
45
- allowNull: true,
46
- },
47
- status: {
48
- type: sequelize_1.DataTypes.STRING,
49
- allowNull: true,
50
- },
51
- }, {
52
- modelName: 'UnitModel',
53
- tableName: 'units',
54
- timestamps: true,
55
- sequelize: index_1.sequelize,
56
- });
57
- exports.default = UnitModel;
@@ -1,2 +0,0 @@
1
- import { IAgeGroupModelAttributes } from '../interfaces/ageGroupInterface';
2
- export type TAgeGroupModelCreationAttributes = Partial<IAgeGroupModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { IAssessmentTestModelAttributes } from '../interfaces/assessmentTestInterface';
2
- export type TAssessmentTestModelCreationAttributes = Partial<IAssessmentTestModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { IEquipmentModelAttributes } from '../interfaces/equipmentInterface';
2
- export type TEquipmentModelCreationAttributes = Partial<IEquipmentModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import { Optional } from 'sequelize';
2
- import { IFacilityMasterModelAttributes } from '../interfaces/facilityMasterInterface';
3
- export type TFacilityMasterModelCreationAttributes = Optional<IFacilityMasterModelAttributes, 'id' | 'createdBy' | 'updatedBy' | 'deletedBy' | 'createdAt' | 'updatedAt' | 'deletedAt'>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { IFacilitySportModelAttributes } from '../interfaces/facilitySportInterface';
2
- export type TFacilitySportModelCreationAttributes = Partial<IFacilitySportModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { ISkillModelAttributes } from '../interfaces/skillInterface';
2
- export type TSkillModelCreationAttributes = Partial<ISkillModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { ISportCategoryModelAttributes } from '../interfaces/sportCategoryInterface';
2
- export type TSportCategoryModelCreationAttributes = Partial<ISportCategoryModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { ISportRoleModelAttributes } from '../interfaces/sportRoleInterface';
2
- export type TSportRoleModelCreationAttributes = Partial<ISportRoleModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { ISportSubCategoryModelAttributes } from '../interfaces/sportSubCategoryInterface';
2
- export type TSportSubCategoryModelCreationAttributes = Partial<ISportSubCategoryModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { ISportModelAttributes } from '../interfaces/sportInterface';
2
- export type TSportModelCreationAttributes = Partial<ISportModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { IUnitModelAttributes } from '../interfaces/unitInterface';
2
- export type TUnitModelCreationAttributes = Partial<IUnitModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });