@tomei/rental 0.2.5 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/.commitlintrc.json +22 -22
  2. package/.eslintrc +16 -16
  3. package/.eslintrc.js +35 -35
  4. package/.husky/commit-msg +15 -15
  5. package/.husky/pre-commit +7 -7
  6. package/.prettierrc +4 -4
  7. package/Jenkinsfile +51 -57
  8. package/README.md +8 -8
  9. package/dist/index.d.ts +1 -1
  10. package/dist/index.js +17 -17
  11. package/dist/src/components/rental/rental.d.ts +36 -35
  12. package/dist/src/components/rental/rental.js +238 -208
  13. package/dist/src/components/rental/rental.js.map +1 -1
  14. package/dist/src/components/rental/rental.repository.d.ts +8 -8
  15. package/dist/src/components/rental/rental.repository.js +66 -66
  16. package/dist/src/components/rental-price/rental-price.d.ts +12 -12
  17. package/dist/src/components/rental-price/rental-price.js +71 -71
  18. package/dist/src/components/rental-price/rental-price.repository.d.ts +8 -8
  19. package/dist/src/components/rental-price/rental-price.repository.js +66 -66
  20. package/dist/src/database.d.ts +4 -4
  21. package/dist/src/database.js +19 -19
  22. package/dist/src/enum/index.d.ts +2 -2
  23. package/dist/src/enum/index.js +5 -5
  24. package/dist/src/enum/rental-status.enum.d.ts +6 -6
  25. package/dist/src/enum/rental-status.enum.js +10 -10
  26. package/dist/src/index.d.ts +9 -9
  27. package/dist/src/index.js +30 -30
  28. package/dist/src/interfaces/index.d.ts +4 -4
  29. package/dist/src/interfaces/index.js +2 -2
  30. package/dist/src/interfaces/rental-attr.interface.d.ts +20 -20
  31. package/dist/src/interfaces/rental-attr.interface.js +2 -2
  32. package/dist/src/interfaces/rental-find-all-search-attr.interface.d.ts +8 -8
  33. package/dist/src/interfaces/rental-find-all-search-attr.interface.js +2 -2
  34. package/dist/src/interfaces/rental-price-attr.interface.d.ts +7 -7
  35. package/dist/src/interfaces/rental-price-attr.interface.js +2 -2
  36. package/dist/src/models/index.d.ts +3 -3
  37. package/dist/src/models/index.js +7 -7
  38. package/dist/src/models/rental-price.entity.d.ts +8 -8
  39. package/dist/src/models/rental-price.entity.js +58 -58
  40. package/dist/src/models/rental.entity.d.ts +23 -23
  41. package/dist/src/models/rental.entity.js +140 -138
  42. package/dist/src/models/rental.entity.js.map +1 -1
  43. package/dist/tsconfig.tsbuildinfo +1 -1
  44. package/jest.config.js +10 -10
  45. package/migrations/rental-price-table-migration.js +32 -32
  46. package/migrations/rental-table-migrations.js +86 -84
  47. package/package.json +71 -71
  48. package/src/components/rental/rental.repository.ts +51 -51
  49. package/src/components/rental/rental.ts +332 -285
  50. package/src/components/rental-price/rental-price.repository.ts +54 -54
  51. package/src/components/rental-price/rental-price.ts +89 -89
  52. package/src/database.ts +21 -21
  53. package/src/enum/index.ts +3 -3
  54. package/src/enum/rental-status.enum.ts +6 -6
  55. package/src/index.ts +16 -16
  56. package/src/interfaces/index.ts +5 -5
  57. package/src/interfaces/rental-attr.interface.ts +21 -21
  58. package/src/interfaces/rental-find-all-search-attr.interface.ts +9 -9
  59. package/src/interfaces/rental-price-attr.interface.ts +7 -7
  60. package/src/models/index.ts +4 -4
  61. package/src/models/rental-price.entity.ts +38 -38
  62. package/src/models/rental.entity.ts +116 -114
  63. package/tsconfig.build.json +5 -5
  64. package/tsconfig.json +23 -23
  65. package/dist/jest.config.d.ts +0 -2
  66. package/dist/jest.config.js +0 -11
  67. package/dist/jest.config.js.map +0 -1
  68. package/dist/migrations/rental-price-table-migration.d.ts +0 -2
  69. package/dist/migrations/rental-price-table-migration.js +0 -43
  70. package/dist/migrations/rental-price-table-migration.js.map +0 -1
  71. package/dist/migrations/rental-table-migrations.d.ts +0 -2
  72. package/dist/migrations/rental-table-migrations.js +0 -95
  73. package/dist/migrations/rental-table-migrations.js.map +0 -1
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- 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; } });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ 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
8
  //# sourceMappingURL=index.js.map
@@ -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
- type: sequelize_typescript_1.DataType.STRING(30),
104
- }),
105
- __metadata("design:type", String)
106
- ], RentalModel.prototype, "AgreementNo", 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
- ], RentalModel.prototype, "CreatedById", void 0);
114
- __decorate([
115
- sequelize_typescript_1.CreatedAt,
116
- __metadata("design:type", Date)
117
- ], RentalModel.prototype, "CreatedAt", void 0);
118
- __decorate([
119
- (0, sequelize_typescript_1.Column)({
120
- allowNull: false,
121
- type: sequelize_typescript_1.DataType.STRING(30),
122
- }),
123
- __metadata("design:type", String)
124
- ], RentalModel.prototype, "UpdatedById", void 0);
125
- __decorate([
126
- sequelize_typescript_1.UpdatedAt,
127
- __metadata("design:type", Date)
128
- ], RentalModel.prototype, "UpdatedAt", void 0);
129
- __decorate([
130
- (0, sequelize_typescript_1.BelongsTo)(() => rental_price_entity_1.RentalPriceModel),
131
- __metadata("design:type", rental_price_entity_1.RentalPriceModel)
132
- ], RentalModel.prototype, "RentalPrice", void 0);
133
- RentalModel = __decorate([
134
- (0, sequelize_typescript_1.Table)({
135
- tableName: 'rental_Rental',
136
- })
137
- ], RentalModel);
138
- exports.RentalModel = RentalModel;
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,4BAAK;CAiGrC,CAAA;AAhGC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;6CACe;AAEjB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;+CACiB;AAEnB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;iDACmB;AAErB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;2CACa;AAEf;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;6CACe;AAEjB;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,sCAAgB,CAAC;IAClC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+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