@kipicore/dbcore 1.1.715 → 1.1.717
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.
- package/dist/constants/app.d.ts +4 -9
- package/dist/constants/app.js +11 -16
- package/dist/db/psql/migrations/20260807060400-add-amenity-id-to-sport-group-data.js +32 -0
- package/dist/db/psql/migrations/20260807093838-create-sport-academy-working-day.d.ts +2 -0
- package/dist/db/psql/migrations/20260807093838-create-sport-academy-working-day.js +170 -0
- package/dist/interfaces/index.d.ts +1 -3
- package/dist/interfaces/index.js +1 -3
- package/dist/interfaces/sportAcademyWorkingDayInterface.d.ts +11 -0
- package/dist/interfaces/sportGroupDataInterface.d.ts +2 -1
- package/dist/models/mongodb/index.d.ts +0 -2
- package/dist/models/mongodb/index.js +1 -5
- package/dist/models/psql/index.d.ts +1 -1
- package/dist/models/psql/index.js +3 -3
- package/dist/models/psql/sportAcademyWorkingDayModel.d.ts +21 -0
- package/dist/models/psql/sportAcademyWorkingDayModel.js +66 -0
- package/dist/models/psql/sportGroupDataModel.d.ts +1 -0
- package/dist/models/psql/sportGroupDataModel.js +13 -0
- package/dist/models/psql/tokenModel.js +0 -5
- package/dist/types/index.d.ts +1 -3
- package/dist/types/index.js +1 -3
- package/dist/types/sportAcademyWorkingDayType.d.ts +3 -0
- package/package.json +1 -1
- package/dist/db/psql/migrations/20260803134947-create-health-checkup-templates.d.ts +0 -2
- package/dist/db/psql/migrations/20260803134947-create-health-checkup-templates.js +0 -71
- package/dist/db/psql/migrations/20260806144500-add_user_id_to_tokens.js +0 -22
- package/dist/interfaces/healthCheckupRecordInterface.d.ts +0 -9
- package/dist/interfaces/healthCheckupTemplateInterface.d.ts +0 -23
- package/dist/interfaces/healthCheckupVisitInterface.d.ts +0 -9
- package/dist/interfaces/healthCheckupVisitInterface.js +0 -2
- package/dist/models/mongodb/HealthCheckupRecordModel.d.ts +0 -4
- package/dist/models/mongodb/HealthCheckupRecordModel.js +0 -62
- package/dist/models/mongodb/HealthCheckupTemplateModel.d.ts +0 -4
- package/dist/models/mongodb/HealthCheckupTemplateModel.js +0 -70
- package/dist/models/psql/healthCheckupVisitModel.d.ts +0 -11
- package/dist/models/psql/healthCheckupVisitModel.js +0 -82
- package/dist/types/healthCheckupRecordType.d.ts +0 -11
- package/dist/types/healthCheckupRecordType.js +0 -2
- package/dist/types/healthCheckupTemplateType.d.ts +0 -6
- package/dist/types/healthCheckupTemplateType.js +0 -2
- package/dist/types/healthCheckupVisitType.d.ts +0 -7
- package/dist/types/healthCheckupVisitType.js +0 -2
- /package/dist/db/psql/migrations/{20260806144500-add_user_id_to_tokens.d.ts → 20260807060400-add-amenity-id-to-sport-group-data.d.ts} +0 -0
- /package/dist/interfaces/{healthCheckupRecordInterface.js → sportAcademyWorkingDayInterface.js} +0 -0
- /package/dist/{interfaces/healthCheckupTemplateInterface.js → types/sportAcademyWorkingDayType.js} +0 -0
package/dist/constants/app.d.ts
CHANGED
|
@@ -288,6 +288,10 @@ export declare enum WORKIN_DAY_STATUS {
|
|
|
288
288
|
ACTIVE = "ACTIVE",
|
|
289
289
|
INACTIVE = "INACTIVE"
|
|
290
290
|
}
|
|
291
|
+
export declare enum SPORTS_ACADEMY_WORKING_DAY_STATUS {
|
|
292
|
+
ACTIVE = "ACTIVE",
|
|
293
|
+
INACTIVE = "INACTIVE"
|
|
294
|
+
}
|
|
291
295
|
export declare enum SCHOOL_SHIFT {
|
|
292
296
|
MORNING = "MORNING",
|
|
293
297
|
NOON = "NOON"
|
|
@@ -1918,12 +1922,3 @@ export declare enum MSG_FROM_TYPE {
|
|
|
1918
1922
|
KIPI_VERSE = "KIPI_VERSE",
|
|
1919
1923
|
EDZYME_TECH = "EDZYME_TECH"
|
|
1920
1924
|
}
|
|
1921
|
-
export declare enum HEALTH_TEMPLATE_MODEL_TYPE {
|
|
1922
|
-
TEXT = "TEXT",
|
|
1923
|
-
NUMBER = "NUMBER",
|
|
1924
|
-
DATE = "DATE",
|
|
1925
|
-
SELECT = "SELECT",
|
|
1926
|
-
CHECKBOX = "CHECKBOX",
|
|
1927
|
-
REDIO = "REDIO",
|
|
1928
|
-
BOOLEAN = "BOOLEAN"
|
|
1929
|
-
}
|
package/dist/constants/app.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OFFER_NAME = exports.OFFER_TYPE = exports.INSTITUTE_STATUS = exports.FEE_PAYMENT_STATUS = exports.STUDENT_FEE_COLLECTION_STATUS = exports.PAYMENT_TYPE = exports.FEE_TYPE_FREQUENCY = exports.FEE_REMINDER_SETTING_FREQUENCY = exports.FEE_REMINDER_SETTING_TYPE = exports.TERM_DURATION = exports.FEE_REMINDER_SETTING_STATUS = exports.GREETING_TYPE = exports.TRIP_TYPE = exports.USER_COURSE_STATUS = exports.OFFER_COMMAND_STATUS = exports.LOCATION_TYPE = exports.RMS_AMC_SERVICE_STATUS = exports.RELATION = exports.RMS_AMC_CONTRACT_STATUS = exports.RMS_BUDGET_STATUS = exports.RMS_FACILITY_STATUS = exports.PLAN_SELL_STATUS = exports.AMENITY_STATUS = exports.COMMAN_STATUS = exports.TOKEN_TYPES = exports.SUB_USER_TYPES = exports.USER_TYPES = exports.ACADEMIC_CALENDARS_TYPE = exports.RETURN_STATUS = exports.ASSIGN_TYPE = exports.GENDER = exports.SCHOOL_SUB_TYPE = exports.SCHOOL_TYPE = exports.ATTENDANCE_TYPE = exports.ATTENDANCE_STATUS = exports.USER_INVENTORY_ACTION = exports.INVENTORY_TYPE = exports.USER_STATUS = exports.PDF_MICRO_SERVICE_END_POINT = exports.MOBILE_VERIFICATION = exports.EMAIL_VERIFICATION = exports.PAGINATION_UPDATE_ORDER = exports.PAGINATION_ORDER = exports.DEFAULT_BATCH_TITLE = exports.DEFAULT_CLASS_ROOM_TITLE = exports.PAGINATION = exports.USER_INSTITUTE_META_STATUS_REJECTED_COUNT = exports.ONE_THOUSAND = exports.ONE_HUNDRED = exports.SIXTY = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
4
|
+
exports.COURSE_STATUS = exports.EXAM_MODE = exports.GREETING_STATUS = exports.USER_HAS_ANNOUCEMENT_STATUS = exports.ANNOUCEMENT_STATUS = exports.TYPE_OF_USER = exports.ANNOUCEMENT_SCHEDULE_TYPE = exports.SPORT_DATA_ACTION = exports.SPORT_DATA_MODULE = exports.SPORT_DATA_APPROVAL_STATUS = exports.APPROVE_REQUEST_STATUS = exports.APPROVE_REQUEST_ACTION = exports.TYPE_MANAGEMENT_STATUS = exports.TYPE_MANAGEMENT_TYPE = exports.FILE_TYPE = exports.ACADEMIC_CALENDARS_STATUS = exports.BANNER_TYPE = exports.APP_TYPE = exports.FEED_BACK_STATUS = exports.FEED_BACK_TYPE = exports.FACILITY_MASTER_TYPE = exports.FACILITY_TYPE = exports.EMPLOYMENT_TYPE = exports.PRODUCT_META_STATUS = exports.VENDOR_COMPANY_TYPE = exports.VENDOR_COMPANY_META_STATUS = exports.USER_ACADEMY_META_STATUS = exports.USER_INSTITUTE_META_STATUS = exports.USER_HAS_PARENT_STATUS = exports.GUARDIANS_USER_META_MODEL_STATUS = exports.DISABILITY_TYPE = exports.WORK_CATEGORY = exports.BLOG_STATUS = exports.WORK_TYPE = exports.USER_DETAILS = exports.NO_TYPE = exports.ADMISSION_TYPE = exports.INSTITUTE_ENTITY_TYPE_SEQUENCE = exports.INSTITUTE_ENTITY_TYPE_STATUS = exports.INSTITUTE_ENTITY_STATUS = exports.SCHOOL_SHIFT = exports.SPORTS_ACADEMY_WORKING_DAY_STATUS = exports.WORKIN_DAY_STATUS = exports.LEAVE_STATUS = exports.LEAVE = exports.LEAVE_TYPE = exports.OFFER_STATUS = exports.OFFER_CONDITION_TYPE = exports.OFFER_CATEGORY = exports.OFFER_APPLICABLE_TO = void 0;
|
|
5
|
+
exports.PDF_TEMPLATES = exports.EMAIL_TEMPLATES = exports.PINCODE_API_URL = exports.APPLE_AUTH = exports.META_AUTH = exports.GOOGLE_AUTH = exports.API_URL = exports.DEFAULT_USER_LOGO = exports.DEFAULT_INSTITUTED_LOGO = exports.UPLOAD_PATH = exports.SVG_URL_PATH = exports.TO_DO_STATUS = exports.LECTURE_TITLE = exports.LECTURE_STATUS = exports.SCHOOL_INFORMATION_STEP = exports.CASTE = exports.RELIGION_CASTE = exports.NATIONALITY = exports.CATEGORY = exports.IS_PRINCIPAL = exports.FEE_TYPE = exports.BOOLEAN_STATUS = exports.PROPERTY_STATUS = exports.DESIGNATION_OF_PERSON = exports.TRUST_REGISTERED_UNDER = exports.TRUST_TYPE = exports.SVA_NAME = exports.QDC_NAME = exports.USER_PAYOUT_TYPE = exports.PARENTS_CHILDREN_CURRENT = exports.CHAPTER_INDEX_FILE_TYPE = exports.FEE_HISTORY_STATUS = exports.USER_CHAPTER_INDEX_STATUS = exports.CHAPTER_INDEX_TYPE = exports.IMAGE__NAME = exports.INQUIRY_STATUS = exports.INQUIRY_REFERRED_BY = exports.EXAM_GROUP_STANDARD_RESULT = exports.EXAM_GROUP_STATUS = exports.SUBJECT_INDEX_TYPE = exports.LECTURE_SLOT_DURATION = exports.EXAM_ANSWER_SHEET_QUESTION_RESULT = exports.PAYMENT_TERMS_TYPE = exports.PAYMENT_TERMS_STATUS = exports.EXAM_ANSWER_SHEET_RESULT_TYPE = exports.EXAM_ANSWER_SHEET_RESULT_STATUS = exports.EXAM_ANSWER_SHEET_STATUS = exports.EXAM_VALID_ANSWER_TYPE = exports.EXAM_ANSWER_SELECTION_TYPE = exports.EXAM_STATUS = void 0;
|
|
6
|
+
exports.LOST_FOUND_ITEM_STATUS = exports.PAYMENT_PROCESSING_CALLBACK_URL = exports.PAYMENT_PROCESSING_PAGE_URL = exports.PAYMENT_PROCESSING_STATUS_URL = exports.WALLET_TRANSACTION_VALID_DATE_FOR_OTP_IN_MINUTES = exports.WALLET_TRANSACTION_VALID_DATE_IN_MINUTES = exports.PAYMENT_METHODS = exports.PAYMENT_GATEWAY_TYPES = exports.JOB_ACTION = exports.ONE_GB_BYTES = exports.CHARGE_PER_TRANSACTION_ITEM_UNIT = exports.INSTITUTE_SUBSCRIPTION_PLAN_STATUS = exports.WALLET_TRANSACTION_USERS_TYPE = exports.WALLET_HISTORY_STATUS = exports.WALLET_HISTORY_ACTION = exports.WALLET_HISTORY_ITEM_TYPE = exports.WALLET_HISTORY_TYPE = exports.REPLACE_TEACHER_STATUS = exports.TEACHER_TYPE = exports.INVOICE_TYPE = exports.PURCHASE_STATUS = exports.COLUMN_LIST_TITLE = exports.INVOICE_PAYMENT_TYPE = exports.PDF_CHEQUE_FREQUENCY = exports.PDF_CHEQUE_STATUS = exports.LANGUAGES = exports.HOME_WORK_STATUS = exports.SOCKET_EVENTS = exports.SUBSCRIPTION_PLAN_FILES_TYPE = exports.VALID_CURRENCY = exports.SUBSCRIPTION_PLAN_TYPE = exports.SUBSCRIPTION_PLAN_CHARGE_INTERVAL = exports.DISCOUNT_TYPE = exports.CONTACT_FEED_BACK_TYPE = exports.PLANNER_SYNC_STATUS = exports.RMS_NOTIFICATION_DAYS = exports.NOTIFICATION_ACTION = exports.ONLINE_EXAM_NOTIFICATION_TYPE = exports.NOTIFICATION_MODULE_TYPE = exports.NOTIFICATION_STATUS = exports.NOTIFICATION_TYPE = exports.PROJECT_ASSESSMENT_OPTION_STATUS = exports.USER_BOOK_ASSESSMENT_STATUS = exports.BOOK_ASSESSMENT_DATE_STATUS = exports.TASK_MANAGEMENT_STATUS = exports.USER_DETAILS_FILED = exports.DEVICE_TYPE = exports.templateKeyWord = exports.bankAccountRegexMap = exports.EMAIL_SUBJECTS = void 0;
|
|
7
|
+
exports.VIDEO_DIRECTION_TYPE = exports.VIDEO_EVENT_TYPE = exports.USER_HAS_PENALTY_TITLE = exports.USER_HAS_PENALTY_TYPE = exports.PAYOUT_STATUS = exports.NOTICEBOARD_STATUS = exports.NOTICEBOARD_TYPE = exports.PERMISSION_TYPE = exports.NOTIFICATION_SEND_STATUS = exports.MEMBERSHIP_STATUS = exports.COMMUNITY_TYPE = exports.DESIGNATION_TYPE = exports.ADDITIONAL_PAYOUT_TYPE = exports.POSTAL_DISPATCH_STATUS = exports.CALL_TYPE = exports.SEARCH_TYPE = exports.REPORT_TYPE = exports.DEVICE_TYPE_APP_ANALYTICS = exports.APP_ANALYTICS_EVENT_TYPE = exports.EXPORT_SHEET_TYPE = exports.GRANT_AND_DONATION_TYPE = exports.TICKET_RAISE_PRIORITY = exports.TICKET_RAISE_STATUS = exports.TERM_AND_CONDITION_STATUS = exports.EDUCATION_OFFICER_TYPE = exports.HOME_WORK_TYPE = exports.STUDENT_FEE_PROCESS_STATUS = exports.FEE_COLLECTION_TYPE = exports.BANK_ACCOUNT_TYPE = exports.STUDENT_LEAVE_TYPE = exports.STUDENT_LEAVE_STATUS = exports.CERTIFICATE_TYPE = exports.CERTIFICATE_FOR = exports.SHEET_TYPE = exports.COMPETITION_USER_ROLE = exports.RESULT_STATUS = exports.COMPETITION_STATUS = exports.STATUS_BY_PARENTS = exports.COMPETITION_TYPE = exports.CAMPUS_CARNIVAL_STATUS = exports.COMPETITION_TYPE_CATEGORY = exports.COMPETITION_EVENTS = exports.PAYMENT_STATUS = exports.INCOME_EXPENSE_SOURCE = exports.INCOME_EXPENSE_TYPE = exports.APPOINTMENT_STATUS = exports.MAINTENANCE_MODULE_NAME = exports.MAINTENANCE_TYPE = exports.MAINTENANCE_MODE = exports.ASSIGN_FILE_TYPE = void 0;
|
|
8
|
+
exports.AccountAuditAction = exports.AccountBudgetType = exports.AccountTaxDirection = exports.AccountFundType = exports.AccountSyncAction = exports.AccountIntegrationProvider = exports.AccountApprovalActionType = exports.AccountDepreciationMethod = exports.AccountMatchStatus = exports.AccountExpensePaymentStatus = exports.AccountPaymentMode = exports.AccountVoucherTypeCode = exports.AccountCostCenterRefType = exports.AccountCostCenterType = exports.AccountPartyMode = exports.AccountPartyType = exports.AccountSourceModule = exports.AccountPostingEventStatus = exports.AccountBalanceType = exports.AccountApprovalStatus = exports.AccountVoucherStatus = exports.AccountLedgerType = exports.AccountNormalBalance = exports.AccountNature = exports.CONTACT_INTEREST_STATUS = exports.CONTACT_INTEREST_TYPE = exports.RMS_EXPENSE_TYPE = exports.RMS_DIGITAL_STATUS = exports.RMS_BOOKING_STATUS = exports.RMS_TICKET_PRIORITY = exports.RMS_TICKET_STATUS = exports.REFUND_ENTITY_TYPE = exports.REFUND_STATUS = exports.FINAL_RESULT_TYPE = exports.FINAL_RESULT = exports.GRADE = exports.RMS_STOCK_SCOPE = exports.RMS_AUDIT_ACTION = exports.RMS_ASSET_LIFECYCLE = exports.RMS_PO_FULFILLMENT_STATUS = exports.RMS_GRN_ACTION_TYPE = exports.RMS_PRIORITY = exports.RMS_APPROVAL_STATUS = exports.RMS_TRANSACTION_TYPE = exports.RMS_RESOURCE_UNIT = exports.RMS_RESOURCE_TYPE = exports.RMS_ASSET_CONDITION = exports.CERTIFICATE_REQUEST_TYPE = exports.CERTIFICATE_REQUEST_STATUS = exports.FEE_SUBMISSION_STATUS = void 0;
|
|
9
|
+
exports.MSG_FROM_TYPE = exports.AI_MODEL_KEY_TYPES = exports.AI_MODEL_KEYS = exports.CATEGORY_TYPE = exports.STUDENT_SPORT_TEST_STATUS = exports.ASSESSMENT_TEST_STATUS = exports.BETTER_VALUE_TYPE = exports.APK_TYPE = void 0;
|
|
10
10
|
const env_1 = require("../configs/env");
|
|
11
11
|
exports.SIXTY = 60;
|
|
12
12
|
exports.ONE_HUNDRED = 100;
|
|
@@ -351,6 +351,11 @@ var WORKIN_DAY_STATUS;
|
|
|
351
351
|
WORKIN_DAY_STATUS["ACTIVE"] = "ACTIVE";
|
|
352
352
|
WORKIN_DAY_STATUS["INACTIVE"] = "INACTIVE";
|
|
353
353
|
})(WORKIN_DAY_STATUS || (exports.WORKIN_DAY_STATUS = WORKIN_DAY_STATUS = {}));
|
|
354
|
+
var SPORTS_ACADEMY_WORKING_DAY_STATUS;
|
|
355
|
+
(function (SPORTS_ACADEMY_WORKING_DAY_STATUS) {
|
|
356
|
+
SPORTS_ACADEMY_WORKING_DAY_STATUS["ACTIVE"] = "ACTIVE";
|
|
357
|
+
SPORTS_ACADEMY_WORKING_DAY_STATUS["INACTIVE"] = "INACTIVE";
|
|
358
|
+
})(SPORTS_ACADEMY_WORKING_DAY_STATUS || (exports.SPORTS_ACADEMY_WORKING_DAY_STATUS = SPORTS_ACADEMY_WORKING_DAY_STATUS = {}));
|
|
354
359
|
var SCHOOL_SHIFT;
|
|
355
360
|
(function (SCHOOL_SHIFT) {
|
|
356
361
|
SCHOOL_SHIFT["MORNING"] = "MORNING";
|
|
@@ -2292,13 +2297,3 @@ var MSG_FROM_TYPE;
|
|
|
2292
2297
|
MSG_FROM_TYPE["KIPI_VERSE"] = "KIPI_VERSE";
|
|
2293
2298
|
MSG_FROM_TYPE["EDZYME_TECH"] = "EDZYME_TECH";
|
|
2294
2299
|
})(MSG_FROM_TYPE || (exports.MSG_FROM_TYPE = MSG_FROM_TYPE = {}));
|
|
2295
|
-
var HEALTH_TEMPLATE_MODEL_TYPE;
|
|
2296
|
-
(function (HEALTH_TEMPLATE_MODEL_TYPE) {
|
|
2297
|
-
HEALTH_TEMPLATE_MODEL_TYPE["TEXT"] = "TEXT";
|
|
2298
|
-
HEALTH_TEMPLATE_MODEL_TYPE["NUMBER"] = "NUMBER";
|
|
2299
|
-
HEALTH_TEMPLATE_MODEL_TYPE["DATE"] = "DATE";
|
|
2300
|
-
HEALTH_TEMPLATE_MODEL_TYPE["SELECT"] = "SELECT";
|
|
2301
|
-
HEALTH_TEMPLATE_MODEL_TYPE["CHECKBOX"] = "CHECKBOX";
|
|
2302
|
-
HEALTH_TEMPLATE_MODEL_TYPE["REDIO"] = "REDIO";
|
|
2303
|
-
HEALTH_TEMPLATE_MODEL_TYPE["BOOLEAN"] = "BOOLEAN";
|
|
2304
|
-
})(HEALTH_TEMPLATE_MODEL_TYPE || (exports.HEALTH_TEMPLATE_MODEL_TYPE = HEALTH_TEMPLATE_MODEL_TYPE = {}));
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
module.exports = {
|
|
3
|
+
up: async (queryInterface, Sequelize) => {
|
|
4
|
+
const tableName = 'sport_group_data';
|
|
5
|
+
const tableExists = await queryInterface
|
|
6
|
+
.describeTable(tableName)
|
|
7
|
+
.then(() => true)
|
|
8
|
+
.catch(() => false);
|
|
9
|
+
if (tableExists) {
|
|
10
|
+
const tableDefinition = await queryInterface.describeTable(tableName);
|
|
11
|
+
if (!tableDefinition['amenity_id']) {
|
|
12
|
+
await queryInterface.addColumn(tableName, 'amenity_id', {
|
|
13
|
+
type: Sequelize.UUID,
|
|
14
|
+
allowNull: true,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
down: async (queryInterface, Sequelize) => {
|
|
20
|
+
const tableName = 'sport_group_data';
|
|
21
|
+
const tableExists = await queryInterface
|
|
22
|
+
.describeTable(tableName)
|
|
23
|
+
.then(() => true)
|
|
24
|
+
.catch(() => false);
|
|
25
|
+
if (tableExists) {
|
|
26
|
+
const tableDefinition = await queryInterface.describeTable(tableName);
|
|
27
|
+
if (tableDefinition['amenity_id']) {
|
|
28
|
+
await queryInterface.removeColumn(tableName, 'amenity_id');
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const tableName = 'sport_academy_working_days';
|
|
4
|
+
const tableExists = await queryInterface
|
|
5
|
+
.describeTable(tableName)
|
|
6
|
+
.then(() => true)
|
|
7
|
+
.catch(() => false);
|
|
8
|
+
if (!tableExists) {
|
|
9
|
+
await queryInterface.createTable(tableName, {
|
|
10
|
+
id: {
|
|
11
|
+
type: Sequelize.UUID,
|
|
12
|
+
defaultValue: Sequelize.UUIDV4,
|
|
13
|
+
allowNull: false,
|
|
14
|
+
primaryKey: true,
|
|
15
|
+
},
|
|
16
|
+
dayName: {
|
|
17
|
+
type: Sequelize.STRING(20),
|
|
18
|
+
allowNull: true,
|
|
19
|
+
field: 'day_name',
|
|
20
|
+
},
|
|
21
|
+
dayOfWeek: {
|
|
22
|
+
type: Sequelize.INTEGER,
|
|
23
|
+
allowNull: true,
|
|
24
|
+
field: 'day_of_week',
|
|
25
|
+
},
|
|
26
|
+
status: {
|
|
27
|
+
type: Sequelize.STRING(30),
|
|
28
|
+
allowNull: true,
|
|
29
|
+
defaultValue: 'INACTIVE',
|
|
30
|
+
},
|
|
31
|
+
startTime: {
|
|
32
|
+
type: Sequelize.DATE,
|
|
33
|
+
allowNull: true,
|
|
34
|
+
field: 'start_time',
|
|
35
|
+
},
|
|
36
|
+
endTime: {
|
|
37
|
+
type: Sequelize.DATE,
|
|
38
|
+
allowNull: true,
|
|
39
|
+
field: 'end_time',
|
|
40
|
+
},
|
|
41
|
+
sportAcademyId: {
|
|
42
|
+
type: Sequelize.STRING,
|
|
43
|
+
allowNull: true,
|
|
44
|
+
field: 'sport_academy_id',
|
|
45
|
+
},
|
|
46
|
+
createdBy: {
|
|
47
|
+
type: Sequelize.UUID,
|
|
48
|
+
allowNull: true,
|
|
49
|
+
field: 'created_by',
|
|
50
|
+
},
|
|
51
|
+
updatedBy: {
|
|
52
|
+
type: Sequelize.UUID,
|
|
53
|
+
allowNull: true,
|
|
54
|
+
field: 'updated_by',
|
|
55
|
+
},
|
|
56
|
+
deletedBy: {
|
|
57
|
+
type: Sequelize.UUID,
|
|
58
|
+
allowNull: true,
|
|
59
|
+
field: 'deleted_by',
|
|
60
|
+
},
|
|
61
|
+
createdAt: {
|
|
62
|
+
type: Sequelize.DATE,
|
|
63
|
+
allowNull: false,
|
|
64
|
+
field: 'created_at',
|
|
65
|
+
},
|
|
66
|
+
updatedAt: {
|
|
67
|
+
type: Sequelize.DATE,
|
|
68
|
+
allowNull: false,
|
|
69
|
+
field: 'updated_at',
|
|
70
|
+
},
|
|
71
|
+
deletedAt: {
|
|
72
|
+
type: Sequelize.DATE,
|
|
73
|
+
allowNull: true,
|
|
74
|
+
field: 'deleted_at',
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
const tableDefinition = await queryInterface.describeTable(tableName);
|
|
80
|
+
const columnsToAdd = {
|
|
81
|
+
id: {
|
|
82
|
+
type: Sequelize.UUID,
|
|
83
|
+
defaultValue: Sequelize.UUIDV4,
|
|
84
|
+
allowNull: false,
|
|
85
|
+
primaryKey: true,
|
|
86
|
+
},
|
|
87
|
+
dayName: {
|
|
88
|
+
type: Sequelize.STRING(20),
|
|
89
|
+
allowNull: true,
|
|
90
|
+
field: 'day_name',
|
|
91
|
+
},
|
|
92
|
+
dayOfWeek: {
|
|
93
|
+
type: Sequelize.INTEGER,
|
|
94
|
+
allowNull: true,
|
|
95
|
+
field: 'day_of_week',
|
|
96
|
+
},
|
|
97
|
+
status: {
|
|
98
|
+
type: Sequelize.STRING(30),
|
|
99
|
+
allowNull: true,
|
|
100
|
+
defaultValue: 'INACTIVE',
|
|
101
|
+
},
|
|
102
|
+
startTime: {
|
|
103
|
+
type: Sequelize.DATE,
|
|
104
|
+
allowNull: true,
|
|
105
|
+
field: 'start_time',
|
|
106
|
+
},
|
|
107
|
+
endTime: {
|
|
108
|
+
type: Sequelize.DATE,
|
|
109
|
+
allowNull: true,
|
|
110
|
+
field: 'end_time',
|
|
111
|
+
},
|
|
112
|
+
sportAcademyId: {
|
|
113
|
+
type: Sequelize.STRING,
|
|
114
|
+
allowNull: true,
|
|
115
|
+
field: 'sport_academy_id',
|
|
116
|
+
},
|
|
117
|
+
createdBy: {
|
|
118
|
+
type: Sequelize.UUID,
|
|
119
|
+
allowNull: true,
|
|
120
|
+
field: 'created_by',
|
|
121
|
+
},
|
|
122
|
+
updatedBy: {
|
|
123
|
+
type: Sequelize.UUID,
|
|
124
|
+
allowNull: true,
|
|
125
|
+
field: 'updated_by',
|
|
126
|
+
},
|
|
127
|
+
deletedBy: {
|
|
128
|
+
type: Sequelize.UUID,
|
|
129
|
+
allowNull: true,
|
|
130
|
+
field: 'deleted_by',
|
|
131
|
+
},
|
|
132
|
+
createdAt: {
|
|
133
|
+
type: Sequelize.DATE,
|
|
134
|
+
allowNull: false,
|
|
135
|
+
field: 'created_at',
|
|
136
|
+
},
|
|
137
|
+
updatedAt: {
|
|
138
|
+
type: Sequelize.DATE,
|
|
139
|
+
allowNull: false,
|
|
140
|
+
field: 'updated_at',
|
|
141
|
+
},
|
|
142
|
+
deletedAt: {
|
|
143
|
+
type: Sequelize.DATE,
|
|
144
|
+
allowNull: true,
|
|
145
|
+
field: 'deleted_at',
|
|
146
|
+
},
|
|
147
|
+
};
|
|
148
|
+
for (const column of Object.keys(columnsToAdd)) {
|
|
149
|
+
const columnToAdd = columnsToAdd[column];
|
|
150
|
+
const tableColumn = columnToAdd.field || column;
|
|
151
|
+
if (!tableDefinition[tableColumn]) {
|
|
152
|
+
await queryInterface.addColumn(tableName, tableColumn, columnToAdd);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
const down = async (queryInterface) => {
|
|
158
|
+
const tableName = 'sport_academy_working_days';
|
|
159
|
+
const tableExists = await queryInterface
|
|
160
|
+
.describeTable(tableName)
|
|
161
|
+
.then(() => true)
|
|
162
|
+
.catch(() => false);
|
|
163
|
+
if (tableExists) {
|
|
164
|
+
await queryInterface.dropTable(tableName);
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
module.exports = {
|
|
168
|
+
up,
|
|
169
|
+
down,
|
|
170
|
+
};
|
|
@@ -273,6 +273,4 @@ export * from './sportsAcademyInterface';
|
|
|
273
273
|
export * from './userAmenityInterface';
|
|
274
274
|
export * from './userAcademyMetaInterface';
|
|
275
275
|
export * from './sportDataApproveInterface';
|
|
276
|
-
export * from './
|
|
277
|
-
export * from './healthCheckupTemplateInterface';
|
|
278
|
-
export * from './healthCheckupRecordInterface';
|
|
276
|
+
export * from './sportAcademyWorkingDayInterface';
|
package/dist/interfaces/index.js
CHANGED
|
@@ -290,6 +290,4 @@ __exportStar(require("./sportsAcademyInterface"), exports);
|
|
|
290
290
|
__exportStar(require("./userAmenityInterface"), exports);
|
|
291
291
|
__exportStar(require("./userAcademyMetaInterface"), exports);
|
|
292
292
|
__exportStar(require("./sportDataApproveInterface"), exports);
|
|
293
|
-
__exportStar(require("./
|
|
294
|
-
__exportStar(require("./healthCheckupTemplateInterface"), exports);
|
|
295
|
-
__exportStar(require("./healthCheckupRecordInterface"), exports);
|
|
293
|
+
__exportStar(require("./sportAcademyWorkingDayInterface"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SPORTS_ACADEMY_WORKING_DAY_STATUS } from '../constants/app';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
export interface ISportAcademyWorkingDayAttributes extends IDefaultAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
dayName: string;
|
|
6
|
+
startTime: Date;
|
|
7
|
+
endTime: Date;
|
|
8
|
+
status?: SPORTS_ACADEMY_WORKING_DAY_STATUS;
|
|
9
|
+
sportAcademyId?: string;
|
|
10
|
+
dayOfWeek: number;
|
|
11
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { IDefaultAttributes } from
|
|
1
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
2
2
|
export interface ISportGroupDataModelAttributes extends IDefaultAttributes {
|
|
3
3
|
id: string;
|
|
4
4
|
sportId: string;
|
|
5
5
|
facilityId?: string | null;
|
|
6
6
|
equipmentId?: string | null;
|
|
7
|
+
amenityId?: string | null;
|
|
7
8
|
}
|
|
@@ -86,5 +86,3 @@ export { default as SportsAcademyModel } from './sportsAcademyModel';
|
|
|
86
86
|
export { default as UserAmenityModel } from './userAmenityModel';
|
|
87
87
|
export { default as UserAcademyMetaModel } from './userAcademyMetaModel';
|
|
88
88
|
export { default as SportDataApproveModel } from './sportDataApproveModel';
|
|
89
|
-
export { default as HealthCheckupTemplateModel } from './HealthCheckupTemplateModel';
|
|
90
|
-
export { default as HealthCheckupRecordModel } from './HealthCheckupRecordModel';
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PollSelectionModel = exports.CreatePollModel = exports.SheetFieldMappingModel = exports.FileUploadUserDetails = exports.CompetitionUsersModel = exports.CompetitionGroupModel = exports.CompetitionModel = exports.CampusCarnivalModel = exports.AppointmentHistoryModel = exports.AppointmentModel = exports.SeatingArrangementModel = exports.AssignFileModel = exports.ThemeModel = exports.BDayWishModel = exports.AdditionalDetailModel = exports.CanteenModel = exports.WalletTransactionModel = exports.VideoAnalystModel = exports.UserSchoolMetaModel = exports.UserInstituteMetaModel = exports.UserDetailsModel = exports.UniqueNumberCounterModel = exports.TaskManagementModel = exports.SubscriptionPlanModel = exports.SubjectIndexModel = exports.ReplaceTeacherModel = exports.PlannerModel = exports.PhotosGalleryModel = exports.JobApplyModel = exports.InvoiceModel = exports.InquiryModel = exports.InformationSupportModel = exports.HolidayModel = exports.GenerateIdCardModel = exports.FeedBackModel = exports.FeeReminderTypeModel = exports.ExamModel = exports.ExamHasAnswerSheetModel = exports.ExamGroupModel = exports.EventModel = exports.DashboardManagementModel = exports.DailyBookModel = exports.ColumnModel = exports.CertificatesManagementModel = exports.CertificatesHistoryModel = exports.CareerModel = exports.BlogModel = exports.AttendanceModel = exports.ApprovalRequestModel = exports.connectMongoDb = void 0;
|
|
7
|
-
exports.
|
|
7
|
+
exports.SportDataApproveModel = exports.UserAcademyMetaModel = exports.UserAmenityModel = exports.SportsAcademyModel = exports.StudentSportTestModel = exports.SportInfoModel = exports.AssessmentTestModel = exports.productMetaModel = exports.vendorCompanyMetaModel = exports.KipiverseContactFormModel = exports.UserFinalResultModel = exports.RmsDigitalResourceAccessModel = exports.RmsDigitalResourceModel = exports.RmsAmcContractModel = exports.RmsResourceDetailsModel = exports.RmsAuditLogModel = exports.OnlineLectureModel = exports.PastYearRecordTopperModel = exports.FeeSubmissionModel = exports.AdvertisementModel = exports.RoleHasPermissionModel = exports.CommunityMessageModel = exports.CommunityGroupMemberModel = exports.CommunityGroupModel = exports.OfferAndDiscountModel = exports.SubscriptionConfigurationModel = exports.ModulePriceModel = exports.PdcChequeConfigurationModel = exports.FinalMarkSheetModel = exports.MarkSheetConfigurationModel = exports.AppAnalyticsEventModel = exports.GrantAndDonationModel = exports.TicketRaiseModel = exports.EducationOfficerModel = exports.InstituteFeeModel = exports.SchoolFee1Model = exports.FeeConfigModel = exports.EventTemplatesModel = void 0;
|
|
8
8
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
9
9
|
const env_1 = require("../../configs/env");
|
|
10
10
|
const transformIdInQueryPlugin_1 = __importDefault(require("./plugin/transformIdInQueryPlugin"));
|
|
@@ -200,7 +200,3 @@ var userAcademyMetaModel_1 = require("./userAcademyMetaModel");
|
|
|
200
200
|
Object.defineProperty(exports, "UserAcademyMetaModel", { enumerable: true, get: function () { return __importDefault(userAcademyMetaModel_1).default; } });
|
|
201
201
|
var sportDataApproveModel_1 = require("./sportDataApproveModel");
|
|
202
202
|
Object.defineProperty(exports, "SportDataApproveModel", { enumerable: true, get: function () { return __importDefault(sportDataApproveModel_1).default; } });
|
|
203
|
-
var HealthCheckupTemplateModel_1 = require("./HealthCheckupTemplateModel");
|
|
204
|
-
Object.defineProperty(exports, "HealthCheckupTemplateModel", { enumerable: true, get: function () { return __importDefault(HealthCheckupTemplateModel_1).default; } });
|
|
205
|
-
var HealthCheckupRecordModel_1 = require("./HealthCheckupRecordModel");
|
|
206
|
-
Object.defineProperty(exports, "HealthCheckupRecordModel", { enumerable: true, get: function () { return __importDefault(HealthCheckupRecordModel_1).default; } });
|
|
@@ -187,4 +187,4 @@ export { default as UnitModel } from './unitModel';
|
|
|
187
187
|
export { default as SkillModel } from './skillModel';
|
|
188
188
|
export { default as AgeGroupModel } from './ageGroupModel';
|
|
189
189
|
export { default as SchoolHasSportModel } from './schoolHasSportModel';
|
|
190
|
-
export { default as
|
|
190
|
+
export { default as SportAcademyWorkingDayModel } from './sportAcademyWorkingDayModel';
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ProjectAssessmentOptionModel = exports.ProductModel = exports.PincodeModel = exports.PdcHistoryModel = exports.PdcChequeModel = exports.OfferModel = exports.ModuleModel = exports.ModuleFeatureModel = exports.MasterLeaveModel = exports.LectureModel = exports.LectureHistoryModel = exports.InventoryModel = exports.InventoryHistoryModel = exports.InstituteSubscriptionPlanModel = exports.InstituteModel = exports.InstituteEntityTypeModel = exports.InstituteEntityModel = exports.HomeWorkModel = exports.GreetingsModel = exports.FloorManagementModel = exports.FileStorageModel = exports.FeeReminderSettingModel = exports.FeeReminderModel = exports.FeatureActionModel = exports.FacilityModel = exports.EntityGroupModel = exports.DriverModel = exports.CourseModel = exports.CourseHasVisitorsModel = exports.CountryModel = exports.ContactFeedBackModel = exports.CoinPurchaseOfferModel = exports.CloudStorageModel = exports.ClassRoomModel = exports.CityModel = exports.CategoriesModel = exports.BookAssessmentDateModel = exports.BatchSubjectProjectAssessmentModel = exports.BatchSubjectBookAssessmentModel = exports.BatchModel = exports.BannerModel = exports.BankAccountDetailsModel = exports.AreaModel = exports.AnnouncementModel = exports.AccountHasReceiptDetailsModel = exports.AcademicCalendarModel = exports.SubCategoriesModel = exports.Sequelize = exports.db = exports.sequelize = void 0;
|
|
7
7
|
exports.StudentLeaveRequestModel = exports.CloneListModel = exports.IncomeExpenseModel = exports.MaintenanceModel = exports.WorkOffDaysModel = exports.EntityWiseCalendarModel = exports.CampusModel = exports.LostFoundItemModel = exports.WorkingShiftModel = exports.WorkingDayModel = exports.WalletModel = exports.WalletHistoryModel = exports.VendorManagementModel = exports.VehicleModel = exports.UserRequiredStepsModel = exports.UserProjectAssessmentOptionModel = exports.UserPayoutModel = exports.UserModel = exports.UserLeaveRequestModel = exports.UserHasSubjectFeeModel = exports.UserHasStorageModel = exports.UserHasRollNumberModel = exports.UserHasRoleModel = exports.UserHasParentModel = exports.UserHasOfferModel = exports.UserHasLeaveModel = exports.UserHasLeaveHistoryModel = exports.UserHasInventoryModel = exports.UserHasInventoryHistoryModel = exports.UserHasHomeWorkModel = exports.UserHasFileModel = exports.UserHasDeviceModel = exports.UserHasCourseModel = exports.UserHasBatchModel = exports.UserHasAnnouncementModel = exports.UserBookAssessmentModel = exports.TypeManagementModel = exports.TripModel = exports.TokenModel = exports.ToDoModel = exports.TestimonialModel = exports.SyllabusModel = exports.SubjectHasPayFeeHistoryModel = exports.SubjectHasFeeModel = exports.StateModel = exports.SlotModel = exports.SendNotificationModel = exports.SchoolOfferModel = exports.RulesRegulationModel = exports.RoleModel = void 0;
|
|
8
8
|
exports.RmsPurchaseRequestItemModel = exports.RmsPurchaseRequestModel = exports.RmsVendorDocumentModel = exports.RmsVendorModel = exports.RmsStockTransactionModel = exports.RmsStockModel = exports.RmsResourceModel = exports.RmsLocationModel = exports.RmsDepartmentModel = exports.AiModelKeyModel = exports.ModuleDocsModel = exports.DynamicVariableLabelModel = exports.DynamicVariableModel = exports.CertificateRequestModel = exports.FeeSubmissionTrackModel = exports.UserHasFeeSubmissionModel = exports.AssignSubjectModel = exports.InstitutePartnersModel = exports.InstituteOwnershipHistoryModel = exports.UserHasPenaltyHistoryModel = exports.PastYearRecordModel = exports.PayoutTransactionHistoryModel = exports.AdditionalPayoutModel = exports.LoanEmiModel = exports.UserLoanModel = exports.NoticeboardModel = exports.UserPermissionModel = exports.RoleManagementModel = exports.PermissionModel = exports.DesignationModel = exports.AdditionalPayoutTypeModel = exports.VisitorBookModel = exports.PostalDispatchModel = exports.CallRegisterModel = exports.UserHasOfferAndDiscountModel = exports.UserAcceptedTermsAndCondition = exports.SubjectInternalMarkModel = exports.InternalMarkModel = exports.TermsAndConditionModel = exports.FeeType1Model = exports.StudentFeeTermsModel = exports.UserHasPenaltyModel = exports.PenaltyModel = exports.ClassRoomCollectionModel = exports.ClassRoomEventModel = exports.StudentFeeTypeCollectionModel = exports.SchoolFeeTermsModel = exports.StudentFeeHistoryModel = exports.StudentFeeCollectionModel = exports.UserDirectoryModel = void 0;
|
|
9
|
-
exports.
|
|
9
|
+
exports.SportAcademyWorkingDayModel = exports.SchoolHasSportModel = exports.AgeGroupModel = exports.SkillModel = exports.UnitModel = exports.SportGroupDataModel = exports.FacilityMasterModel = exports.EquipmentModel = exports.SportRoleModel = exports.SportSubCategoryModel = exports.SportCategoryModel = exports.SportModel = exports.AccountVoucherTypeModel = exports.AccountCostCenterModel = exports.AccountLedgerOpeningModel = exports.AccountLedgerModel = exports.AccountGroupModel = exports.AccountNumberSequenceModel = exports.AccountPeriodLockModel = exports.AccountFinancialYearModel = exports.RmsExpenseEntryModel = exports.RmsBudgetModel = exports.RmsFacilityBookingModel = exports.RmsFacilityModel = exports.RmsMaintenanceActivityModel = exports.RmsMaintenanceTicketModel = exports.RefundCollectionModule = exports.RmsAssetTransactionModel = exports.RmsStorageSlotModel = exports.RmsStorageRackModel = exports.UserHasGraceMarksModel = exports.GraceMarksModel = exports.RmsAssetModel = exports.RmsGrnItemTransactionModel = exports.RmsGrnItemModel = exports.RmsGrnModel = exports.RmsPurchaseOrderItemModel = exports.RmsPurchaseOrderModel = void 0;
|
|
10
10
|
const sequelize_1 = require("sequelize");
|
|
11
11
|
Object.defineProperty(exports, "Sequelize", { enumerable: true, get: function () { return sequelize_1.Sequelize; } });
|
|
12
12
|
const postgresConfig = require('../../configs/postgresConfig');
|
|
@@ -471,5 +471,5 @@ var ageGroupModel_1 = require("./ageGroupModel");
|
|
|
471
471
|
Object.defineProperty(exports, "AgeGroupModel", { enumerable: true, get: function () { return __importDefault(ageGroupModel_1).default; } });
|
|
472
472
|
var schoolHasSportModel_1 = require("./schoolHasSportModel");
|
|
473
473
|
Object.defineProperty(exports, "SchoolHasSportModel", { enumerable: true, get: function () { return __importDefault(schoolHasSportModel_1).default; } });
|
|
474
|
-
var
|
|
475
|
-
Object.defineProperty(exports, "
|
|
474
|
+
var sportAcademyWorkingDayModel_1 = require("./sportAcademyWorkingDayModel");
|
|
475
|
+
Object.defineProperty(exports, "SportAcademyWorkingDayModel", { enumerable: true, get: function () { return __importDefault(sportAcademyWorkingDayModel_1).default; } });
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Model } from 'sequelize';
|
|
2
|
+
import { SPORTS_ACADEMY_WORKING_DAY_STATUS } from '../../constants/app';
|
|
3
|
+
import { ISportAcademyWorkingDayAttributes } from '../../interfaces';
|
|
4
|
+
import { TSportAcademyWorkingDayCreationAttributes } from '../../types';
|
|
5
|
+
declare class SportAcademyWorkingDayModel extends Model<ISportAcademyWorkingDayAttributes, TSportAcademyWorkingDayCreationAttributes> implements ISportAcademyWorkingDayAttributes {
|
|
6
|
+
id: string;
|
|
7
|
+
dayName: string;
|
|
8
|
+
status: SPORTS_ACADEMY_WORKING_DAY_STATUS;
|
|
9
|
+
startTime: Date;
|
|
10
|
+
endTime: Date;
|
|
11
|
+
sportAcademyId: string;
|
|
12
|
+
dayOfWeek: number;
|
|
13
|
+
createdBy: string;
|
|
14
|
+
updatedBy: string;
|
|
15
|
+
deletedBy: string;
|
|
16
|
+
readonly createdAt: Date;
|
|
17
|
+
readonly updatedAt: Date;
|
|
18
|
+
readonly deletedAt?: Date;
|
|
19
|
+
static associate(models: any): void;
|
|
20
|
+
}
|
|
21
|
+
export default SportAcademyWorkingDayModel;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const sequelize_1 = require("sequelize");
|
|
4
|
+
const index_1 = require("./index");
|
|
5
|
+
const app_1 = require("../../constants/app");
|
|
6
|
+
class SportAcademyWorkingDayModel extends sequelize_1.Model {
|
|
7
|
+
static associate(models) {
|
|
8
|
+
const { UserModel } = models;
|
|
9
|
+
SportAcademyWorkingDayModel.belongsTo(UserModel, {
|
|
10
|
+
foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
|
|
11
|
+
as: 'createdByUser',
|
|
12
|
+
});
|
|
13
|
+
SportAcademyWorkingDayModel.belongsTo(UserModel, {
|
|
14
|
+
foreignKey: { name: 'updatedBy', allowNull: true, field: 'updated_by' },
|
|
15
|
+
as: 'updatedByUser',
|
|
16
|
+
});
|
|
17
|
+
SportAcademyWorkingDayModel.belongsTo(UserModel, {
|
|
18
|
+
foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
|
|
19
|
+
as: 'deletedByUser',
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
SportAcademyWorkingDayModel.init({
|
|
24
|
+
id: {
|
|
25
|
+
type: sequelize_1.DataTypes.UUID,
|
|
26
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
27
|
+
allowNull: false,
|
|
28
|
+
primaryKey: true,
|
|
29
|
+
},
|
|
30
|
+
dayName: {
|
|
31
|
+
type: sequelize_1.DataTypes.STRING(20),
|
|
32
|
+
allowNull: true,
|
|
33
|
+
field: 'day_name',
|
|
34
|
+
},
|
|
35
|
+
dayOfWeek: {
|
|
36
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
37
|
+
allowNull: true,
|
|
38
|
+
field: 'day_of_week',
|
|
39
|
+
},
|
|
40
|
+
status: {
|
|
41
|
+
type: sequelize_1.DataTypes.STRING(30),
|
|
42
|
+
allowNull: true,
|
|
43
|
+
defaultValue: app_1.SPORTS_ACADEMY_WORKING_DAY_STATUS.INACTIVE,
|
|
44
|
+
},
|
|
45
|
+
startTime: {
|
|
46
|
+
type: sequelize_1.DataTypes.DATE,
|
|
47
|
+
allowNull: true,
|
|
48
|
+
field: 'start_time',
|
|
49
|
+
},
|
|
50
|
+
endTime: {
|
|
51
|
+
type: sequelize_1.DataTypes.DATE,
|
|
52
|
+
allowNull: true,
|
|
53
|
+
field: 'end_time',
|
|
54
|
+
},
|
|
55
|
+
sportAcademyId: {
|
|
56
|
+
type: sequelize_1.DataTypes.STRING,
|
|
57
|
+
allowNull: true,
|
|
58
|
+
field: 'sport_academy_id',
|
|
59
|
+
},
|
|
60
|
+
}, {
|
|
61
|
+
modelName: 'SportAcademyWorkingDayModel',
|
|
62
|
+
tableName: 'sport_academy_working_days',
|
|
63
|
+
timestamps: true,
|
|
64
|
+
sequelize: index_1.sequelize,
|
|
65
|
+
});
|
|
66
|
+
exports.default = SportAcademyWorkingDayModel;
|
|
@@ -6,6 +6,7 @@ export declare class SportGroupDataModel extends Model<ISportGroupDataModelAttri
|
|
|
6
6
|
sportId: string;
|
|
7
7
|
facilityId?: string | null;
|
|
8
8
|
equipmentId?: string | null;
|
|
9
|
+
amenityId?: string | null;
|
|
9
10
|
readonly createdAt: Date;
|
|
10
11
|
readonly updatedAt: Date;
|
|
11
12
|
static associate(models: any): void;
|
|
@@ -30,6 +30,14 @@ class SportGroupDataModel extends sequelize_1.Model {
|
|
|
30
30
|
foreignKey: { name: 'equipmentId', allowNull: true, field: 'equipment_id' },
|
|
31
31
|
as: 'equipmentGroupDataList',
|
|
32
32
|
});
|
|
33
|
+
SportGroupDataModel.belongsTo(FacilityMasterModel, {
|
|
34
|
+
foreignKey: { name: 'amenityId', allowNull: true, field: 'amenity_id' },
|
|
35
|
+
as: 'amenity',
|
|
36
|
+
});
|
|
37
|
+
FacilityMasterModel.hasMany(SportGroupDataModel, {
|
|
38
|
+
foreignKey: { name: 'amenityId', allowNull: true, field: 'amenity_id' },
|
|
39
|
+
as: 'amenityGroupDataList',
|
|
40
|
+
});
|
|
33
41
|
}
|
|
34
42
|
}
|
|
35
43
|
exports.SportGroupDataModel = SportGroupDataModel;
|
|
@@ -55,6 +63,11 @@ SportGroupDataModel.init({
|
|
|
55
63
|
field: 'equipment_id',
|
|
56
64
|
allowNull: true,
|
|
57
65
|
},
|
|
66
|
+
amenityId: {
|
|
67
|
+
type: sequelize_1.DataTypes.UUID,
|
|
68
|
+
field: 'amenity_id',
|
|
69
|
+
allowNull: true,
|
|
70
|
+
},
|
|
58
71
|
}, {
|
|
59
72
|
modelName: 'SportGroupDataModel',
|
|
60
73
|
tableName: 'sport_group_data',
|
|
@@ -19,11 +19,6 @@ TokenModel.init({
|
|
|
19
19
|
type: sequelize_1.DataTypes.STRING,
|
|
20
20
|
allowNull: false,
|
|
21
21
|
},
|
|
22
|
-
userId: {
|
|
23
|
-
type: sequelize_1.DataTypes.UUID,
|
|
24
|
-
allowNull: true,
|
|
25
|
-
field: 'user_id',
|
|
26
|
-
},
|
|
27
22
|
expiresAt: {
|
|
28
23
|
type: sequelize_1.DataTypes.DATE,
|
|
29
24
|
allowNull: false,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -262,7 +262,5 @@ export * from './sportsAcademyType';
|
|
|
262
262
|
export * from './userAmenityType';
|
|
263
263
|
export * from './userAcademyMetaType';
|
|
264
264
|
export * from './sportDataApproveType';
|
|
265
|
-
export * from './
|
|
266
|
-
export * from './healthCheckupTemplateType';
|
|
267
|
-
export * from './healthCheckupRecordType';
|
|
265
|
+
export * from './sportAcademyWorkingDayType';
|
|
268
266
|
export * from './commonType';
|
package/dist/types/index.js
CHANGED
|
@@ -279,7 +279,5 @@ __exportStar(require("./sportsAcademyType"), exports);
|
|
|
279
279
|
__exportStar(require("./userAmenityType"), exports);
|
|
280
280
|
__exportStar(require("./userAcademyMetaType"), exports);
|
|
281
281
|
__exportStar(require("./sportDataApproveType"), exports);
|
|
282
|
-
__exportStar(require("./
|
|
283
|
-
__exportStar(require("./healthCheckupTemplateType"), exports);
|
|
284
|
-
__exportStar(require("./healthCheckupRecordType"), exports);
|
|
282
|
+
__exportStar(require("./sportAcademyWorkingDayType"), exports);
|
|
285
283
|
__exportStar(require("./commonType"), exports);
|
package/package.json
CHANGED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
/** @type {import('sequelize-cli').Migration} */
|
|
3
|
-
module.exports = {
|
|
4
|
-
async up(queryInterface, Sequelize) {
|
|
5
|
-
await queryInterface.createTable('healthCheckupVisit', {
|
|
6
|
-
id: {
|
|
7
|
-
type: Sequelize.UUID,
|
|
8
|
-
defaultValue: Sequelize.UUIDV4,
|
|
9
|
-
primaryKey: true,
|
|
10
|
-
allowNull: true,
|
|
11
|
-
},
|
|
12
|
-
doctorName: {
|
|
13
|
-
type: Sequelize.STRING,
|
|
14
|
-
allowNull: true,
|
|
15
|
-
field: 'doctor_name',
|
|
16
|
-
},
|
|
17
|
-
instituteId: {
|
|
18
|
-
type: Sequelize.UUID,
|
|
19
|
-
allowNull: true,
|
|
20
|
-
field: 'institute_id',
|
|
21
|
-
},
|
|
22
|
-
visitDate: {
|
|
23
|
-
type: Sequelize.DATE,
|
|
24
|
-
allowNull: true,
|
|
25
|
-
field: 'visit_date',
|
|
26
|
-
},
|
|
27
|
-
visitType: {
|
|
28
|
-
type: Sequelize.STRING,
|
|
29
|
-
allowNull: true,
|
|
30
|
-
field: 'visit_type',
|
|
31
|
-
},
|
|
32
|
-
remark: {
|
|
33
|
-
type: Sequelize.BOOLEAN,
|
|
34
|
-
allowNull: false,
|
|
35
|
-
defaultValue: true,
|
|
36
|
-
},
|
|
37
|
-
createdAt: {
|
|
38
|
-
type: Sequelize.DATE,
|
|
39
|
-
allowNull: false,
|
|
40
|
-
field: 'created_at',
|
|
41
|
-
},
|
|
42
|
-
updatedAt: {
|
|
43
|
-
type: Sequelize.DATE,
|
|
44
|
-
allowNull: false,
|
|
45
|
-
field: 'updated_at',
|
|
46
|
-
},
|
|
47
|
-
deletedAt: {
|
|
48
|
-
type: Sequelize.DATE,
|
|
49
|
-
field: 'deleted_at',
|
|
50
|
-
},
|
|
51
|
-
createdBy: {
|
|
52
|
-
type: Sequelize.UUID,
|
|
53
|
-
allowNull: true,
|
|
54
|
-
field: 'created_by',
|
|
55
|
-
},
|
|
56
|
-
updatedBy: {
|
|
57
|
-
type: Sequelize.UUID,
|
|
58
|
-
allowNull: true,
|
|
59
|
-
field: 'updated_by',
|
|
60
|
-
},
|
|
61
|
-
deletedBy: {
|
|
62
|
-
type: Sequelize.UUID,
|
|
63
|
-
allowNull: true,
|
|
64
|
-
field: 'deleted_by',
|
|
65
|
-
},
|
|
66
|
-
});
|
|
67
|
-
},
|
|
68
|
-
async down(queryInterface) {
|
|
69
|
-
await queryInterface.dropTable('health-checkup-templates');
|
|
70
|
-
},
|
|
71
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const up = async (queryInterface, Sequelize) => {
|
|
3
|
-
const tableName = 'tokens';
|
|
4
|
-
const tableDefinition = await queryInterface.describeTable(tableName);
|
|
5
|
-
if (!tableDefinition['user_id']) {
|
|
6
|
-
await queryInterface.addColumn(tableName, 'user_id', {
|
|
7
|
-
type: Sequelize.UUID,
|
|
8
|
-
allowNull: true,
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
const down = async (queryInterface, Sequelize) => {
|
|
13
|
-
const tableName = 'tokens';
|
|
14
|
-
const tableDefinition = await queryInterface.describeTable(tableName);
|
|
15
|
-
if (tableDefinition['user_id']) {
|
|
16
|
-
await queryInterface.removeColumn(tableName, 'user_id');
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
module.exports = {
|
|
20
|
-
up,
|
|
21
|
-
down,
|
|
22
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { IDefaultAttributes } from "./commonInterface";
|
|
3
|
-
export interface IHealthCheckupRecordModelAttribute extends IDefaultAttributes, Document {
|
|
4
|
-
studentId: string;
|
|
5
|
-
templateId: string;
|
|
6
|
-
visitId: string;
|
|
7
|
-
instituteId: string;
|
|
8
|
-
value: Record<string, unknown>;
|
|
9
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { IDefaultAttributes } from "./commonInterface";
|
|
3
|
-
import { HEALTH_TEMPLATE_MODEL_TYPE } from "../constants";
|
|
4
|
-
export interface IFieldOption {
|
|
5
|
-
label: string;
|
|
6
|
-
value: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ITemplateField {
|
|
9
|
-
key: string;
|
|
10
|
-
label: string;
|
|
11
|
-
type: HEALTH_TEMPLATE_MODEL_TYPE;
|
|
12
|
-
required: boolean;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
defaultValue?: string | number | boolean;
|
|
15
|
-
options?: IFieldOption[];
|
|
16
|
-
order: number;
|
|
17
|
-
}
|
|
18
|
-
export interface IHealthCheckupTemplateModelAttributes extends IDefaultAttributes, Document {
|
|
19
|
-
name: string;
|
|
20
|
-
visitId: string;
|
|
21
|
-
description: string;
|
|
22
|
-
field: ITemplateField[];
|
|
23
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const mongoose_1 = __importStar(require("mongoose"));
|
|
37
|
-
const HealthCheckupRecordModelSchema = new mongoose_1.Schema({
|
|
38
|
-
studentId: {
|
|
39
|
-
type: String,
|
|
40
|
-
required: true,
|
|
41
|
-
},
|
|
42
|
-
templateId: {
|
|
43
|
-
type: String,
|
|
44
|
-
required: true
|
|
45
|
-
},
|
|
46
|
-
visitId: {
|
|
47
|
-
type: String,
|
|
48
|
-
required: true
|
|
49
|
-
},
|
|
50
|
-
instituteId: {
|
|
51
|
-
type: String,
|
|
52
|
-
required: true
|
|
53
|
-
},
|
|
54
|
-
value: {
|
|
55
|
-
type: mongoose_1.Schema.Types.Mixed,
|
|
56
|
-
required: true
|
|
57
|
-
}
|
|
58
|
-
}, {
|
|
59
|
-
timestamps: true
|
|
60
|
-
});
|
|
61
|
-
const HealthCheckupRecordModel = mongoose_1.default.models['health_checkup_record'] || mongoose_1.default.model('health_checkup_record', HealthCheckupRecordModelSchema);
|
|
62
|
-
exports.default = HealthCheckupRecordModel;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Model } from 'mongoose';
|
|
2
|
-
import { IHealthCheckupTemplateModelAttributes } from '../../interfaces/healthCheckupTemplateInterface';
|
|
3
|
-
declare const HealthCheckupTemplateModel: Model<IHealthCheckupTemplateModelAttributes>;
|
|
4
|
-
export default HealthCheckupTemplateModel;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const mongoose_1 = __importStar(require("mongoose"));
|
|
37
|
-
const TemplateSchema = new mongoose_1.Schema({
|
|
38
|
-
key: { type: String, required: true },
|
|
39
|
-
label: { type: String, required: true },
|
|
40
|
-
type: { type: String, required: true },
|
|
41
|
-
required: { type: Boolean, required: true },
|
|
42
|
-
placeholder: { type: String, required: true },
|
|
43
|
-
defaultValue: { type: String, required: true },
|
|
44
|
-
option: { type: [String] },
|
|
45
|
-
}, {
|
|
46
|
-
_id: false,
|
|
47
|
-
});
|
|
48
|
-
const HealthCheckupTamplateSchema = new mongoose_1.Schema({
|
|
49
|
-
name: {
|
|
50
|
-
type: String,
|
|
51
|
-
required: true,
|
|
52
|
-
},
|
|
53
|
-
description: {
|
|
54
|
-
type: String,
|
|
55
|
-
required: true,
|
|
56
|
-
},
|
|
57
|
-
visitId: {
|
|
58
|
-
type: String,
|
|
59
|
-
required: true,
|
|
60
|
-
},
|
|
61
|
-
field: {
|
|
62
|
-
type: [TemplateSchema],
|
|
63
|
-
required: true,
|
|
64
|
-
default: []
|
|
65
|
-
},
|
|
66
|
-
}, {
|
|
67
|
-
timestamps: true,
|
|
68
|
-
});
|
|
69
|
-
const HealthCheckupTemplateModel = mongoose_1.default.models['health_check_tamplate'] || mongoose_1.default.model('health_check_tamplate', HealthCheckupTamplateSchema);
|
|
70
|
-
exports.default = HealthCheckupTemplateModel;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize';
|
|
2
|
-
export declare class HealthCheckupVisitModel extends Model {
|
|
3
|
-
id: string;
|
|
4
|
-
doctorName: string;
|
|
5
|
-
instituteId: string;
|
|
6
|
-
visitDate: Date;
|
|
7
|
-
visitType: string;
|
|
8
|
-
remark: string;
|
|
9
|
-
static associate(models: any): void;
|
|
10
|
-
}
|
|
11
|
-
export default HealthCheckupVisitModel;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HealthCheckupVisitModel = void 0;
|
|
4
|
-
const sequelize_1 = require("sequelize");
|
|
5
|
-
const index_1 = require("./index");
|
|
6
|
-
class HealthCheckupVisitModel extends sequelize_1.Model {
|
|
7
|
-
static associate(models) {
|
|
8
|
-
const { InstituteModel, UserModel } = models;
|
|
9
|
-
HealthCheckupVisitModel.belongsTo(InstituteModel, {
|
|
10
|
-
foreignKey: {
|
|
11
|
-
name: 'instituteId',
|
|
12
|
-
field: 'institute_id',
|
|
13
|
-
},
|
|
14
|
-
as: 'HealthCheckupVisitInstitute',
|
|
15
|
-
});
|
|
16
|
-
HealthCheckupVisitModel.belongsTo(UserModel, {
|
|
17
|
-
foreignKey: {
|
|
18
|
-
name: 'createdBy',
|
|
19
|
-
allowNull: true,
|
|
20
|
-
field: 'created_by',
|
|
21
|
-
},
|
|
22
|
-
as: 'createdByUser',
|
|
23
|
-
});
|
|
24
|
-
HealthCheckupVisitModel.belongsTo(UserModel, {
|
|
25
|
-
foreignKey: {
|
|
26
|
-
name: 'updatedBy',
|
|
27
|
-
allowNull: true,
|
|
28
|
-
field: 'updated_by',
|
|
29
|
-
},
|
|
30
|
-
as: 'updatedByUser',
|
|
31
|
-
});
|
|
32
|
-
HealthCheckupVisitModel.belongsTo(UserModel, {
|
|
33
|
-
foreignKey: {
|
|
34
|
-
name: 'deletedBy',
|
|
35
|
-
allowNull: true,
|
|
36
|
-
field: 'deleted_by',
|
|
37
|
-
},
|
|
38
|
-
as: 'deletedByUser',
|
|
39
|
-
});
|
|
40
|
-
InstituteModel.hasMany(HealthCheckupVisitModel, {
|
|
41
|
-
foreignKey: 'instituteId',
|
|
42
|
-
as: 'instituteHealthCheckupVisitList',
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.HealthCheckupVisitModel = HealthCheckupVisitModel;
|
|
47
|
-
HealthCheckupVisitModel.init({
|
|
48
|
-
id: {
|
|
49
|
-
type: sequelize_1.DataTypes.STRING,
|
|
50
|
-
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
51
|
-
allowNull: true,
|
|
52
|
-
primaryKey: true
|
|
53
|
-
},
|
|
54
|
-
doctorName: {
|
|
55
|
-
type: sequelize_1.DataTypes.STRING,
|
|
56
|
-
field: "doctor_name",
|
|
57
|
-
allowNull: true
|
|
58
|
-
},
|
|
59
|
-
instituteId: {
|
|
60
|
-
type: sequelize_1.DataTypes.UUID,
|
|
61
|
-
field: "institute_id",
|
|
62
|
-
allowNull: true
|
|
63
|
-
},
|
|
64
|
-
visitDate: {
|
|
65
|
-
type: sequelize_1.DataTypes.DATE,
|
|
66
|
-
allowNull: true
|
|
67
|
-
},
|
|
68
|
-
visitType: {
|
|
69
|
-
type: sequelize_1.DataTypes.STRING,
|
|
70
|
-
allowNull: true
|
|
71
|
-
},
|
|
72
|
-
remark: {
|
|
73
|
-
type: sequelize_1.DataTypes.STRING,
|
|
74
|
-
allowNull: true
|
|
75
|
-
},
|
|
76
|
-
}, {
|
|
77
|
-
tableName: "healthCheckupVisit",
|
|
78
|
-
timestamps: true,
|
|
79
|
-
modelName: 'HealthCheckupVisit',
|
|
80
|
-
sequelize: index_1.sequelize
|
|
81
|
-
});
|
|
82
|
-
exports.default = HealthCheckupVisitModel;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IInstituteAttributes, IUserAttributes } from '../interfaces';
|
|
2
|
-
import { IHealthCheckupRecordModelAttribute } from '../interfaces/healthCheckupRecordInterface';
|
|
3
|
-
import { IHealthCheckupTemplateModelAttributes } from '../interfaces/healthCheckupTemplateInterface';
|
|
4
|
-
import { IHealthCheckupVisitModelAttribute } from '../interfaces/healthCheckupVisitInterface';
|
|
5
|
-
export type THealthCheckupRecordModelAttribute = Omit<IHealthCheckupRecordModelAttribute, 'id'>;
|
|
6
|
-
export type THealthCheckupRecordWithAssociation = IHealthCheckupRecordModelAttribute & {
|
|
7
|
-
template?: IHealthCheckupTemplateModelAttributes;
|
|
8
|
-
student?: IUserAttributes;
|
|
9
|
-
visitDetails?: IHealthCheckupVisitModelAttribute;
|
|
10
|
-
institute?: IInstituteAttributes;
|
|
11
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IHealthCheckupTemplateModelAttributes } from "../interfaces/healthCheckupTemplateInterface";
|
|
2
|
-
import { IHealthCheckupVisitModelAttribute } from "../interfaces/healthCheckupVisitInterface";
|
|
3
|
-
export type THealthCheckupTemplateModelAttributes = Omit<IHealthCheckupTemplateModelAttributes, 'id'>;
|
|
4
|
-
export type THealthCheckupTemplateModelAssociation = IHealthCheckupTemplateModelAttributes & {
|
|
5
|
-
visitDetils?: IHealthCheckupVisitModelAttribute;
|
|
6
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Optional } from "sequelize";
|
|
2
|
-
import { IHealthCheckupVisitModelAttribute } from "../interfaces/healthCheckupVisitInterface";
|
|
3
|
-
import { IInstituteAttributes } from "../interfaces";
|
|
4
|
-
export type THealthCheckupVisitModelAttribute = Optional<IHealthCheckupVisitModelAttribute, 'id'>;
|
|
5
|
-
export type THealthCheckupVisitModelAssociation = IHealthCheckupVisitModelAttribute & {
|
|
6
|
-
institute?: IInstituteAttributes;
|
|
7
|
-
};
|
|
File without changes
|
/package/dist/interfaces/{healthCheckupRecordInterface.js → sportAcademyWorkingDayInterface.js}
RENAMED
|
File without changes
|
/package/dist/{interfaces/healthCheckupTemplateInterface.js → types/sportAcademyWorkingDayType.js}
RENAMED
|
File without changes
|