@tomei/rental 0.12.0 → 0.12.3
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/eslint.config.mjs +37 -0
- package/migrations/booking-table-migration.js +1 -1
- 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 +33 -30
- package/src/components/booking/booking.ts +1 -1
- package/src/components/joint-hirer/joint-hirer.ts +137 -137
- package/src/components/rental/rental.ts +7 -10
- package/.eslintignore +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -18
- package/dist/index.js.map +0 -1
- package/dist/src/components/agreement/agreement.d.ts +0 -17
- package/dist/src/components/agreement/agreement.js +0 -50
- package/dist/src/components/agreement/agreement.js.map +0 -1
- package/dist/src/components/agreement/agreement.repository.d.ts +0 -8
- package/dist/src/components/agreement/agreement.repository.js +0 -67
- package/dist/src/components/agreement/agreement.repository.js.map +0 -1
- package/dist/src/components/booking/booking.d.ts +0 -46
- package/dist/src/components/booking/booking.js +0 -314
- package/dist/src/components/booking/booking.js.map +0 -1
- package/dist/src/components/booking/booking.repository.d.ts +0 -8
- package/dist/src/components/booking/booking.repository.js +0 -67
- package/dist/src/components/booking/booking.repository.js.map +0 -1
- package/dist/src/components/joint-hirer/joint-hirer.d.ts +0 -23
- package/dist/src/components/joint-hirer/joint-hirer.js +0 -106
- package/dist/src/components/joint-hirer/joint-hirer.js.map +0 -1
- package/dist/src/components/joint-hirer/joint-hirer.repository.d.ts +0 -8
- package/dist/src/components/joint-hirer/joint-hirer.repository.js +0 -67
- package/dist/src/components/joint-hirer/joint-hirer.repository.js.map +0 -1
- package/dist/src/components/rental/rental.d.ts +0 -59
- package/dist/src/components/rental/rental.js +0 -619
- package/dist/src/components/rental/rental.js.map +0 -1
- package/dist/src/components/rental/rental.repository.d.ts +0 -8
- package/dist/src/components/rental/rental.repository.js +0 -67
- package/dist/src/components/rental/rental.repository.js.map +0 -1
- package/dist/src/components/rental-price/rental-price.d.ts +0 -18
- package/dist/src/components/rental-price/rental-price.js +0 -79
- package/dist/src/components/rental-price/rental-price.js.map +0 -1
- package/dist/src/components/rental-price/rental-price.repository.d.ts +0 -8
- package/dist/src/components/rental-price/rental-price.repository.js +0 -67
- package/dist/src/components/rental-price/rental-price.repository.js.map +0 -1
- package/dist/src/database.d.ts +0 -4
- package/dist/src/database.js +0 -26
- package/dist/src/database.js.map +0 -1
- package/dist/src/enum/account-type.enum.d.ts +0 -4
- package/dist/src/enum/account-type.enum.js +0 -9
- package/dist/src/enum/account-type.enum.js.map +0 -1
- package/dist/src/enum/aggrement-status.enum.d.ts +0 -5
- package/dist/src/enum/aggrement-status.enum.js +0 -10
- package/dist/src/enum/aggrement-status.enum.js.map +0 -1
- package/dist/src/enum/booking.enum.d.ts +0 -5
- package/dist/src/enum/booking.enum.js +0 -10
- package/dist/src/enum/booking.enum.js.map +0 -1
- package/dist/src/enum/index.d.ts +0 -5
- package/dist/src/enum/index.js +0 -12
- package/dist/src/enum/index.js.map +0 -1
- package/dist/src/enum/rental-status.enum.d.ts +0 -9
- package/dist/src/enum/rental-status.enum.js +0 -14
- package/dist/src/enum/rental-status.enum.js.map +0 -1
- package/dist/src/index.d.ts +0 -15
- package/dist/src/index.js +0 -43
- package/dist/src/index.js.map +0 -1
- package/dist/src/interfaces/agreement-attr.interface.d.ts +0 -7
- package/dist/src/interfaces/agreement-attr.interface.js +0 -3
- package/dist/src/interfaces/agreement-attr.interface.js.map +0 -1
- package/dist/src/interfaces/booking-attr.interface.d.ts +0 -18
- package/dist/src/interfaces/booking-attr.interface.js +0 -3
- package/dist/src/interfaces/booking-attr.interface.js.map +0 -1
- package/dist/src/interfaces/booking-find-all-search-attr.interface.d.ts +0 -12
- package/dist/src/interfaces/booking-find-all-search-attr.interface.js +0 -3
- package/dist/src/interfaces/booking-find-all-search-attr.interface.js.map +0 -1
- package/dist/src/interfaces/index.d.ts +0 -7
- package/dist/src/interfaces/index.js +0 -3
- package/dist/src/interfaces/index.js.map +0 -1
- package/dist/src/interfaces/joint-hirer-attr.interface.d.ts +0 -10
- package/dist/src/interfaces/joint-hirer-attr.interface.js +0 -3
- package/dist/src/interfaces/joint-hirer-attr.interface.js.map +0 -1
- package/dist/src/interfaces/rental-attr.interface.d.ts +0 -24
- package/dist/src/interfaces/rental-attr.interface.js +0 -3
- package/dist/src/interfaces/rental-attr.interface.js.map +0 -1
- package/dist/src/interfaces/rental-find-all-search-attr.interface.d.ts +0 -10
- package/dist/src/interfaces/rental-find-all-search-attr.interface.js +0 -3
- package/dist/src/interfaces/rental-find-all-search-attr.interface.js.map +0 -1
- package/dist/src/interfaces/rental-price-attr.interface.d.ts +0 -7
- package/dist/src/interfaces/rental-price-attr.interface.js +0 -3
- package/dist/src/interfaces/rental-price-attr.interface.js.map +0 -1
- package/dist/src/models/agreement.entity.d.ts +0 -10
- package/dist/src/models/agreement.entity.js +0 -60
- package/dist/src/models/agreement.entity.js.map +0 -1
- package/dist/src/models/booking.entity.d.ts +0 -21
- package/dist/src/models/booking.entity.js +0 -128
- package/dist/src/models/booking.entity.js.map +0 -1
- package/dist/src/models/index.d.ts +0 -6
- package/dist/src/models/index.js +0 -14
- package/dist/src/models/index.js.map +0 -1
- package/dist/src/models/joint-hirer.entity.d.ts +0 -13
- package/dist/src/models/joint-hirer.entity.js +0 -79
- package/dist/src/models/joint-hirer.entity.js.map +0 -1
- package/dist/src/models/rental-price.entity.d.ts +0 -8
- package/dist/src/models/rental-price.entity.js +0 -59
- package/dist/src/models/rental-price.entity.js.map +0 -1
- package/dist/src/models/rental.entity.d.ts +0 -29
- package/dist/src/models/rental.entity.js +0 -160
- package/dist/src/models/rental.entity.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rental-find-all-search-attr.interface.js","sourceRoot":"","sources":["../../../src/interfaces/rental-find-all-search-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rental-price-attr.interface.js","sourceRoot":"","sources":["../../../src/interfaces/rental-price-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
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
|
-
__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
|
-
], AgreementModel.prototype, "AgreementNo", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, sequelize_typescript_1.Column)({
|
|
28
|
-
allowNull: false,
|
|
29
|
-
type: sequelize_typescript_1.DataType.STRING(20),
|
|
30
|
-
}),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], AgreementModel.prototype, "Status", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, sequelize_typescript_1.Column)({
|
|
35
|
-
allowNull: true,
|
|
36
|
-
type: sequelize_typescript_1.DataType.DATE,
|
|
37
|
-
}),
|
|
38
|
-
__metadata("design:type", Date)
|
|
39
|
-
], AgreementModel.prototype, "DateSigned", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, sequelize_typescript_1.Column)({
|
|
42
|
-
allowNull: true,
|
|
43
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
44
|
-
}),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], AgreementModel.prototype, "MediaId", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, sequelize_typescript_1.HasMany)(() => rental_entity_1.RentalModel),
|
|
49
|
-
__metadata("design:type", Array)
|
|
50
|
-
], AgreementModel.prototype, "Rentals", void 0);
|
|
51
|
-
AgreementModel = __decorate([
|
|
52
|
-
(0, sequelize_typescript_1.Table)({
|
|
53
|
-
tableName: 'rental_Agreement',
|
|
54
|
-
createdAt: false,
|
|
55
|
-
updatedAt: false,
|
|
56
|
-
timestamps: false,
|
|
57
|
-
})
|
|
58
|
-
], AgreementModel);
|
|
59
|
-
exports.AgreementModel = AgreementModel;
|
|
60
|
-
//# sourceMappingURL=agreement.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AA3BC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;mDACkB;AAEpB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;8CAC0B;AAE5B;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,+BAAQ,CAAC,IAAI;KACpB,CAAC;8BACU,IAAI;kDAAC;AAEjB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;+CACc;AAEhB;IAAC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,2BAAW,CAAC;;+CACJ;AA3BZ,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;AA5BY,wCAAc"}
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
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
|
-
__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
|
-
], BookingModel.prototype, "BookingNo", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, sequelize_typescript_1.Column)({
|
|
28
|
-
allowNull: false,
|
|
29
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
30
|
-
}),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], BookingModel.prototype, "CustomerId", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, sequelize_typescript_1.Column)({
|
|
35
|
-
allowNull: false,
|
|
36
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
37
|
-
}),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], BookingModel.prototype, "CustomerType", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, sequelize_typescript_1.Column)({
|
|
42
|
-
allowNull: false,
|
|
43
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
44
|
-
}),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], BookingModel.prototype, "ItemId", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, sequelize_typescript_1.Column)({
|
|
49
|
-
allowNull: false,
|
|
50
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
51
|
-
}),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], BookingModel.prototype, "ItemType", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, sequelize_typescript_1.ForeignKey)(() => rental_price_entity_1.RentalPriceModel),
|
|
56
|
-
(0, sequelize_typescript_1.Column)({
|
|
57
|
-
allowNull: false,
|
|
58
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
59
|
-
}),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], BookingModel.prototype, "PriceId", 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
|
-
], BookingModel.prototype, "ScheduledStartDateTime", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, sequelize_typescript_1.Column)({
|
|
71
|
-
allowNull: false,
|
|
72
|
-
type: sequelize_typescript_1.DataType.DATE,
|
|
73
|
-
}),
|
|
74
|
-
__metadata("design:type", Date)
|
|
75
|
-
], BookingModel.prototype, "ScheduledEndDateTime", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, sequelize_typescript_1.Column)({
|
|
78
|
-
allowNull: true,
|
|
79
|
-
type: sequelize_typescript_1.DataType.DECIMAL(10, 2),
|
|
80
|
-
}),
|
|
81
|
-
__metadata("design:type", Number)
|
|
82
|
-
], BookingModel.prototype, "BookingFee", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, sequelize_typescript_1.Column)({
|
|
85
|
-
allowNull: false,
|
|
86
|
-
type: sequelize_typescript_1.DataType.STRING(20),
|
|
87
|
-
}),
|
|
88
|
-
__metadata("design:type", String)
|
|
89
|
-
], BookingModel.prototype, "Status", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, sequelize_typescript_1.Column)({
|
|
92
|
-
type: sequelize_typescript_1.DataType.STRING(3000),
|
|
93
|
-
}),
|
|
94
|
-
__metadata("design:type", String)
|
|
95
|
-
], BookingModel.prototype, "CancelRemarks", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, sequelize_typescript_1.Column)({
|
|
98
|
-
allowNull: false,
|
|
99
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
100
|
-
}),
|
|
101
|
-
__metadata("design:type", String)
|
|
102
|
-
], BookingModel.prototype, "CreatedById", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
sequelize_typescript_1.CreatedAt,
|
|
105
|
-
__metadata("design:type", Date)
|
|
106
|
-
], BookingModel.prototype, "CreatedAt", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
(0, sequelize_typescript_1.Column)({
|
|
109
|
-
allowNull: false,
|
|
110
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
111
|
-
}),
|
|
112
|
-
__metadata("design:type", String)
|
|
113
|
-
], BookingModel.prototype, "UpdatedById", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
sequelize_typescript_1.UpdatedAt,
|
|
116
|
-
__metadata("design:type", Date)
|
|
117
|
-
], BookingModel.prototype, "UpdatedAt", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
(0, sequelize_typescript_1.BelongsTo)(() => rental_price_entity_1.RentalPriceModel),
|
|
120
|
-
__metadata("design:type", rental_price_entity_1.RentalPriceModel)
|
|
121
|
-
], BookingModel.prototype, "RentalPrice", void 0);
|
|
122
|
-
BookingModel = __decorate([
|
|
123
|
-
(0, sequelize_typescript_1.Table)({
|
|
124
|
-
tableName: 'booking_Booking',
|
|
125
|
-
})
|
|
126
|
-
], BookingModel);
|
|
127
|
-
exports.BookingModel = BookingModel;
|
|
128
|
-
//# sourceMappingURL=booking.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AAvFC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;+CACgB;AAElB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;gDACiB;AAEnB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;kDACmB;AAErB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;4CACa;AAEf;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;8CACe;AAEjB;IAAC,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;AAEhB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI;KACpB,CAAC;8BACsB,IAAI;4DAAC;AAE7B;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI;KACpB,CAAC;8BACoB,IAAI;0DAAC;AAE3B;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KAC9B,CAAC;;gDACiB;AAEnB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;4CACwB;AAE1B;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;KAC5B,CAAC;;mDACoB;AAEtB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;iDACkB;AAEpB;IAAC,gCAAS;8BACC,IAAI;+CAAC;AAEhB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;iDACkB;AAEpB;IAAC,gCAAS;8BACC,IAAI;+CAAC;AAEhB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,sCAAgB,CAAC;8BACrB,sCAAgB;iDAAC;AAvFnB,YAAY;IAHxB,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,iBAAiB;KAC7B,CAAC;GACW,YAAY,CAwFxB;AAxFY,oCAAY"}
|
|
@@ -1,6 +0,0 @@
|
|
|
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, };
|
package/dist/src/models/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
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
|
-
__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
|
-
], JointHirerModel.prototype, "HirerId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, sequelize_typescript_1.ForeignKey)(() => rental_entity_1.RentalModel),
|
|
27
|
-
(0, sequelize_typescript_1.Column)({
|
|
28
|
-
allowNull: false,
|
|
29
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
30
|
-
}),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], JointHirerModel.prototype, "RentalId", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, sequelize_typescript_1.Column)({
|
|
35
|
-
allowNull: false,
|
|
36
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
37
|
-
}),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], JointHirerModel.prototype, "CustomerId", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, sequelize_typescript_1.Column)({
|
|
42
|
-
allowNull: false,
|
|
43
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
44
|
-
}),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], JointHirerModel.prototype, "CustomerType", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, sequelize_typescript_1.Column)({
|
|
49
|
-
allowNull: false,
|
|
50
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
51
|
-
}),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], JointHirerModel.prototype, "CreatedById", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
sequelize_typescript_1.CreatedAt,
|
|
56
|
-
__metadata("design:type", Date)
|
|
57
|
-
], JointHirerModel.prototype, "CreatedAt", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, sequelize_typescript_1.Column)({
|
|
60
|
-
allowNull: false,
|
|
61
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
62
|
-
}),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], JointHirerModel.prototype, "UpdatedById", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
sequelize_typescript_1.UpdatedAt,
|
|
67
|
-
__metadata("design:type", Date)
|
|
68
|
-
], JointHirerModel.prototype, "UpdatedAt", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, sequelize_typescript_1.BelongsTo)(() => rental_entity_1.RentalModel),
|
|
71
|
-
__metadata("design:type", rental_entity_1.RentalModel)
|
|
72
|
-
], JointHirerModel.prototype, "RentalPrice", void 0);
|
|
73
|
-
JointHirerModel = __decorate([
|
|
74
|
-
(0, sequelize_typescript_1.Table)({
|
|
75
|
-
tableName: 'rental_JointHirer',
|
|
76
|
-
})
|
|
77
|
-
], JointHirerModel);
|
|
78
|
-
exports.JointHirerModel = JointHirerModel;
|
|
79
|
-
//# sourceMappingURL=joint-hirer.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AA9CC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;gDACc;AAEhB;IAAC,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;AAEjB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;mDACiB;AAEnB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;qDACmB;AAErB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;oDACkB;AAEpB;IAAC,gCAAS;8BACC,IAAI;kDAAC;AAEhB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;oDACkB;AAEpB;IAAC,gCAAS;8BACC,IAAI;kDAAC;AAEhB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,2BAAW,CAAC;8BAChB,2BAAW;oDAAC;AA9Cd,eAAe;IAH3B,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,mBAAmB;KAC/B,CAAC;GACW,eAAe,CA+C3B;AA/CY,0CAAe"}
|
|
@@ -1,59 +0,0 @@
|
|
|
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
|
-
__decorate([
|
|
17
|
-
(0, sequelize_typescript_1.Column)({
|
|
18
|
-
primaryKey: true,
|
|
19
|
-
allowNull: false,
|
|
20
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
21
|
-
}),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], RentalPriceModel.prototype, "PriceId", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, sequelize_typescript_1.Column)({
|
|
26
|
-
allowNull: false,
|
|
27
|
-
type: sequelize_typescript_1.DataType.DECIMAL(10, 2),
|
|
28
|
-
}),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], RentalPriceModel.prototype, "RetailPrice", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, sequelize_typescript_1.Column)({
|
|
33
|
-
allowNull: false,
|
|
34
|
-
type: sequelize_typescript_1.DataType.CHAR(3),
|
|
35
|
-
}),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], RentalPriceModel.prototype, "Currency", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, sequelize_typescript_1.Column)({
|
|
40
|
-
type: sequelize_typescript_1.DataType.STRING(10),
|
|
41
|
-
}),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], RentalPriceModel.prototype, "PromoCode", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, sequelize_typescript_1.Column)({
|
|
46
|
-
type: sequelize_typescript_1.DataType.STRING(3000),
|
|
47
|
-
}),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], RentalPriceModel.prototype, "Remarks", void 0);
|
|
50
|
-
RentalPriceModel = __decorate([
|
|
51
|
-
(0, sequelize_typescript_1.Table)({
|
|
52
|
-
tableName: 'rental_Price',
|
|
53
|
-
timestamps: false,
|
|
54
|
-
createdAt: false,
|
|
55
|
-
updatedAt: false,
|
|
56
|
-
})
|
|
57
|
-
], RentalPriceModel);
|
|
58
|
-
exports.RentalPriceModel = RentalPriceModel;
|
|
59
|
-
//# sourceMappingURL=rental-price.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AA5BC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;iDACc;AAEhB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KAC9B,CAAC;;qDACkB;AAEpB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;KACvB,CAAC;;kDACe;AAEjB;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;mDACgB;AAElB;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;KAC5B,CAAC;;iDACc;AA5BL,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;AA7BY,4CAAgB"}
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,160 +0,0 @@
|
|
|
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.RentalModel = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const rental_price_entity_1 = require("./rental-price.entity");
|
|
15
|
-
const rental_status_enum_1 = require("../enum/rental-status.enum");
|
|
16
|
-
const joint_hirer_entity_1 = require("./joint-hirer.entity");
|
|
17
|
-
const account_type_enum_1 = require("../enum/account-type.enum");
|
|
18
|
-
const agreement_entity_1 = require("./agreement.entity");
|
|
19
|
-
let RentalModel = class RentalModel extends sequelize_typescript_1.Model {
|
|
20
|
-
};
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, sequelize_typescript_1.Column)({
|
|
23
|
-
primaryKey: true,
|
|
24
|
-
allowNull: false,
|
|
25
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
26
|
-
}),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], RentalModel.prototype, "RentalId", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, sequelize_typescript_1.Column)({
|
|
31
|
-
allowNull: false,
|
|
32
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
33
|
-
}),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], RentalModel.prototype, "CustomerId", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, sequelize_typescript_1.Column)({
|
|
38
|
-
allowNull: false,
|
|
39
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
40
|
-
}),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], RentalModel.prototype, "CustomerType", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, sequelize_typescript_1.Column)({
|
|
45
|
-
allowNull: false,
|
|
46
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
47
|
-
}),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], RentalModel.prototype, "ItemId", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, sequelize_typescript_1.Column)({
|
|
52
|
-
allowNull: false,
|
|
53
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
54
|
-
}),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], RentalModel.prototype, "ItemType", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, sequelize_typescript_1.ForeignKey)(() => rental_price_entity_1.RentalPriceModel),
|
|
59
|
-
(0, sequelize_typescript_1.Column)({
|
|
60
|
-
allowNull: false,
|
|
61
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
62
|
-
}),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], RentalModel.prototype, "PriceId", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, sequelize_typescript_1.Column)({
|
|
67
|
-
allowNull: false,
|
|
68
|
-
type: sequelize_typescript_1.DataType.DATE,
|
|
69
|
-
}),
|
|
70
|
-
__metadata("design:type", Date)
|
|
71
|
-
], RentalModel.prototype, "StartDateTime", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, sequelize_typescript_1.Column)({
|
|
74
|
-
allowNull: false,
|
|
75
|
-
type: sequelize_typescript_1.DataType.DATE,
|
|
76
|
-
}),
|
|
77
|
-
__metadata("design:type", Date)
|
|
78
|
-
], RentalModel.prototype, "EndDateTime", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, sequelize_typescript_1.Column)({
|
|
81
|
-
allowNull: false,
|
|
82
|
-
type: sequelize_typescript_1.DataType.STRING(50),
|
|
83
|
-
}),
|
|
84
|
-
__metadata("design:type", String)
|
|
85
|
-
], RentalModel.prototype, "Status", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, sequelize_typescript_1.Column)({
|
|
88
|
-
type: sequelize_typescript_1.DataType.STRING(3000),
|
|
89
|
-
}),
|
|
90
|
-
__metadata("design:type", String)
|
|
91
|
-
], RentalModel.prototype, "CancelRemarks", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, sequelize_typescript_1.Column)({
|
|
94
|
-
type: sequelize_typescript_1.DataType.STRING(3000),
|
|
95
|
-
}),
|
|
96
|
-
__metadata("design:type", String)
|
|
97
|
-
], RentalModel.prototype, "TerminateRemarks", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
(0, sequelize_typescript_1.Column)({
|
|
100
|
-
type: sequelize_typescript_1.DataType.CHAR(1),
|
|
101
|
-
}),
|
|
102
|
-
__metadata("design:type", String)
|
|
103
|
-
], RentalModel.prototype, "EscheatmentYN", void 0);
|
|
104
|
-
__decorate([
|
|
105
|
-
(0, sequelize_typescript_1.ForeignKey)(() => agreement_entity_1.AgreementModel),
|
|
106
|
-
(0, sequelize_typescript_1.Column)({
|
|
107
|
-
allowNull: false,
|
|
108
|
-
unique: true,
|
|
109
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
110
|
-
}),
|
|
111
|
-
__metadata("design:type", String)
|
|
112
|
-
], RentalModel.prototype, "AgreementNo", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
(0, sequelize_typescript_1.Column)({
|
|
115
|
-
allowNull: false,
|
|
116
|
-
type: sequelize_typescript_1.DataType.STRING(10),
|
|
117
|
-
}),
|
|
118
|
-
__metadata("design:type", String)
|
|
119
|
-
], RentalModel.prototype, "AccountType", void 0);
|
|
120
|
-
__decorate([
|
|
121
|
-
(0, sequelize_typescript_1.Column)({
|
|
122
|
-
allowNull: false,
|
|
123
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
124
|
-
}),
|
|
125
|
-
__metadata("design:type", String)
|
|
126
|
-
], RentalModel.prototype, "CreatedById", void 0);
|
|
127
|
-
__decorate([
|
|
128
|
-
sequelize_typescript_1.CreatedAt,
|
|
129
|
-
__metadata("design:type", Date)
|
|
130
|
-
], RentalModel.prototype, "CreatedAt", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
(0, sequelize_typescript_1.Column)({
|
|
133
|
-
allowNull: false,
|
|
134
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
135
|
-
}),
|
|
136
|
-
__metadata("design:type", String)
|
|
137
|
-
], RentalModel.prototype, "UpdatedById", void 0);
|
|
138
|
-
__decorate([
|
|
139
|
-
sequelize_typescript_1.UpdatedAt,
|
|
140
|
-
__metadata("design:type", Date)
|
|
141
|
-
], RentalModel.prototype, "UpdatedAt", void 0);
|
|
142
|
-
__decorate([
|
|
143
|
-
(0, sequelize_typescript_1.BelongsTo)(() => rental_price_entity_1.RentalPriceModel),
|
|
144
|
-
__metadata("design:type", rental_price_entity_1.RentalPriceModel)
|
|
145
|
-
], RentalModel.prototype, "RentalPrice", void 0);
|
|
146
|
-
__decorate([
|
|
147
|
-
(0, sequelize_typescript_1.BelongsTo)(() => agreement_entity_1.AgreementModel),
|
|
148
|
-
__metadata("design:type", agreement_entity_1.AgreementModel)
|
|
149
|
-
], RentalModel.prototype, "Agreement", void 0);
|
|
150
|
-
__decorate([
|
|
151
|
-
(0, sequelize_typescript_1.HasMany)(() => joint_hirer_entity_1.JointHirerModel),
|
|
152
|
-
__metadata("design:type", Array)
|
|
153
|
-
], RentalModel.prototype, "JointHirers", void 0);
|
|
154
|
-
RentalModel = __decorate([
|
|
155
|
-
(0, sequelize_typescript_1.Table)({
|
|
156
|
-
tableName: 'rental_Rental',
|
|
157
|
-
})
|
|
158
|
-
], RentalModel);
|
|
159
|
-
exports.RentalModel = RentalModel;
|
|
160
|
-
//# sourceMappingURL=rental.entity.js.map
|