@tomei/rental 0.12.3 → 0.13.0
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/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/src/components/agreement/agreement.d.ts +22 -0
- package/dist/src/components/agreement/agreement.js +89 -0
- package/dist/src/components/agreement/agreement.js.map +1 -0
- package/dist/src/components/agreement/agreement.repository.d.ts +8 -0
- package/dist/src/components/agreement/agreement.repository.js +67 -0
- package/dist/src/components/agreement/agreement.repository.js.map +1 -0
- package/dist/src/components/booking/booking.d.ts +46 -0
- package/dist/src/components/booking/booking.js +314 -0
- package/dist/src/components/booking/booking.js.map +1 -0
- package/dist/src/components/booking/booking.repository.d.ts +8 -0
- package/dist/src/components/booking/booking.repository.js +67 -0
- package/dist/src/components/booking/booking.repository.js.map +1 -0
- package/dist/src/components/hirer-signature/hirer-signature.d.ts +27 -0
- package/dist/src/components/hirer-signature/hirer-signature.js +112 -0
- package/dist/src/components/hirer-signature/hirer-signature.js.map +1 -0
- package/dist/src/components/hirer-signature/hirer-signature.repository.d.ts +8 -0
- package/dist/src/components/hirer-signature/hirer-signature.repository.js +67 -0
- package/dist/src/components/hirer-signature/hirer-signature.repository.js.map +1 -0
- package/dist/src/components/joint-hirer/joint-hirer.d.ts +23 -0
- package/dist/src/components/joint-hirer/joint-hirer.js +106 -0
- package/dist/src/components/joint-hirer/joint-hirer.js.map +1 -0
- package/dist/src/components/joint-hirer/joint-hirer.repository.d.ts +8 -0
- package/dist/src/components/joint-hirer/joint-hirer.repository.js +67 -0
- package/dist/src/components/joint-hirer/joint-hirer.repository.js.map +1 -0
- package/dist/src/components/rental/rental.d.ts +61 -0
- package/dist/src/components/rental/rental.js +687 -0
- package/dist/src/components/rental/rental.js.map +1 -0
- package/dist/src/components/rental/rental.repository.d.ts +8 -0
- package/dist/src/components/rental/rental.repository.js +67 -0
- package/dist/src/components/rental/rental.repository.js.map +1 -0
- package/dist/src/components/rental-price/rental-price.d.ts +18 -0
- package/dist/src/components/rental-price/rental-price.js +79 -0
- package/dist/src/components/rental-price/rental-price.js.map +1 -0
- package/dist/src/components/rental-price/rental-price.repository.d.ts +8 -0
- package/dist/src/components/rental-price/rental-price.repository.js +67 -0
- package/dist/src/components/rental-price/rental-price.repository.js.map +1 -0
- package/dist/src/database.d.ts +4 -0
- package/dist/src/database.js +27 -0
- package/dist/src/database.js.map +1 -0
- package/dist/src/enum/account-type.enum.d.ts +4 -0
- package/dist/src/enum/account-type.enum.js +9 -0
- package/dist/src/enum/account-type.enum.js.map +1 -0
- package/dist/src/enum/aggrement-status.enum.d.ts +5 -0
- package/dist/src/enum/aggrement-status.enum.js +10 -0
- package/dist/src/enum/aggrement-status.enum.js.map +1 -0
- package/dist/src/enum/booking.enum.d.ts +5 -0
- package/dist/src/enum/booking.enum.js +10 -0
- package/dist/src/enum/booking.enum.js.map +1 -0
- package/dist/src/enum/hirer-signature-status.enum.d.ts +4 -0
- package/dist/src/enum/hirer-signature-status.enum.js +9 -0
- package/dist/src/enum/hirer-signature-status.enum.js.map +1 -0
- package/dist/src/enum/hirer-type.enum.d.ts +4 -0
- package/dist/src/enum/hirer-type.enum.js +9 -0
- package/dist/src/enum/hirer-type.enum.js.map +1 -0
- package/dist/src/enum/index.d.ts +7 -0
- package/dist/src/enum/index.js +16 -0
- package/dist/src/enum/index.js.map +1 -0
- package/dist/src/enum/rental-status.enum.d.ts +9 -0
- package/dist/src/enum/rental-status.enum.js +14 -0
- package/dist/src/enum/rental-status.enum.js.map +1 -0
- package/dist/src/index.d.ts +17 -0
- package/dist/src/index.js +47 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/interfaces/agreement-attr.interface.d.ts +7 -0
- package/dist/src/interfaces/agreement-attr.interface.js +3 -0
- package/dist/src/interfaces/agreement-attr.interface.js.map +1 -0
- package/dist/src/interfaces/booking-attr.interface.d.ts +18 -0
- package/dist/src/interfaces/booking-attr.interface.js +3 -0
- package/dist/src/interfaces/booking-attr.interface.js.map +1 -0
- package/dist/src/interfaces/booking-find-all-search-attr.interface.d.ts +12 -0
- package/dist/src/interfaces/booking-find-all-search-attr.interface.js +3 -0
- package/dist/src/interfaces/booking-find-all-search-attr.interface.js.map +1 -0
- package/dist/src/interfaces/hirer-signature-attr.interface.d.ts +14 -0
- package/dist/src/interfaces/hirer-signature-attr.interface.js +3 -0
- package/dist/src/interfaces/hirer-signature-attr.interface.js.map +1 -0
- package/dist/src/interfaces/index.d.ts +9 -0
- package/dist/src/interfaces/index.js +3 -0
- package/dist/src/interfaces/index.js.map +1 -0
- package/dist/src/interfaces/joint-hirer-attr.interface.d.ts +10 -0
- package/dist/src/interfaces/joint-hirer-attr.interface.js +3 -0
- package/dist/src/interfaces/joint-hirer-attr.interface.js.map +1 -0
- package/dist/src/interfaces/rental-attr.interface.d.ts +24 -0
- package/dist/src/interfaces/rental-attr.interface.js +3 -0
- package/dist/src/interfaces/rental-attr.interface.js.map +1 -0
- package/dist/src/interfaces/rental-find-all-search-attr.interface.d.ts +10 -0
- package/dist/src/interfaces/rental-find-all-search-attr.interface.js +3 -0
- package/dist/src/interfaces/rental-find-all-search-attr.interface.js.map +1 -0
- package/dist/src/interfaces/rental-price-attr.interface.d.ts +7 -0
- package/dist/src/interfaces/rental-price-attr.interface.js +3 -0
- package/dist/src/interfaces/rental-price-attr.interface.js.map +1 -0
- package/dist/src/interfaces/response-hirer-signature-attr.interface.d.ts +15 -0
- package/dist/src/interfaces/response-hirer-signature-attr.interface.js +3 -0
- package/dist/src/interfaces/response-hirer-signature-attr.interface.js.map +1 -0
- package/dist/src/models/agreement.entity.d.ts +12 -0
- package/dist/src/models/agreement.entity.js +65 -0
- package/dist/src/models/agreement.entity.js.map +1 -0
- package/dist/src/models/booking.entity.d.ts +21 -0
- package/dist/src/models/booking.entity.js +128 -0
- package/dist/src/models/booking.entity.js.map +1 -0
- package/dist/src/models/hirer-signature.entity.d.ts +16 -0
- package/dist/src/models/hirer-signature.entity.js +100 -0
- package/dist/src/models/hirer-signature.entity.js.map +1 -0
- package/dist/src/models/index.d.ts +7 -0
- package/dist/src/models/index.js +16 -0
- package/dist/src/models/index.js.map +1 -0
- package/dist/src/models/joint-hirer.entity.d.ts +13 -0
- package/dist/src/models/joint-hirer.entity.js +79 -0
- package/dist/src/models/joint-hirer.entity.js.map +1 -0
- package/dist/src/models/rental-price.entity.d.ts +8 -0
- package/dist/src/models/rental-price.entity.js +59 -0
- package/dist/src/models/rental-price.entity.js.map +1 -0
- package/dist/src/models/rental.entity.d.ts +29 -0
- package/dist/src/models/rental.entity.js +160 -0
- package/dist/src/models/rental.entity.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/eslint.config.mjs +22 -1
- package/migrations/booking-table-migration.js +1 -1
- package/migrations/hirer-signature-table-migration.js +64 -0
- package/migrations/joint-hirer-table-migration.js +1 -1
- package/migrations/rental-aggrement-table-migration.js +1 -1
- package/migrations/rental-price-table-migration.js +1 -1
- package/migrations/rental-table-migrations.js +1 -1
- package/package.json +7 -10
- package/src/components/agreement/agreement.ts +70 -2
- package/src/components/hirer-signature/hirer-signature.repository.ts +54 -0
- package/src/components/hirer-signature/hirer-signature.ts +140 -0
- package/src/components/rental/rental.ts +111 -1
- package/src/database.ts +2 -0
- package/src/enum/hirer-signature-status.enum.ts +4 -0
- package/src/enum/hirer-type.enum.ts +4 -0
- package/src/enum/index.ts +4 -0
- package/src/index.ts +4 -0
- package/src/interfaces/hirer-signature-attr.interface.ts +15 -0
- package/src/interfaces/index.ts +4 -0
- package/src/interfaces/response-hirer-signature-attr.interface.ts +16 -0
- package/src/models/agreement.entity.ts +4 -0
- package/src/models/hirer-signature.entity.ts +81 -0
- package/src/models/index.ts +2 -0
- package/tsconfig.json +1 -0
- package/.eslintrc +0 -16
- package/.eslintrc.js +0 -35
- package/tomei-rental-0.9.4.tgz +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BookingStatusEnum } from '../enum/booking.enum';
|
|
2
|
+
export interface IBookingAttr {
|
|
3
|
+
BookingNo: string;
|
|
4
|
+
CustomerId: string;
|
|
5
|
+
CustomerType: string;
|
|
6
|
+
ItemId: string;
|
|
7
|
+
ItemType: string;
|
|
8
|
+
PriceId: string;
|
|
9
|
+
ScheduledStartDateTime: Date;
|
|
10
|
+
ScheduledEndDateTime: Date;
|
|
11
|
+
BookingFee: number;
|
|
12
|
+
Status: BookingStatusEnum;
|
|
13
|
+
CancelRemarks: string;
|
|
14
|
+
CreatedById: string;
|
|
15
|
+
CreatedAt: Date;
|
|
16
|
+
UpdatedById: string;
|
|
17
|
+
UpdatedAt: Date;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"booking-attr.interface.js","sourceRoot":"","sources":["../../../src/interfaces/booking-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IBookingFindAllSearchAttr {
|
|
2
|
+
BookingNo?: string;
|
|
3
|
+
CustomerId?: string;
|
|
4
|
+
CustomerType?: string;
|
|
5
|
+
ItemId?: string;
|
|
6
|
+
ItemType?: string;
|
|
7
|
+
PriceId?: string;
|
|
8
|
+
ScheduledStartDateTime?: Date;
|
|
9
|
+
ScheduledEndDateTime?: Date;
|
|
10
|
+
BookingFee?: number;
|
|
11
|
+
Status?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"booking-find-all-search-attr.interface.js","sourceRoot":"","sources":["../../../src/interfaces/booking-find-all-search-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HirerSignatureStatusEnum } from '../enum/hirer-signature-status.enum';
|
|
2
|
+
export interface IHirerSignatureAttr {
|
|
3
|
+
HirerSignatureId: string;
|
|
4
|
+
AgreementNo: string;
|
|
5
|
+
HirerType: string;
|
|
6
|
+
CustomerId: string;
|
|
7
|
+
CustomerType: string;
|
|
8
|
+
SignatureStatus: HirerSignatureStatusEnum;
|
|
9
|
+
SignedAt: Date;
|
|
10
|
+
CreatedById: string;
|
|
11
|
+
CreatedAt: Date;
|
|
12
|
+
UpdatedById: string;
|
|
13
|
+
UpdatedAt: Date;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hirer-signature-attr.interface.js","sourceRoot":"","sources":["../../../src/interfaces/hirer-signature-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IRentalAttr } from './rental-attr.interface';
|
|
2
|
+
import { IRentalPriceAttr } from './rental-price-attr.interface';
|
|
3
|
+
import { IRentalFindAllSearchAttr } from './rental-find-all-search-attr.interface';
|
|
4
|
+
import { IBookingAttr } from './booking-attr.interface';
|
|
5
|
+
import { IAgreementAttr } from './agreement-attr.interface';
|
|
6
|
+
import { IBookingFindAllSearchAttr } from './booking-find-all-search-attr.interface';
|
|
7
|
+
import { IHirerSignatureAttr } from './hirer-signature-attr.interface';
|
|
8
|
+
import { IResponseHirerSignature } from './response-hirer-signature-attr.interface';
|
|
9
|
+
export { IRentalAttr, IRentalPriceAttr, IRentalFindAllSearchAttr, IBookingAttr, IAgreementAttr, IBookingFindAllSearchAttr, IHirerSignatureAttr, IResponseHirerSignature, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"joint-hirer-attr.interface.js","sourceRoot":"","sources":["../../../src/interfaces/joint-hirer-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { RentalStatusEnum } from '../enum/rental-status.enum';
|
|
2
|
+
import { RentalAccountTypeEnum } from '../enum/account-type.enum';
|
|
3
|
+
import { IJointHirerAttr } from './joint-hirer-attr.interface';
|
|
4
|
+
export interface IRentalAttr {
|
|
5
|
+
RentalId: string;
|
|
6
|
+
CustomerId: string;
|
|
7
|
+
CustomerType: string;
|
|
8
|
+
ItemId: string;
|
|
9
|
+
ItemType: string;
|
|
10
|
+
PriceId: string;
|
|
11
|
+
StartDateTime: Date;
|
|
12
|
+
EndDateTime: Date;
|
|
13
|
+
CancelRemarks: string;
|
|
14
|
+
TerminateRemarks: string;
|
|
15
|
+
AgreementNo: string;
|
|
16
|
+
AccountType: RentalAccountTypeEnum;
|
|
17
|
+
Status: RentalStatusEnum;
|
|
18
|
+
EscheatmentYN: string;
|
|
19
|
+
CreatedById: string;
|
|
20
|
+
CreatedAt: Date;
|
|
21
|
+
UpdatedById: string;
|
|
22
|
+
UpdatedAt: Date;
|
|
23
|
+
JointHirers?: IJointHirerAttr[];
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rental-attr.interface.js","sourceRoot":"","sources":["../../../src/interfaces/rental-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RentalStatusEnum } from '../enum/rental-status.enum';
|
|
2
|
+
export interface IRentalFindAllSearchAttr {
|
|
3
|
+
Status?: RentalStatusEnum;
|
|
4
|
+
StartDateTime?: Date;
|
|
5
|
+
EndDateTime?: Date;
|
|
6
|
+
ItemId?: string;
|
|
7
|
+
ItemType?: string;
|
|
8
|
+
CustomerId?: string;
|
|
9
|
+
CustomerType?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rental-find-all-search-attr.interface.js","sourceRoot":"","sources":["../../../src/interfaces/rental-find-all-search-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rental-price-attr.interface.js","sourceRoot":"","sources":["../../../src/interfaces/rental-price-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HirerSignatureStatusEnum } from '../enum/hirer-signature-status.enum';
|
|
2
|
+
export interface IResponseHirerSignature {
|
|
3
|
+
HirerSignatureId: string;
|
|
4
|
+
AgreementNo: string;
|
|
5
|
+
HirerType: string;
|
|
6
|
+
CustomerId: string;
|
|
7
|
+
CustomerName: string;
|
|
8
|
+
CustomerType: string;
|
|
9
|
+
SignatureStatus: HirerSignatureStatusEnum;
|
|
10
|
+
SignedAt: Date;
|
|
11
|
+
CreatedById: string;
|
|
12
|
+
CreatedAt: Date;
|
|
13
|
+
UpdatedById: string;
|
|
14
|
+
UpdatedAt: Date;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response-hirer-signature-attr.interface.js","sourceRoot":"","sources":["../../../src/interfaces/response-hirer-signature-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { RentalModel } from './rental.entity';
|
|
3
|
+
import { AggrementStatusEnum } from '../enum/aggrement-status.enum';
|
|
4
|
+
import { HirerSignatureModel } from './hirer-signature.entity';
|
|
5
|
+
export declare class AgreementModel extends Model {
|
|
6
|
+
AgreementNo: string;
|
|
7
|
+
Status: AggrementStatusEnum;
|
|
8
|
+
DateSigned: Date;
|
|
9
|
+
MediaId: string;
|
|
10
|
+
Rentals: RentalModel[];
|
|
11
|
+
HirerSignatures: HirerSignatureModel[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AgreementModel = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const rental_entity_1 = require("./rental.entity");
|
|
15
|
+
const aggrement_status_enum_1 = require("../enum/aggrement-status.enum");
|
|
16
|
+
const hirer_signature_entity_1 = require("./hirer-signature.entity");
|
|
17
|
+
let AgreementModel = class AgreementModel extends sequelize_typescript_1.Model {
|
|
18
|
+
};
|
|
19
|
+
exports.AgreementModel = AgreementModel;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.Column)({
|
|
22
|
+
primaryKey: true,
|
|
23
|
+
allowNull: false,
|
|
24
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
25
|
+
}),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], AgreementModel.prototype, "AgreementNo", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, sequelize_typescript_1.Column)({
|
|
30
|
+
allowNull: false,
|
|
31
|
+
type: sequelize_typescript_1.DataType.STRING(20),
|
|
32
|
+
}),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], AgreementModel.prototype, "Status", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, sequelize_typescript_1.Column)({
|
|
37
|
+
allowNull: true,
|
|
38
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
39
|
+
}),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], AgreementModel.prototype, "DateSigned", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, sequelize_typescript_1.Column)({
|
|
44
|
+
allowNull: true,
|
|
45
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], AgreementModel.prototype, "MediaId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, sequelize_typescript_1.HasMany)(() => rental_entity_1.RentalModel),
|
|
51
|
+
__metadata("design:type", Array)
|
|
52
|
+
], AgreementModel.prototype, "Rentals", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, sequelize_typescript_1.HasMany)(() => hirer_signature_entity_1.HirerSignatureModel),
|
|
55
|
+
__metadata("design:type", Array)
|
|
56
|
+
], AgreementModel.prototype, "HirerSignatures", void 0);
|
|
57
|
+
exports.AgreementModel = AgreementModel = __decorate([
|
|
58
|
+
(0, sequelize_typescript_1.Table)({
|
|
59
|
+
tableName: 'rental_Agreement',
|
|
60
|
+
createdAt: false,
|
|
61
|
+
updatedAt: false,
|
|
62
|
+
timestamps: false,
|
|
63
|
+
})
|
|
64
|
+
], AgreementModel);
|
|
65
|
+
//# sourceMappingURL=agreement.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agreement.entity.js","sourceRoot":"","sources":["../../../src/models/agreement.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA+E;AAC/E,mDAA8C;AAC9C,yEAAoE;AACpE,qEAA+D;AAQxD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAK;CA+BxC,CAAA;AA/BY,wCAAc;AAMzB;IALC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;mDACkB;AAMpB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;8CAC0B;AAM5B;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,+BAAQ,CAAC,IAAI;KACpB,CAAC;8BACU,IAAI;kDAAC;AAMjB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;+CACc;AAGhB;IADC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,2BAAW,CAAC;;+CACJ;AAGvB;IADC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,4CAAmB,CAAC;;uDACI;yBA9B5B,cAAc;IAN1B,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,kBAAkB;QAC7B,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,KAAK;QAChB,UAAU,EAAE,KAAK;KAClB,CAAC;GACW,cAAc,CA+B1B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { RentalPriceModel } from './rental-price.entity';
|
|
3
|
+
import { BookingStatusEnum } from '../enum/booking.enum';
|
|
4
|
+
export declare class BookingModel extends Model {
|
|
5
|
+
BookingNo: string;
|
|
6
|
+
CustomerId: string;
|
|
7
|
+
CustomerType: string;
|
|
8
|
+
ItemId: string;
|
|
9
|
+
ItemType: string;
|
|
10
|
+
PriceId: string;
|
|
11
|
+
ScheduledStartDateTime: Date;
|
|
12
|
+
ScheduledEndDateTime: Date;
|
|
13
|
+
BookingFee: number;
|
|
14
|
+
Status: BookingStatusEnum;
|
|
15
|
+
CancelRemarks: string;
|
|
16
|
+
CreatedById: string;
|
|
17
|
+
CreatedAt: Date;
|
|
18
|
+
UpdatedById: string;
|
|
19
|
+
UpdatedAt: Date;
|
|
20
|
+
RentalPrice: RentalPriceModel;
|
|
21
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BookingModel = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const rental_price_entity_1 = require("./rental-price.entity");
|
|
15
|
+
const booking_enum_1 = require("../enum/booking.enum");
|
|
16
|
+
let BookingModel = class BookingModel extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
exports.BookingModel = BookingModel;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, sequelize_typescript_1.Column)({
|
|
21
|
+
primaryKey: true,
|
|
22
|
+
allowNull: false,
|
|
23
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
24
|
+
}),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], BookingModel.prototype, "BookingNo", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, sequelize_typescript_1.Column)({
|
|
29
|
+
allowNull: false,
|
|
30
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], BookingModel.prototype, "CustomerId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, sequelize_typescript_1.Column)({
|
|
36
|
+
allowNull: false,
|
|
37
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], BookingModel.prototype, "CustomerType", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, sequelize_typescript_1.Column)({
|
|
43
|
+
allowNull: false,
|
|
44
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
45
|
+
}),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], BookingModel.prototype, "ItemId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, sequelize_typescript_1.Column)({
|
|
50
|
+
allowNull: false,
|
|
51
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
52
|
+
}),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], BookingModel.prototype, "ItemType", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, sequelize_typescript_1.ForeignKey)(() => rental_price_entity_1.RentalPriceModel),
|
|
57
|
+
(0, sequelize_typescript_1.Column)({
|
|
58
|
+
allowNull: false,
|
|
59
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
60
|
+
}),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], BookingModel.prototype, "PriceId", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, sequelize_typescript_1.Column)({
|
|
65
|
+
allowNull: false,
|
|
66
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", Date)
|
|
69
|
+
], BookingModel.prototype, "ScheduledStartDateTime", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, sequelize_typescript_1.Column)({
|
|
72
|
+
allowNull: false,
|
|
73
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
74
|
+
}),
|
|
75
|
+
__metadata("design:type", Date)
|
|
76
|
+
], BookingModel.prototype, "ScheduledEndDateTime", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, sequelize_typescript_1.Column)({
|
|
79
|
+
allowNull: true,
|
|
80
|
+
type: sequelize_typescript_1.DataType.DECIMAL(10, 2),
|
|
81
|
+
}),
|
|
82
|
+
__metadata("design:type", Number)
|
|
83
|
+
], BookingModel.prototype, "BookingFee", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, sequelize_typescript_1.Column)({
|
|
86
|
+
allowNull: false,
|
|
87
|
+
type: sequelize_typescript_1.DataType.STRING(20),
|
|
88
|
+
}),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], BookingModel.prototype, "Status", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, sequelize_typescript_1.Column)({
|
|
93
|
+
type: sequelize_typescript_1.DataType.STRING(3000),
|
|
94
|
+
}),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], BookingModel.prototype, "CancelRemarks", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, sequelize_typescript_1.Column)({
|
|
99
|
+
allowNull: false,
|
|
100
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
101
|
+
}),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], BookingModel.prototype, "CreatedById", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
sequelize_typescript_1.CreatedAt,
|
|
106
|
+
__metadata("design:type", Date)
|
|
107
|
+
], BookingModel.prototype, "CreatedAt", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, sequelize_typescript_1.Column)({
|
|
110
|
+
allowNull: false,
|
|
111
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
112
|
+
}),
|
|
113
|
+
__metadata("design:type", String)
|
|
114
|
+
], BookingModel.prototype, "UpdatedById", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
sequelize_typescript_1.UpdatedAt,
|
|
117
|
+
__metadata("design:type", Date)
|
|
118
|
+
], BookingModel.prototype, "UpdatedAt", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, sequelize_typescript_1.BelongsTo)(() => rental_price_entity_1.RentalPriceModel),
|
|
121
|
+
__metadata("design:type", rental_price_entity_1.RentalPriceModel)
|
|
122
|
+
], BookingModel.prototype, "RentalPrice", void 0);
|
|
123
|
+
exports.BookingModel = BookingModel = __decorate([
|
|
124
|
+
(0, sequelize_typescript_1.Table)({
|
|
125
|
+
tableName: 'booking_Booking',
|
|
126
|
+
})
|
|
127
|
+
], BookingModel);
|
|
128
|
+
//# sourceMappingURL=booking.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"booking.entity.js","sourceRoot":"","sources":["../../../src/models/booking.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAS8B;AAC9B,+DAAyD;AACzD,uDAAyD;AAKlD,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAK;CAwFtC,CAAA;AAxFY,oCAAY;AAMvB;IALC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;+CACgB;AAMlB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;gDACiB;AAMnB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;kDACmB;AAMrB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;4CACa;AAMf;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;8CACe;AAOjB;IALC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,sCAAgB,CAAC;IAClC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;6CACc;AAMhB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI;KACpB,CAAC;8BACsB,IAAI;4DAAC;AAM7B;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI;KACpB,CAAC;8BACoB,IAAI;0DAAC;AAM3B;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KAC9B,CAAC;;gDACiB;AAMnB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;4CACwB;AAK1B;IAHC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;KAC5B,CAAC;;mDACoB;AAMtB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;iDACkB;AAGpB;IADC,gCAAS;8BACC,IAAI;+CAAC;AAMhB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;iDACkB;AAGpB;IADC,gCAAS;8BACC,IAAI;+CAAC;AAGhB;IADC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,sCAAgB,CAAC;8BACrB,sCAAgB;iDAAC;uBAvFnB,YAAY;IAHxB,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,iBAAiB;KAC7B,CAAC;GACW,YAAY,CAwFxB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { AgreementModel } from './agreement.entity';
|
|
3
|
+
export declare class HirerSignatureModel extends Model {
|
|
4
|
+
HirerSignatureId: string;
|
|
5
|
+
AgreementNo: string;
|
|
6
|
+
HirerType: string;
|
|
7
|
+
CustomerId: string;
|
|
8
|
+
CustomerType: string;
|
|
9
|
+
SignatureStatus: string;
|
|
10
|
+
SignedAt: Date;
|
|
11
|
+
CreatedById: string;
|
|
12
|
+
CreatedAt: Date;
|
|
13
|
+
UpdatedById: string;
|
|
14
|
+
UpdatedAt: Date;
|
|
15
|
+
Agreement: AgreementModel;
|
|
16
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HirerSignatureModel = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const agreement_entity_1 = require("./agreement.entity");
|
|
15
|
+
let HirerSignatureModel = class HirerSignatureModel extends sequelize_typescript_1.Model {
|
|
16
|
+
};
|
|
17
|
+
exports.HirerSignatureModel = HirerSignatureModel;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, sequelize_typescript_1.Column)({
|
|
20
|
+
primaryKey: true,
|
|
21
|
+
allowNull: false,
|
|
22
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
23
|
+
}),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], HirerSignatureModel.prototype, "HirerSignatureId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, sequelize_typescript_1.ForeignKey)(() => agreement_entity_1.AgreementModel),
|
|
28
|
+
(0, sequelize_typescript_1.Column)({
|
|
29
|
+
allowNull: false,
|
|
30
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], HirerSignatureModel.prototype, "AgreementNo", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, sequelize_typescript_1.Column)({
|
|
36
|
+
allowNull: false,
|
|
37
|
+
type: sequelize_typescript_1.DataType.STRING(10),
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], HirerSignatureModel.prototype, "HirerType", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, sequelize_typescript_1.Column)({
|
|
43
|
+
allowNull: false,
|
|
44
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
45
|
+
}),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], HirerSignatureModel.prototype, "CustomerId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, sequelize_typescript_1.Column)({
|
|
50
|
+
allowNull: false,
|
|
51
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
52
|
+
}),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], HirerSignatureModel.prototype, "CustomerType", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, sequelize_typescript_1.Column)({
|
|
57
|
+
allowNull: false,
|
|
58
|
+
type: sequelize_typescript_1.DataType.STRING(10),
|
|
59
|
+
}),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], HirerSignatureModel.prototype, "SignatureStatus", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, sequelize_typescript_1.Column)({
|
|
64
|
+
allowNull: false,
|
|
65
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
66
|
+
}),
|
|
67
|
+
__metadata("design:type", Date)
|
|
68
|
+
], HirerSignatureModel.prototype, "SignedAt", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, sequelize_typescript_1.Column)({
|
|
71
|
+
allowNull: false,
|
|
72
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
73
|
+
}),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], HirerSignatureModel.prototype, "CreatedById", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
sequelize_typescript_1.CreatedAt,
|
|
78
|
+
__metadata("design:type", Date)
|
|
79
|
+
], HirerSignatureModel.prototype, "CreatedAt", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, sequelize_typescript_1.Column)({
|
|
82
|
+
allowNull: false,
|
|
83
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
84
|
+
}),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], HirerSignatureModel.prototype, "UpdatedById", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
sequelize_typescript_1.UpdatedAt,
|
|
89
|
+
__metadata("design:type", Date)
|
|
90
|
+
], HirerSignatureModel.prototype, "UpdatedAt", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, sequelize_typescript_1.BelongsTo)(() => agreement_entity_1.AgreementModel),
|
|
93
|
+
__metadata("design:type", agreement_entity_1.AgreementModel)
|
|
94
|
+
], HirerSignatureModel.prototype, "Agreement", void 0);
|
|
95
|
+
exports.HirerSignatureModel = HirerSignatureModel = __decorate([
|
|
96
|
+
(0, sequelize_typescript_1.Table)({
|
|
97
|
+
tableName: 'rental_HirerSignature',
|
|
98
|
+
})
|
|
99
|
+
], HirerSignatureModel);
|
|
100
|
+
//# sourceMappingURL=hirer-signature.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hirer-signature.entity.js","sourceRoot":"","sources":["../../../src/models/hirer-signature.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAS8B;AAC9B,yDAAoD;AAK7C,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,4BAAK;CAiE7C,CAAA;AAjEY,kDAAmB;AAM9B;IALC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;6DACuB;AAOzB;IALC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,iCAAc,CAAC;IAChC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;wDACkB;AAMpB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;sDACgB;AAMlB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;uDACiB;AAMnB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;yDACmB;AAMrB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;4DACsB;AAMxB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI;KACpB,CAAC;8BACQ,IAAI;qDAAC;AAMf;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;wDACkB;AAGpB;IADC,gCAAS;8BACC,IAAI;sDAAC;AAMhB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;wDACkB;AAGpB;IADC,gCAAS;8BACC,IAAI;sDAAC;AAGhB;IADC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,iCAAc,CAAC;8BACrB,iCAAc;sDAAC;8BAhEf,mBAAmB;IAH/B,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,uBAAuB;KACnC,CAAC;GACW,mBAAmB,CAiE/B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RentalModel } from './rental.entity';
|
|
2
|
+
import { RentalPriceModel } from './rental-price.entity';
|
|
3
|
+
import { BookingModel } from './booking.entity';
|
|
4
|
+
import { JointHirerModel } from './joint-hirer.entity';
|
|
5
|
+
import { AgreementModel } from './agreement.entity';
|
|
6
|
+
import { HirerSignatureModel } from './hirer-signature.entity';
|
|
7
|
+
export { RentalModel, RentalPriceModel, BookingModel, JointHirerModel, AgreementModel, HirerSignatureModel, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HirerSignatureModel = exports.AgreementModel = exports.JointHirerModel = exports.BookingModel = exports.RentalPriceModel = exports.RentalModel = void 0;
|
|
4
|
+
const rental_entity_1 = require("./rental.entity");
|
|
5
|
+
Object.defineProperty(exports, "RentalModel", { enumerable: true, get: function () { return rental_entity_1.RentalModel; } });
|
|
6
|
+
const rental_price_entity_1 = require("./rental-price.entity");
|
|
7
|
+
Object.defineProperty(exports, "RentalPriceModel", { enumerable: true, get: function () { return rental_price_entity_1.RentalPriceModel; } });
|
|
8
|
+
const booking_entity_1 = require("./booking.entity");
|
|
9
|
+
Object.defineProperty(exports, "BookingModel", { enumerable: true, get: function () { return booking_entity_1.BookingModel; } });
|
|
10
|
+
const joint_hirer_entity_1 = require("./joint-hirer.entity");
|
|
11
|
+
Object.defineProperty(exports, "JointHirerModel", { enumerable: true, get: function () { return joint_hirer_entity_1.JointHirerModel; } });
|
|
12
|
+
const agreement_entity_1 = require("./agreement.entity");
|
|
13
|
+
Object.defineProperty(exports, "AgreementModel", { enumerable: true, get: function () { return agreement_entity_1.AgreementModel; } });
|
|
14
|
+
const hirer_signature_entity_1 = require("./hirer-signature.entity");
|
|
15
|
+
Object.defineProperty(exports, "HirerSignatureModel", { enumerable: true, get: function () { return hirer_signature_entity_1.HirerSignatureModel; } });
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,mDAA8C;AAQ5C,4FARO,2BAAW,OAQP;AAPb,+DAAyD;AAQvD,iGARO,sCAAgB,OAQP;AAPlB,qDAAgD;AAQ9C,6FARO,6BAAY,OAQP;AAPd,6DAAuD;AAQrD,gGARO,oCAAe,OAQP;AAPjB,yDAAoD;AAQlD,+FARO,iCAAc,OAQP;AAPhB,qEAA+D;AAQ7D,oGARO,4CAAmB,OAQP"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { RentalModel } from './rental.entity';
|
|
3
|
+
export declare class JointHirerModel extends Model {
|
|
4
|
+
HirerId: string;
|
|
5
|
+
RentalId: string;
|
|
6
|
+
CustomerId: string;
|
|
7
|
+
CustomerType: string;
|
|
8
|
+
CreatedById: string;
|
|
9
|
+
CreatedAt: Date;
|
|
10
|
+
UpdatedById: string;
|
|
11
|
+
UpdatedAt: Date;
|
|
12
|
+
RentalPrice: RentalModel;
|
|
13
|
+
}
|