@tomei/rental 0.2.5 → 0.2.6
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/.eslintrc +16 -16
- package/.eslintrc.js +35 -35
- package/.husky/commit-msg +15 -15
- package/.husky/pre-commit +7 -7
- package/.prettierrc +4 -4
- package/Jenkinsfile +51 -57
- package/README.md +8 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -17
- package/dist/src/components/rental/rental.d.ts +35 -35
- package/dist/src/components/rental/rental.js +208 -208
- 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-price/rental-price.d.ts +12 -12
- package/dist/src/components/rental-price/rental-price.js +71 -71
- 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/database.d.ts +4 -4
- package/dist/src/database.js +19 -19
- package/dist/src/enum/index.d.ts +2 -2
- package/dist/src/enum/index.js +5 -5
- package/dist/src/enum/rental-status.enum.d.ts +6 -6
- package/dist/src/enum/rental-status.enum.js +10 -10
- package/dist/src/index.d.ts +9 -9
- package/dist/src/index.js +30 -30
- package/dist/src/interfaces/index.d.ts +4 -4
- package/dist/src/interfaces/index.js +2 -2
- package/dist/src/interfaces/rental-attr.interface.d.ts +20 -20
- package/dist/src/interfaces/rental-attr.interface.js +2 -2
- package/dist/src/interfaces/rental-find-all-search-attr.interface.d.ts +8 -8
- 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/index.d.ts +3 -3
- package/dist/src/models/index.js +7 -7
- 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.entity.d.ts +23 -23
- package/dist/src/models/rental.entity.js +140 -138
- package/dist/src/models/rental.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/jest.config.js +10 -10
- package/migrations/rental-price-table-migration.js +32 -32
- package/migrations/rental-table-migrations.js +86 -84
- package/package.json +71 -71
- package/src/components/rental/rental.repository.ts +51 -51
- package/src/components/rental/rental.ts +285 -285
- package/src/components/rental-price/rental-price.repository.ts +54 -54
- package/src/components/rental-price/rental-price.ts +89 -89
- package/src/database.ts +21 -21
- package/src/enum/index.ts +3 -3
- package/src/enum/rental-status.enum.ts +6 -6
- package/src/index.ts +16 -16
- package/src/interfaces/index.ts +5 -5
- package/src/interfaces/rental-attr.interface.ts +21 -21
- package/src/interfaces/rental-find-all-search-attr.interface.ts +9 -9
- package/src/interfaces/rental-price-attr.interface.ts +7 -7
- package/src/models/index.ts +4 -4
- package/src/models/rental-price.entity.ts +38 -38
- package/src/models/rental.entity.ts +116 -114
- package/tsconfig.build.json +5 -5
- package/tsconfig.json +23 -23
- package/dist/jest.config.d.ts +0 -2
- package/dist/jest.config.js +0 -11
- package/dist/jest.config.js.map +0 -1
- package/dist/migrations/rental-price-table-migration.d.ts +0 -2
- package/dist/migrations/rental-price-table-migration.js +0 -43
- package/dist/migrations/rental-price-table-migration.js.map +0 -1
- package/dist/migrations/rental-table-migrations.d.ts +0 -2
- package/dist/migrations/rental-table-migrations.js +0 -95
- package/dist/migrations/rental-table-migrations.js.map +0 -1
|
@@ -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
|
-
__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;
|
|
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
59
|
//# sourceMappingURL=rental-price.entity.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { RentalPriceModel } from './rental-price.entity';
|
|
3
|
-
import { RentalStatusEnum } from '../enum/rental-status.enum';
|
|
4
|
-
export declare class RentalModel extends Model {
|
|
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
|
-
Status: RentalStatusEnum;
|
|
14
|
-
CancelRemarks: string;
|
|
15
|
-
TerminateRemarks: string;
|
|
16
|
-
EscheatmentYN: string;
|
|
17
|
-
AgreementNo: string;
|
|
18
|
-
CreatedById: string;
|
|
19
|
-
CreatedAt: Date;
|
|
20
|
-
UpdatedById: string;
|
|
21
|
-
UpdatedAt: Date;
|
|
22
|
-
RentalPrice: RentalPriceModel;
|
|
23
|
-
}
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { RentalPriceModel } from './rental-price.entity';
|
|
3
|
+
import { RentalStatusEnum } from '../enum/rental-status.enum';
|
|
4
|
+
export declare class RentalModel extends Model {
|
|
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
|
+
Status: RentalStatusEnum;
|
|
14
|
+
CancelRemarks: string;
|
|
15
|
+
TerminateRemarks: string;
|
|
16
|
+
EscheatmentYN: string;
|
|
17
|
+
AgreementNo: string;
|
|
18
|
+
CreatedById: string;
|
|
19
|
+
CreatedAt: Date;
|
|
20
|
+
UpdatedById: string;
|
|
21
|
+
UpdatedAt: Date;
|
|
22
|
+
RentalPrice: RentalPriceModel;
|
|
23
|
+
}
|
|
@@ -1,139 +1,141 @@
|
|
|
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
|
-
let RentalModel = class RentalModel 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
|
-
], RentalModel.prototype, "RentalId", 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
|
-
], RentalModel.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
|
-
], RentalModel.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
|
-
], RentalModel.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
|
-
], RentalModel.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
|
-
], RentalModel.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
|
-
], RentalModel.prototype, "StartDateTime", 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
|
-
], RentalModel.prototype, "EndDateTime", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, sequelize_typescript_1.Column)({
|
|
78
|
-
allowNull: false,
|
|
79
|
-
type: sequelize_typescript_1.DataType.STRING(20),
|
|
80
|
-
}),
|
|
81
|
-
__metadata("design:type", String)
|
|
82
|
-
], RentalModel.prototype, "Status", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, sequelize_typescript_1.Column)({
|
|
85
|
-
type: sequelize_typescript_1.DataType.STRING(3000),
|
|
86
|
-
}),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], RentalModel.prototype, "CancelRemarks", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, sequelize_typescript_1.Column)({
|
|
91
|
-
type: sequelize_typescript_1.DataType.STRING(3000),
|
|
92
|
-
}),
|
|
93
|
-
__metadata("design:type", String)
|
|
94
|
-
], RentalModel.prototype, "TerminateRemarks", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, sequelize_typescript_1.Column)({
|
|
97
|
-
type: sequelize_typescript_1.DataType.CHAR(1),
|
|
98
|
-
}),
|
|
99
|
-
__metadata("design:type", String)
|
|
100
|
-
], RentalModel.prototype, "EscheatmentYN", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, sequelize_typescript_1.Column)({
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
+
let RentalModel = class RentalModel 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
|
+
], RentalModel.prototype, "RentalId", 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
|
+
], RentalModel.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
|
+
], RentalModel.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
|
+
], RentalModel.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
|
+
], RentalModel.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
|
+
], RentalModel.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
|
+
], RentalModel.prototype, "StartDateTime", 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
|
+
], RentalModel.prototype, "EndDateTime", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, sequelize_typescript_1.Column)({
|
|
78
|
+
allowNull: false,
|
|
79
|
+
type: sequelize_typescript_1.DataType.STRING(20),
|
|
80
|
+
}),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], RentalModel.prototype, "Status", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, sequelize_typescript_1.Column)({
|
|
85
|
+
type: sequelize_typescript_1.DataType.STRING(3000),
|
|
86
|
+
}),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], RentalModel.prototype, "CancelRemarks", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, sequelize_typescript_1.Column)({
|
|
91
|
+
type: sequelize_typescript_1.DataType.STRING(3000),
|
|
92
|
+
}),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], RentalModel.prototype, "TerminateRemarks", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, sequelize_typescript_1.Column)({
|
|
97
|
+
type: sequelize_typescript_1.DataType.CHAR(1),
|
|
98
|
+
}),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], RentalModel.prototype, "EscheatmentYN", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, sequelize_typescript_1.Column)({
|
|
103
|
+
allowNull: false,
|
|
104
|
+
unique: true,
|
|
105
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
106
|
+
}),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], RentalModel.prototype, "AgreementNo", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, sequelize_typescript_1.Column)({
|
|
111
|
+
allowNull: false,
|
|
112
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
113
|
+
}),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], RentalModel.prototype, "CreatedById", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
sequelize_typescript_1.CreatedAt,
|
|
118
|
+
__metadata("design:type", Date)
|
|
119
|
+
], RentalModel.prototype, "CreatedAt", 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, "UpdatedById", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
sequelize_typescript_1.UpdatedAt,
|
|
129
|
+
__metadata("design:type", Date)
|
|
130
|
+
], RentalModel.prototype, "UpdatedAt", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, sequelize_typescript_1.BelongsTo)(() => rental_price_entity_1.RentalPriceModel),
|
|
133
|
+
__metadata("design:type", rental_price_entity_1.RentalPriceModel)
|
|
134
|
+
], RentalModel.prototype, "RentalPrice", void 0);
|
|
135
|
+
RentalModel = __decorate([
|
|
136
|
+
(0, sequelize_typescript_1.Table)({
|
|
137
|
+
tableName: 'rental_Rental',
|
|
138
|
+
})
|
|
139
|
+
], RentalModel);
|
|
140
|
+
exports.RentalModel = RentalModel;
|
|
139
141
|
//# sourceMappingURL=rental.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rental.entity.js","sourceRoot":"","sources":["../../../src/models/rental.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAS8B;AAC9B,+DAAyD;AACzD,mEAA8D;AAKvD,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,4BA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