@tomei/rental 0.12.3 → 0.12.4
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/.commitlintrc.json +22 -22
- package/.gitlab-ci.yml +16 -16
- package/.husky/commit-msg +15 -15
- package/.husky/pre-commit +7 -7
- package/.prettierrc +4 -4
- package/Jenkinsfile +51 -51
- package/README.md +8 -8
- 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 +17 -0
- package/dist/src/components/agreement/agreement.js +50 -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/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 +59 -0
- package/dist/src/components/rental/rental.js +619 -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 +25 -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/index.d.ts +5 -0
- package/dist/src/enum/index.js +12 -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 +15 -0
- package/dist/src/index.js +43 -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/index.d.ts +7 -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/models/agreement.entity.d.ts +10 -0
- package/dist/src/models/agreement.entity.js +60 -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/index.d.ts +6 -0
- package/dist/src/models/index.js +14 -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 +58 -37
- package/jest.config.js +10 -10
- package/migrations/booking-table-migration.js +79 -79
- package/migrations/joint-hirer-table-migration.js +52 -52
- package/migrations/rental-aggrement-table-migration.js +30 -30
- package/migrations/rental-price-table-migration.js +32 -32
- package/migrations/rental-table-migrations.js +96 -96
- package/package.json +75 -78
- package/sonar-project.properties +12 -12
- package/src/components/agreement/agreement.repository.ts +54 -54
- package/src/components/agreement/agreement.ts +49 -49
- package/src/components/booking/booking.repository.ts +51 -51
- package/src/components/booking/booking.ts +492 -492
- package/src/components/joint-hirer/joint-hirer.repository.ts +54 -54
- package/src/components/joint-hirer/joint-hirer.ts +137 -137
- package/src/components/rental/rental.repository.ts +51 -51
- package/src/components/rental/rental.ts +963 -963
- package/src/components/rental-price/rental-price.repository.ts +54 -54
- package/src/components/rental-price/rental-price.ts +100 -100
- package/src/database.ts +27 -27
- package/src/enum/account-type.enum.ts +4 -4
- package/src/enum/booking.enum.ts +5 -5
- package/src/enum/index.ts +11 -11
- package/src/enum/rental-status.enum.ts +39 -39
- package/src/index.ts +28 -28
- package/src/interfaces/agreement-attr.interface.ts +7 -7
- package/src/interfaces/booking-attr.interface.ts +19 -19
- package/src/interfaces/booking-find-all-search-attr.interface.ts +12 -12
- package/src/interfaces/index.ts +15 -15
- package/src/interfaces/joint-hirer-attr.interface.ts +10 -10
- package/src/interfaces/rental-attr.interface.ts +25 -25
- package/src/interfaces/rental-find-all-search-attr.interface.ts +11 -11
- package/src/interfaces/rental-price-attr.interface.ts +7 -7
- package/src/models/agreement.entity.ts +39 -39
- package/src/models/booking.entity.ts +105 -105
- package/src/models/index.ts +13 -13
- package/src/models/joint-hirer.entity.ts +63 -63
- package/src/models/rental-price.entity.ts +38 -38
- package/src/models/rental.entity.ts +133 -133
- package/tsconfig.build.json +5 -5
- package/tsconfig.json +24 -23
- package/.eslintrc +0 -16
- package/.eslintrc.js +0 -35
- package/tomei-rental-0.9.4.tgz +0 -0
|
@@ -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,10 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { RentalModel } from './rental.entity';
|
|
3
|
+
import { AggrementStatusEnum } from '../enum/aggrement-status.enum';
|
|
4
|
+
export declare class AgreementModel extends Model {
|
|
5
|
+
AgreementNo: string;
|
|
6
|
+
Status: AggrementStatusEnum;
|
|
7
|
+
DateSigned: Date;
|
|
8
|
+
MediaId: string;
|
|
9
|
+
Rentals: RentalModel[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
let AgreementModel = class AgreementModel extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
exports.AgreementModel = AgreementModel;
|
|
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
|
+
], AgreementModel.prototype, "AgreementNo", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, sequelize_typescript_1.Column)({
|
|
29
|
+
allowNull: false,
|
|
30
|
+
type: sequelize_typescript_1.DataType.STRING(20),
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], AgreementModel.prototype, "Status", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, sequelize_typescript_1.Column)({
|
|
36
|
+
allowNull: true,
|
|
37
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", Date)
|
|
40
|
+
], AgreementModel.prototype, "DateSigned", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, sequelize_typescript_1.Column)({
|
|
43
|
+
allowNull: true,
|
|
44
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
45
|
+
}),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], AgreementModel.prototype, "MediaId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, sequelize_typescript_1.HasMany)(() => rental_entity_1.RentalModel),
|
|
50
|
+
__metadata("design:type", Array)
|
|
51
|
+
], AgreementModel.prototype, "Rentals", void 0);
|
|
52
|
+
exports.AgreementModel = AgreementModel = __decorate([
|
|
53
|
+
(0, sequelize_typescript_1.Table)({
|
|
54
|
+
tableName: 'rental_Agreement',
|
|
55
|
+
createdAt: false,
|
|
56
|
+
updatedAt: false,
|
|
57
|
+
timestamps: false,
|
|
58
|
+
})
|
|
59
|
+
], AgreementModel);
|
|
60
|
+
//# 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;AAQ7D,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAK;CA4BxC,CAAA;AA5BY,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;yBA3BZ,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,CA4B1B"}
|
|
@@ -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,6 @@
|
|
|
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
|
+
export { RentalModel, RentalPriceModel, BookingModel, JointHirerModel, AgreementModel, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
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
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,mDAA8C;AAO5C,4FAPO,2BAAW,OAOP;AANb,+DAAyD;AAOvD,iGAPO,sCAAgB,OAOP;AANlB,qDAAgD;AAO9C,6FAPO,6BAAY,OAOP;AANd,6DAAuD;AAOrD,gGAPO,oCAAe,OAOP;AANjB,yDAAoD;AAOlD,+FAPO,iCAAc,OAOP"}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.JointHirerModel = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const rental_entity_1 = require("./rental.entity");
|
|
15
|
+
let JointHirerModel = class JointHirerModel extends sequelize_typescript_1.Model {
|
|
16
|
+
};
|
|
17
|
+
exports.JointHirerModel = JointHirerModel;
|
|
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
|
+
], JointHirerModel.prototype, "HirerId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, sequelize_typescript_1.ForeignKey)(() => rental_entity_1.RentalModel),
|
|
28
|
+
(0, sequelize_typescript_1.Column)({
|
|
29
|
+
allowNull: false,
|
|
30
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], JointHirerModel.prototype, "RentalId", 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
|
+
], JointHirerModel.prototype, "CustomerId", 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
|
+
], JointHirerModel.prototype, "CustomerType", 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
|
+
], JointHirerModel.prototype, "CreatedById", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
sequelize_typescript_1.CreatedAt,
|
|
57
|
+
__metadata("design:type", Date)
|
|
58
|
+
], JointHirerModel.prototype, "CreatedAt", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, sequelize_typescript_1.Column)({
|
|
61
|
+
allowNull: false,
|
|
62
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
63
|
+
}),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], JointHirerModel.prototype, "UpdatedById", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
sequelize_typescript_1.UpdatedAt,
|
|
68
|
+
__metadata("design:type", Date)
|
|
69
|
+
], JointHirerModel.prototype, "UpdatedAt", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, sequelize_typescript_1.BelongsTo)(() => rental_entity_1.RentalModel),
|
|
72
|
+
__metadata("design:type", rental_entity_1.RentalModel)
|
|
73
|
+
], JointHirerModel.prototype, "RentalPrice", void 0);
|
|
74
|
+
exports.JointHirerModel = JointHirerModel = __decorate([
|
|
75
|
+
(0, sequelize_typescript_1.Table)({
|
|
76
|
+
tableName: 'rental_JointHirer',
|
|
77
|
+
})
|
|
78
|
+
], JointHirerModel);
|
|
79
|
+
//# sourceMappingURL=joint-hirer.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"joint-hirer.entity.js","sourceRoot":"","sources":["../../../src/models/joint-hirer.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAS8B;AAC9B,mDAA8C;AAKvC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,4BAAK;CA+CzC,CAAA;AA/CY,0CAAe;AAM1B;IALC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;gDACc;AAOhB;IALC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,2BAAW,CAAC;IAC7B,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;iDACe;AAMjB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;mDACiB;AAMnB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;qDACmB;AAMrB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;oDACkB;AAGpB;IADC,gCAAS;8BACC,IAAI;kDAAC;AAMhB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;oDACkB;AAGpB;IADC,gCAAS;8BACC,IAAI;kDAAC;AAGhB;IADC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,2BAAW,CAAC;8BAChB,2BAAW;oDAAC;0BA9Cd,eAAe;IAH3B,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,mBAAmB;KAC/B,CAAC;GACW,eAAe,CA+C3B"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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.RentalPriceModel = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
let RentalPriceModel = class RentalPriceModel extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
exports.RentalPriceModel = RentalPriceModel;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, sequelize_typescript_1.Column)({
|
|
19
|
+
primaryKey: true,
|
|
20
|
+
allowNull: false,
|
|
21
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], RentalPriceModel.prototype, "PriceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, sequelize_typescript_1.Column)({
|
|
27
|
+
allowNull: false,
|
|
28
|
+
type: sequelize_typescript_1.DataType.DECIMAL(10, 2),
|
|
29
|
+
}),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], RentalPriceModel.prototype, "RetailPrice", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, sequelize_typescript_1.Column)({
|
|
34
|
+
allowNull: false,
|
|
35
|
+
type: sequelize_typescript_1.DataType.CHAR(3),
|
|
36
|
+
}),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], RentalPriceModel.prototype, "Currency", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, sequelize_typescript_1.Column)({
|
|
41
|
+
type: sequelize_typescript_1.DataType.STRING(10),
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], RentalPriceModel.prototype, "PromoCode", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, sequelize_typescript_1.Column)({
|
|
47
|
+
type: sequelize_typescript_1.DataType.STRING(3000),
|
|
48
|
+
}),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], RentalPriceModel.prototype, "Remarks", void 0);
|
|
51
|
+
exports.RentalPriceModel = RentalPriceModel = __decorate([
|
|
52
|
+
(0, sequelize_typescript_1.Table)({
|
|
53
|
+
tableName: 'rental_Price',
|
|
54
|
+
timestamps: false,
|
|
55
|
+
createdAt: false,
|
|
56
|
+
updatedAt: false,
|
|
57
|
+
})
|
|
58
|
+
], RentalPriceModel);
|
|
59
|
+
//# sourceMappingURL=rental-price.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rental-price.entity.js","sourceRoot":"","sources":["../../../src/models/rental-price.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAsE;AAQ/D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,4BAAK;CA6B1C,CAAA;AA7BY,4CAAgB;AAM3B;IALC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;iDACc;AAMhB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KAC9B,CAAC;;qDACkB;AAMpB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;KACvB,CAAC;;kDACe;AAKjB;IAHC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;mDACgB;AAKlB;IAHC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;KAC5B,CAAC;;iDACc;2BA5BL,gBAAgB;IAN5B,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,cAAc;QACzB,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,KAAK;KACjB,CAAC;GACW,gBAAgB,CA6B5B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { RentalPriceModel } from './rental-price.entity';
|
|
3
|
+
import { RentalStatusEnum } from '../enum/rental-status.enum';
|
|
4
|
+
import { JointHirerModel } from './joint-hirer.entity';
|
|
5
|
+
import { RentalAccountTypeEnum } from '../enum/account-type.enum';
|
|
6
|
+
import { AgreementModel } from './agreement.entity';
|
|
7
|
+
export declare class RentalModel extends Model {
|
|
8
|
+
RentalId: string;
|
|
9
|
+
CustomerId: string;
|
|
10
|
+
CustomerType: string;
|
|
11
|
+
ItemId: string;
|
|
12
|
+
ItemType: string;
|
|
13
|
+
PriceId: string;
|
|
14
|
+
StartDateTime: Date;
|
|
15
|
+
EndDateTime: Date;
|
|
16
|
+
Status: RentalStatusEnum;
|
|
17
|
+
CancelRemarks: string;
|
|
18
|
+
TerminateRemarks: string;
|
|
19
|
+
EscheatmentYN: string;
|
|
20
|
+
AgreementNo: string;
|
|
21
|
+
AccountType: RentalAccountTypeEnum;
|
|
22
|
+
CreatedById: string;
|
|
23
|
+
CreatedAt: Date;
|
|
24
|
+
UpdatedById: string;
|
|
25
|
+
UpdatedAt: Date;
|
|
26
|
+
RentalPrice: RentalPriceModel;
|
|
27
|
+
Agreement: AgreementModel;
|
|
28
|
+
JointHirers: JointHirerModel[];
|
|
29
|
+
}
|