@tomei/rental 0.11.4 → 0.12.2
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/.husky/commit-msg +0 -0
- package/.husky/pre-commit +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -17
- package/dist/src/components/agreement/agreement.d.ts +17 -17
- package/dist/src/components/agreement/agreement.js +49 -49
- package/dist/src/components/agreement/agreement.js.map +1 -1
- package/dist/src/components/agreement/agreement.repository.d.ts +8 -8
- package/dist/src/components/agreement/agreement.repository.js +66 -66
- package/dist/src/components/agreement/agreement.repository.js.map +1 -1
- package/dist/src/components/booking/booking.d.ts +46 -45
- package/dist/src/components/booking/booking.js +313 -271
- package/dist/src/components/booking/booking.js.map +1 -1
- package/dist/src/components/booking/booking.repository.d.ts +8 -8
- package/dist/src/components/booking/booking.repository.js +66 -66
- package/dist/src/components/booking/booking.repository.js.map +1 -1
- package/dist/src/components/joint-hirer/joint-hirer.d.ts +23 -23
- package/dist/src/components/joint-hirer/joint-hirer.js +105 -105
- package/dist/src/components/joint-hirer/joint-hirer.js.map +1 -1
- package/dist/src/components/joint-hirer/joint-hirer.repository.d.ts +8 -8
- package/dist/src/components/joint-hirer/joint-hirer.repository.js +66 -66
- package/dist/src/components/joint-hirer/joint-hirer.repository.js.map +1 -1
- package/dist/src/components/rental/rental.d.ts +59 -59
- package/dist/src/components/rental/rental.js +603 -603
- package/dist/src/components/rental/rental.js.map +1 -1
- package/dist/src/components/rental/rental.repository.d.ts +8 -8
- package/dist/src/components/rental/rental.repository.js +66 -66
- package/dist/src/components/rental/rental.repository.js.map +1 -1
- package/dist/src/components/rental-price/rental-price.d.ts +18 -18
- package/dist/src/components/rental-price/rental-price.js +78 -78
- package/dist/src/components/rental-price/rental-price.js.map +1 -1
- package/dist/src/components/rental-price/rental-price.repository.d.ts +8 -8
- package/dist/src/components/rental-price/rental-price.repository.js +66 -66
- package/dist/src/components/rental-price/rental-price.repository.js.map +1 -1
- package/dist/src/database.d.ts +4 -4
- package/dist/src/database.js +24 -25
- package/dist/src/database.js.map +1 -1
- package/dist/src/enum/account-type.enum.d.ts +4 -4
- package/dist/src/enum/account-type.enum.js +8 -8
- package/dist/src/enum/account-type.enum.js.map +1 -1
- package/dist/src/enum/aggrement-status.enum.d.ts +5 -5
- package/dist/src/enum/aggrement-status.enum.js +9 -9
- package/dist/src/enum/aggrement-status.enum.js.map +1 -1
- package/dist/src/enum/booking.enum.d.ts +5 -5
- package/dist/src/enum/booking.enum.js +9 -9
- package/dist/src/enum/booking.enum.js.map +1 -1
- package/dist/src/enum/index.d.ts +5 -5
- package/dist/src/enum/index.js +11 -11
- package/dist/src/enum/rental-status.enum.d.ts +9 -9
- package/dist/src/enum/rental-status.enum.js +13 -13
- package/dist/src/enum/rental-status.enum.js.map +1 -1
- package/dist/src/index.d.ts +15 -15
- package/dist/src/index.js +42 -42
- package/dist/src/interfaces/agreement-attr.interface.d.ts +7 -7
- package/dist/src/interfaces/agreement-attr.interface.js +2 -2
- package/dist/src/interfaces/booking-attr.interface.d.ts +18 -18
- package/dist/src/interfaces/booking-attr.interface.js +2 -2
- package/dist/src/interfaces/booking-find-all-search-attr.interface.d.ts +12 -12
- package/dist/src/interfaces/booking-find-all-search-attr.interface.js +2 -2
- package/dist/src/interfaces/index.d.ts +7 -7
- package/dist/src/interfaces/index.js +2 -2
- package/dist/src/interfaces/joint-hirer-attr.interface.d.ts +10 -10
- package/dist/src/interfaces/joint-hirer-attr.interface.js +2 -2
- package/dist/src/interfaces/rental-attr.interface.d.ts +24 -24
- package/dist/src/interfaces/rental-attr.interface.js +2 -2
- package/dist/src/interfaces/rental-find-all-search-attr.interface.d.ts +10 -10
- package/dist/src/interfaces/rental-find-all-search-attr.interface.js +2 -2
- package/dist/src/interfaces/rental-price-attr.interface.d.ts +7 -7
- package/dist/src/interfaces/rental-price-attr.interface.js +2 -2
- package/dist/src/models/agreement.entity.d.ts +10 -10
- package/dist/src/models/agreement.entity.js +59 -59
- package/dist/src/models/agreement.entity.js.map +1 -1
- package/dist/src/models/booking.entity.d.ts +21 -21
- package/dist/src/models/booking.entity.js +127 -127
- package/dist/src/models/booking.entity.js.map +1 -1
- package/dist/src/models/index.d.ts +6 -6
- package/dist/src/models/index.js +13 -13
- package/dist/src/models/joint-hirer.entity.d.ts +13 -13
- package/dist/src/models/joint-hirer.entity.js +78 -78
- package/dist/src/models/joint-hirer.entity.js.map +1 -1
- package/dist/src/models/rental-price.entity.d.ts +8 -8
- package/dist/src/models/rental-price.entity.js +58 -58
- package/dist/src/models/rental-price.entity.js.map +1 -1
- package/dist/src/models/rental.entity.d.ts +29 -29
- package/dist/src/models/rental.entity.js +159 -159
- package/dist/src/models/rental.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- 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 +94 -1
- package/src/components/joint-hirer/joint-hirer.ts +1 -1
- package/src/components/rental/rental.ts +7 -10
- package/.eslintignore +0 -1
|
@@ -1,79 +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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(0, sequelize_typescript_1.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
JointHirerModel
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
79
|
//# sourceMappingURL=joint-hirer.entity.js.map
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
export declare class RentalPriceModel extends Model {
|
|
3
|
-
PriceId: string;
|
|
4
|
-
RetailPrice: number;
|
|
5
|
-
Currency: string;
|
|
6
|
-
PromoCode: string;
|
|
7
|
-
Remarks: string;
|
|
8
|
-
}
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
export declare class RentalPriceModel extends Model {
|
|
3
|
+
PriceId: string;
|
|
4
|
+
RetailPrice: number;
|
|
5
|
+
Currency: string;
|
|
6
|
+
PromoCode: string;
|
|
7
|
+
Remarks: string;
|
|
8
|
+
}
|
|
@@ -1,59 +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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
RentalPriceModel
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
59
|
//# sourceMappingURL=rental-price.entity.js.map
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -1,29 +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
|
-
}
|
|
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
|
+
}
|