@tomei/rental 0.12.2 → 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/.commitlintrc.json +22 -22
- package/.eslintrc +16 -16
- package/.eslintrc.js +35 -35
- package/.gitlab-ci.yml +16 -16
- package/.husky/commit-msg +15 -15
- package/.husky/pre-commit +7 -7
- package/.prettierrc +4 -4
- package/Jenkinsfile +51 -51
- package/README.md +8 -8
- package/eslint.config.mjs +37 -37
- package/jest.config.js +10 -10
- package/migrations/booking-table-migration.js +79 -79
- package/migrations/joint-hirer-table-migration.js +52 -52
- package/migrations/rental-aggrement-table-migration.js +30 -30
- package/migrations/rental-price-table-migration.js +32 -32
- package/migrations/rental-table-migrations.js +96 -96
- package/package.json +78 -78
- package/sonar-project.properties +12 -12
- package/src/components/agreement/agreement.repository.ts +54 -54
- package/src/components/agreement/agreement.ts +49 -49
- package/src/components/booking/booking.repository.ts +51 -51
- package/src/components/booking/booking.ts +492 -492
- package/src/components/joint-hirer/joint-hirer.repository.ts +54 -54
- package/src/components/joint-hirer/joint-hirer.ts +137 -137
- package/src/components/rental/rental.repository.ts +51 -51
- package/src/components/rental/rental.ts +963 -963
- package/src/components/rental-price/rental-price.repository.ts +54 -54
- package/src/components/rental-price/rental-price.ts +100 -100
- package/src/database.ts +27 -27
- package/src/enum/account-type.enum.ts +4 -4
- package/src/enum/booking.enum.ts +5 -5
- package/src/enum/index.ts +11 -11
- package/src/enum/rental-status.enum.ts +39 -39
- package/src/index.ts +28 -28
- package/src/interfaces/agreement-attr.interface.ts +7 -7
- package/src/interfaces/booking-attr.interface.ts +19 -19
- package/src/interfaces/booking-find-all-search-attr.interface.ts +12 -12
- package/src/interfaces/index.ts +15 -15
- package/src/interfaces/joint-hirer-attr.interface.ts +10 -10
- package/src/interfaces/rental-attr.interface.ts +25 -25
- package/src/interfaces/rental-find-all-search-attr.interface.ts +11 -11
- package/src/interfaces/rental-price-attr.interface.ts +7 -7
- package/src/models/agreement.entity.ts +39 -39
- package/src/models/booking.entity.ts +105 -105
- package/src/models/index.ts +13 -13
- package/src/models/joint-hirer.entity.ts +63 -63
- package/src/models/rental-price.entity.ts +38 -38
- package/src/models/rental.entity.ts +133 -133
- package/tsconfig.build.json +5 -5
- package/tsconfig.json +23 -23
- 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 -25
- 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,52 +1,52 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/** @type {import('sequelize-cli').Migration} */
|
|
4
|
-
module.exports = {
|
|
5
|
-
async up(queryInterface, Sequelize) {
|
|
6
|
-
await queryInterface.createTable('rental_JointHirer', {
|
|
7
|
-
HirerId: {
|
|
8
|
-
type: Sequelize.STRING(30),
|
|
9
|
-
allowNull: false,
|
|
10
|
-
primaryKey: true,
|
|
11
|
-
},
|
|
12
|
-
RentalId: {
|
|
13
|
-
type: Sequelize.STRING(30),
|
|
14
|
-
allowNull: false,
|
|
15
|
-
references: {
|
|
16
|
-
model: 'rental_Rental',
|
|
17
|
-
key: 'RentalId',
|
|
18
|
-
},
|
|
19
|
-
onUpdate: 'CASCADE',
|
|
20
|
-
onDelete: 'CASCADE',
|
|
21
|
-
},
|
|
22
|
-
CustomerId: {
|
|
23
|
-
type: Sequelize.STRING(30),
|
|
24
|
-
allowNull: false,
|
|
25
|
-
},
|
|
26
|
-
CustomerType: {
|
|
27
|
-
type: Sequelize.STRING(30),
|
|
28
|
-
allowNull: false,
|
|
29
|
-
},
|
|
30
|
-
CreatedById: {
|
|
31
|
-
type: Sequelize.STRING(30),
|
|
32
|
-
allowNull: false,
|
|
33
|
-
},
|
|
34
|
-
CreatedAt: {
|
|
35
|
-
type: Sequelize.DATE,
|
|
36
|
-
allowNull: false,
|
|
37
|
-
},
|
|
38
|
-
UpdatedById: {
|
|
39
|
-
type: Sequelize.STRING(30),
|
|
40
|
-
allowNull: false,
|
|
41
|
-
},
|
|
42
|
-
UpdatedAt: {
|
|
43
|
-
type: Sequelize.DATE,
|
|
44
|
-
allowNull: false,
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
async down(queryInterface, _Sequelize) {
|
|
50
|
-
await queryInterface.dropTable('rental_JointHirer');
|
|
51
|
-
},
|
|
52
|
-
};
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/** @type {import('sequelize-cli').Migration} */
|
|
4
|
+
module.exports = {
|
|
5
|
+
async up(queryInterface, Sequelize) {
|
|
6
|
+
await queryInterface.createTable('rental_JointHirer', {
|
|
7
|
+
HirerId: {
|
|
8
|
+
type: Sequelize.STRING(30),
|
|
9
|
+
allowNull: false,
|
|
10
|
+
primaryKey: true,
|
|
11
|
+
},
|
|
12
|
+
RentalId: {
|
|
13
|
+
type: Sequelize.STRING(30),
|
|
14
|
+
allowNull: false,
|
|
15
|
+
references: {
|
|
16
|
+
model: 'rental_Rental',
|
|
17
|
+
key: 'RentalId',
|
|
18
|
+
},
|
|
19
|
+
onUpdate: 'CASCADE',
|
|
20
|
+
onDelete: 'CASCADE',
|
|
21
|
+
},
|
|
22
|
+
CustomerId: {
|
|
23
|
+
type: Sequelize.STRING(30),
|
|
24
|
+
allowNull: false,
|
|
25
|
+
},
|
|
26
|
+
CustomerType: {
|
|
27
|
+
type: Sequelize.STRING(30),
|
|
28
|
+
allowNull: false,
|
|
29
|
+
},
|
|
30
|
+
CreatedById: {
|
|
31
|
+
type: Sequelize.STRING(30),
|
|
32
|
+
allowNull: false,
|
|
33
|
+
},
|
|
34
|
+
CreatedAt: {
|
|
35
|
+
type: Sequelize.DATE,
|
|
36
|
+
allowNull: false,
|
|
37
|
+
},
|
|
38
|
+
UpdatedById: {
|
|
39
|
+
type: Sequelize.STRING(30),
|
|
40
|
+
allowNull: false,
|
|
41
|
+
},
|
|
42
|
+
UpdatedAt: {
|
|
43
|
+
type: Sequelize.DATE,
|
|
44
|
+
allowNull: false,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
async down(queryInterface, _Sequelize) {
|
|
50
|
+
await queryInterface.dropTable('rental_JointHirer');
|
|
51
|
+
},
|
|
52
|
+
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/** @type {import('sequelize-cli').Migration} */
|
|
4
|
-
module.exports = {
|
|
5
|
-
async up(queryInterface, Sequelize) {
|
|
6
|
-
await queryInterface.createTable('rental_Agreement', {
|
|
7
|
-
AgreementNo: {
|
|
8
|
-
type: Sequelize.STRING(30),
|
|
9
|
-
allowNull: false,
|
|
10
|
-
primaryKey: true,
|
|
11
|
-
},
|
|
12
|
-
Status: {
|
|
13
|
-
type: Sequelize.STRING(20),
|
|
14
|
-
allowNull: false,
|
|
15
|
-
},
|
|
16
|
-
DateSigned: {
|
|
17
|
-
type: Sequelize.DATE,
|
|
18
|
-
allowNull: true,
|
|
19
|
-
},
|
|
20
|
-
MediaId: {
|
|
21
|
-
type: Sequelize.STRING(30),
|
|
22
|
-
allowNull: true,
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
async down(queryInterface, _Sequelize) {
|
|
28
|
-
await queryInterface.dropTable('rental_Agreement');
|
|
29
|
-
},
|
|
30
|
-
};
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/** @type {import('sequelize-cli').Migration} */
|
|
4
|
+
module.exports = {
|
|
5
|
+
async up(queryInterface, Sequelize) {
|
|
6
|
+
await queryInterface.createTable('rental_Agreement', {
|
|
7
|
+
AgreementNo: {
|
|
8
|
+
type: Sequelize.STRING(30),
|
|
9
|
+
allowNull: false,
|
|
10
|
+
primaryKey: true,
|
|
11
|
+
},
|
|
12
|
+
Status: {
|
|
13
|
+
type: Sequelize.STRING(20),
|
|
14
|
+
allowNull: false,
|
|
15
|
+
},
|
|
16
|
+
DateSigned: {
|
|
17
|
+
type: Sequelize.DATE,
|
|
18
|
+
allowNull: true,
|
|
19
|
+
},
|
|
20
|
+
MediaId: {
|
|
21
|
+
type: Sequelize.STRING(30),
|
|
22
|
+
allowNull: true,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
async down(queryInterface, _Sequelize) {
|
|
28
|
+
await queryInterface.dropTable('rental_Agreement');
|
|
29
|
+
},
|
|
30
|
+
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/** @type {import('sequelize-cli').Migration} */
|
|
4
|
-
module.exports = {
|
|
5
|
-
async up(queryInterface, Sequelize) {
|
|
6
|
-
await queryInterface.createTable('rental_Price', {
|
|
7
|
-
PriceId: {
|
|
8
|
-
type: Sequelize.STRING(30),
|
|
9
|
-
allowNull: false,
|
|
10
|
-
primaryKey: true,
|
|
11
|
-
},
|
|
12
|
-
RetailPrice: {
|
|
13
|
-
type: Sequelize.DECIMAL(10, 2),
|
|
14
|
-
allowNull: false,
|
|
15
|
-
},
|
|
16
|
-
Currency: {
|
|
17
|
-
type: Sequelize.CHAR(3),
|
|
18
|
-
allowNull: false,
|
|
19
|
-
},
|
|
20
|
-
PromoCode: {
|
|
21
|
-
type: Sequelize.STRING(10),
|
|
22
|
-
},
|
|
23
|
-
Remarks: {
|
|
24
|
-
type: Sequelize.STRING(3000),
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
async down(queryInterface, _Sequelize) {
|
|
30
|
-
await queryInterface.dropTable('rental_Price');
|
|
31
|
-
},
|
|
32
|
-
};
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/** @type {import('sequelize-cli').Migration} */
|
|
4
|
+
module.exports = {
|
|
5
|
+
async up(queryInterface, Sequelize) {
|
|
6
|
+
await queryInterface.createTable('rental_Price', {
|
|
7
|
+
PriceId: {
|
|
8
|
+
type: Sequelize.STRING(30),
|
|
9
|
+
allowNull: false,
|
|
10
|
+
primaryKey: true,
|
|
11
|
+
},
|
|
12
|
+
RetailPrice: {
|
|
13
|
+
type: Sequelize.DECIMAL(10, 2),
|
|
14
|
+
allowNull: false,
|
|
15
|
+
},
|
|
16
|
+
Currency: {
|
|
17
|
+
type: Sequelize.CHAR(3),
|
|
18
|
+
allowNull: false,
|
|
19
|
+
},
|
|
20
|
+
PromoCode: {
|
|
21
|
+
type: Sequelize.STRING(10),
|
|
22
|
+
},
|
|
23
|
+
Remarks: {
|
|
24
|
+
type: Sequelize.STRING(3000),
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
async down(queryInterface, _Sequelize) {
|
|
30
|
+
await queryInterface.dropTable('rental_Price');
|
|
31
|
+
},
|
|
32
|
+
};
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/** @type {import('sequelize-cli').Migration} */
|
|
4
|
-
module.exports = {
|
|
5
|
-
async up(queryInterface, Sequelize) {
|
|
6
|
-
await queryInterface.createTable('rental_Rental', {
|
|
7
|
-
RentalId: {
|
|
8
|
-
type: Sequelize.STRING(30),
|
|
9
|
-
allowNull: false,
|
|
10
|
-
primaryKey: true,
|
|
11
|
-
},
|
|
12
|
-
CustomerId: {
|
|
13
|
-
type: Sequelize.STRING(30),
|
|
14
|
-
allowNull: false,
|
|
15
|
-
},
|
|
16
|
-
CustomerType: {
|
|
17
|
-
type: Sequelize.STRING(30),
|
|
18
|
-
allowNull: false,
|
|
19
|
-
},
|
|
20
|
-
ItemId: {
|
|
21
|
-
type: Sequelize.STRING(30),
|
|
22
|
-
allowNull: false,
|
|
23
|
-
},
|
|
24
|
-
ItemType: {
|
|
25
|
-
type: Sequelize.STRING(30),
|
|
26
|
-
allowNull: false,
|
|
27
|
-
},
|
|
28
|
-
PriceId: {
|
|
29
|
-
type: Sequelize.STRING(30),
|
|
30
|
-
allowNull: false,
|
|
31
|
-
references: {
|
|
32
|
-
model: 'rental_Price',
|
|
33
|
-
key: 'PriceId',
|
|
34
|
-
},
|
|
35
|
-
onUpdate: 'CASCADE',
|
|
36
|
-
onDelete: 'CASCADE',
|
|
37
|
-
},
|
|
38
|
-
StartDateTime: {
|
|
39
|
-
type: Sequelize.DATE,
|
|
40
|
-
allowNull: false,
|
|
41
|
-
},
|
|
42
|
-
EndDateTime: {
|
|
43
|
-
type: Sequelize.DATE,
|
|
44
|
-
allowNull: false,
|
|
45
|
-
},
|
|
46
|
-
Status: {
|
|
47
|
-
type: Sequelize.STRING(50),
|
|
48
|
-
allowNull: false,
|
|
49
|
-
},
|
|
50
|
-
CancelRemarks: {
|
|
51
|
-
type: Sequelize.STRING(3000),
|
|
52
|
-
},
|
|
53
|
-
TerminateRemarks: {
|
|
54
|
-
type: Sequelize.STRING(3000),
|
|
55
|
-
},
|
|
56
|
-
EscheatmentYN: {
|
|
57
|
-
type: Sequelize.CHAR(1),
|
|
58
|
-
},
|
|
59
|
-
AgreementNo: {
|
|
60
|
-
type: Sequelize.STRING(30),
|
|
61
|
-
allowNull: false,
|
|
62
|
-
unique: true,
|
|
63
|
-
references: {
|
|
64
|
-
model: 'rental_Agreement',
|
|
65
|
-
key: 'AgreementNo',
|
|
66
|
-
},
|
|
67
|
-
onUpdate: 'CASCADE',
|
|
68
|
-
onDelete: 'CASCADE',
|
|
69
|
-
},
|
|
70
|
-
AccountType: {
|
|
71
|
-
type: Sequelize.STRING(10),
|
|
72
|
-
allowNull: false,
|
|
73
|
-
},
|
|
74
|
-
CreatedById: {
|
|
75
|
-
type: Sequelize.STRING(30),
|
|
76
|
-
allowNull: false,
|
|
77
|
-
},
|
|
78
|
-
CreatedAt: {
|
|
79
|
-
type: Sequelize.DATE,
|
|
80
|
-
allowNull: false,
|
|
81
|
-
},
|
|
82
|
-
UpdatedById: {
|
|
83
|
-
type: Sequelize.STRING(30),
|
|
84
|
-
allowNull: false,
|
|
85
|
-
},
|
|
86
|
-
UpdatedAt: {
|
|
87
|
-
type: Sequelize.DATE,
|
|
88
|
-
allowNull: false,
|
|
89
|
-
},
|
|
90
|
-
});
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
async down(queryInterface, _Sequelize) {
|
|
94
|
-
await queryInterface.dropTable('rental_Rental');
|
|
95
|
-
},
|
|
96
|
-
};
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/** @type {import('sequelize-cli').Migration} */
|
|
4
|
+
module.exports = {
|
|
5
|
+
async up(queryInterface, Sequelize) {
|
|
6
|
+
await queryInterface.createTable('rental_Rental', {
|
|
7
|
+
RentalId: {
|
|
8
|
+
type: Sequelize.STRING(30),
|
|
9
|
+
allowNull: false,
|
|
10
|
+
primaryKey: true,
|
|
11
|
+
},
|
|
12
|
+
CustomerId: {
|
|
13
|
+
type: Sequelize.STRING(30),
|
|
14
|
+
allowNull: false,
|
|
15
|
+
},
|
|
16
|
+
CustomerType: {
|
|
17
|
+
type: Sequelize.STRING(30),
|
|
18
|
+
allowNull: false,
|
|
19
|
+
},
|
|
20
|
+
ItemId: {
|
|
21
|
+
type: Sequelize.STRING(30),
|
|
22
|
+
allowNull: false,
|
|
23
|
+
},
|
|
24
|
+
ItemType: {
|
|
25
|
+
type: Sequelize.STRING(30),
|
|
26
|
+
allowNull: false,
|
|
27
|
+
},
|
|
28
|
+
PriceId: {
|
|
29
|
+
type: Sequelize.STRING(30),
|
|
30
|
+
allowNull: false,
|
|
31
|
+
references: {
|
|
32
|
+
model: 'rental_Price',
|
|
33
|
+
key: 'PriceId',
|
|
34
|
+
},
|
|
35
|
+
onUpdate: 'CASCADE',
|
|
36
|
+
onDelete: 'CASCADE',
|
|
37
|
+
},
|
|
38
|
+
StartDateTime: {
|
|
39
|
+
type: Sequelize.DATE,
|
|
40
|
+
allowNull: false,
|
|
41
|
+
},
|
|
42
|
+
EndDateTime: {
|
|
43
|
+
type: Sequelize.DATE,
|
|
44
|
+
allowNull: false,
|
|
45
|
+
},
|
|
46
|
+
Status: {
|
|
47
|
+
type: Sequelize.STRING(50),
|
|
48
|
+
allowNull: false,
|
|
49
|
+
},
|
|
50
|
+
CancelRemarks: {
|
|
51
|
+
type: Sequelize.STRING(3000),
|
|
52
|
+
},
|
|
53
|
+
TerminateRemarks: {
|
|
54
|
+
type: Sequelize.STRING(3000),
|
|
55
|
+
},
|
|
56
|
+
EscheatmentYN: {
|
|
57
|
+
type: Sequelize.CHAR(1),
|
|
58
|
+
},
|
|
59
|
+
AgreementNo: {
|
|
60
|
+
type: Sequelize.STRING(30),
|
|
61
|
+
allowNull: false,
|
|
62
|
+
unique: true,
|
|
63
|
+
references: {
|
|
64
|
+
model: 'rental_Agreement',
|
|
65
|
+
key: 'AgreementNo',
|
|
66
|
+
},
|
|
67
|
+
onUpdate: 'CASCADE',
|
|
68
|
+
onDelete: 'CASCADE',
|
|
69
|
+
},
|
|
70
|
+
AccountType: {
|
|
71
|
+
type: Sequelize.STRING(10),
|
|
72
|
+
allowNull: false,
|
|
73
|
+
},
|
|
74
|
+
CreatedById: {
|
|
75
|
+
type: Sequelize.STRING(30),
|
|
76
|
+
allowNull: false,
|
|
77
|
+
},
|
|
78
|
+
CreatedAt: {
|
|
79
|
+
type: Sequelize.DATE,
|
|
80
|
+
allowNull: false,
|
|
81
|
+
},
|
|
82
|
+
UpdatedById: {
|
|
83
|
+
type: Sequelize.STRING(30),
|
|
84
|
+
allowNull: false,
|
|
85
|
+
},
|
|
86
|
+
UpdatedAt: {
|
|
87
|
+
type: Sequelize.DATE,
|
|
88
|
+
allowNull: false,
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
async down(queryInterface, _Sequelize) {
|
|
94
|
+
await queryInterface.dropTable('rental_Rental');
|
|
95
|
+
},
|
|
96
|
+
};
|
package/package.json
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tomei/rental",
|
|
3
|
-
"version": "0.12.
|
|
4
|
-
"description": "Tomei Rental Package",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start:dev": "tsc -w",
|
|
8
|
-
"build": "tsc",
|
|
9
|
-
"prepare": "husky install",
|
|
10
|
-
"format": "prettier --write \"src/**/*.ts\"",
|
|
11
|
-
"lint": "npx eslint . --fix",
|
|
12
|
-
"test": "jest --forceExit --detectOpenHandles"
|
|
13
|
-
},
|
|
14
|
-
"repository": {
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "git+ssh://git@gitlab.com/tomei-package/rental.git"
|
|
17
|
-
},
|
|
18
|
-
"keywords": [
|
|
19
|
-
"tomei",
|
|
20
|
-
"rental"
|
|
21
|
-
],
|
|
22
|
-
"author": "Tomei",
|
|
23
|
-
"license": "ISC",
|
|
24
|
-
"bugs": {
|
|
25
|
-
"url": "https://gitlab.com/tomei-package/rental/issues"
|
|
26
|
-
},
|
|
27
|
-
"homepage": "https://gitlab.com/tomei-package/rental#readme",
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@commitlint/cli": "^19.6.0",
|
|
30
|
-
"@commitlint/config-conventional": "^19.6.0",
|
|
31
|
-
"@eslint/js": "^9.15.0",
|
|
32
|
-
"@tsconfig/node18": "^18.2.4",
|
|
33
|
-
"@types/jest": "^29.5.14",
|
|
34
|
-
"@types/luxon": "^3.4.2",
|
|
35
|
-
"@types/node": "^22.10.0",
|
|
36
|
-
"@types/validator": "^13.12.2",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^8.16.0",
|
|
38
|
-
"dotenv": "^16.4.5",
|
|
39
|
-
"eslint": "^9.15.0",
|
|
40
|
-
"eslint-config-prettier": "^9.1.0",
|
|
41
|
-
"eslint-plugin-prettier": "^5.2.1",
|
|
42
|
-
"globals": "^15.12.0",
|
|
43
|
-
"husky": "^9.1.7",
|
|
44
|
-
"jest": "^29.7.0",
|
|
45
|
-
"jest-mock-extended": "^3.0.7",
|
|
46
|
-
"lint-staged": "^15.2.10",
|
|
47
|
-
"prettier": "^3.4.1",
|
|
48
|
-
"ts-jest": "^29.2.5",
|
|
49
|
-
"ts-node": "^10.9.2",
|
|
50
|
-
"tsc-watch": "^6.2.1",
|
|
51
|
-
"tsconfig-paths": "^4.2.0",
|
|
52
|
-
"tslint": "^6.1.3",
|
|
53
|
-
"typescript": "^5.7.2",
|
|
54
|
-
"typescript-eslint": "^8.16.0"
|
|
55
|
-
},
|
|
56
|
-
"publishConfig": {
|
|
57
|
-
"access": "public"
|
|
58
|
-
},
|
|
59
|
-
"peerDependencies": {
|
|
60
|
-
"@tomei/activity-history": "^0.2.
|
|
61
|
-
"@tomei/config": "^0.3.
|
|
62
|
-
"@tomei/general": "^0.21.
|
|
63
|
-
"@tomei/sso": "^0.51.
|
|
64
|
-
"cuid": "^3.0.0",
|
|
65
|
-
"reflect-metadata": "^0.2.2",
|
|
66
|
-
"sequelize": "^6.37.5",
|
|
67
|
-
"sequelize-typescript": "^2.1.6"
|
|
68
|
-
},
|
|
69
|
-
"lint-staged": {
|
|
70
|
-
"*/**/*.{js,ts,tsx}": [
|
|
71
|
-
"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
72
|
-
"eslint \"{src,apps,libs,test}/**/*.ts\" --fix"
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
"dependencies": {
|
|
76
|
-
"luxon": "^3.5.0"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tomei/rental",
|
|
3
|
+
"version": "0.12.3",
|
|
4
|
+
"description": "Tomei Rental Package",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start:dev": "tsc -w",
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"prepare": "husky install",
|
|
10
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
11
|
+
"lint": "npx eslint . --fix",
|
|
12
|
+
"test": "jest --forceExit --detectOpenHandles"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+ssh://git@gitlab.com/tomei-package/rental.git"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"tomei",
|
|
20
|
+
"rental"
|
|
21
|
+
],
|
|
22
|
+
"author": "Tomei",
|
|
23
|
+
"license": "ISC",
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://gitlab.com/tomei-package/rental/issues"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://gitlab.com/tomei-package/rental#readme",
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@commitlint/cli": "^19.6.0",
|
|
30
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
31
|
+
"@eslint/js": "^9.15.0",
|
|
32
|
+
"@tsconfig/node18": "^18.2.4",
|
|
33
|
+
"@types/jest": "^29.5.14",
|
|
34
|
+
"@types/luxon": "^3.4.2",
|
|
35
|
+
"@types/node": "^22.10.0",
|
|
36
|
+
"@types/validator": "^13.12.2",
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^8.16.0",
|
|
38
|
+
"dotenv": "^16.4.5",
|
|
39
|
+
"eslint": "^9.15.0",
|
|
40
|
+
"eslint-config-prettier": "^9.1.0",
|
|
41
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
42
|
+
"globals": "^15.12.0",
|
|
43
|
+
"husky": "^9.1.7",
|
|
44
|
+
"jest": "^29.7.0",
|
|
45
|
+
"jest-mock-extended": "^3.0.7",
|
|
46
|
+
"lint-staged": "^15.2.10",
|
|
47
|
+
"prettier": "^3.4.1",
|
|
48
|
+
"ts-jest": "^29.2.5",
|
|
49
|
+
"ts-node": "^10.9.2",
|
|
50
|
+
"tsc-watch": "^6.2.1",
|
|
51
|
+
"tsconfig-paths": "^4.2.0",
|
|
52
|
+
"tslint": "^6.1.3",
|
|
53
|
+
"typescript": "^5.7.2",
|
|
54
|
+
"typescript-eslint": "^8.16.0"
|
|
55
|
+
},
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public"
|
|
58
|
+
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"@tomei/activity-history": "^0.2.22",
|
|
61
|
+
"@tomei/config": "^0.3.20",
|
|
62
|
+
"@tomei/general": "^0.21.2",
|
|
63
|
+
"@tomei/sso": "^0.51.5",
|
|
64
|
+
"cuid": "^3.0.0",
|
|
65
|
+
"reflect-metadata": "^0.2.2",
|
|
66
|
+
"sequelize": "^6.37.5",
|
|
67
|
+
"sequelize-typescript": "^2.1.6"
|
|
68
|
+
},
|
|
69
|
+
"lint-staged": {
|
|
70
|
+
"*/**/*.{js,ts,tsx}": [
|
|
71
|
+
"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
72
|
+
"eslint \"{src,apps,libs,test}/**/*.ts\" --fix"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"luxon": "^3.5.0"
|
|
77
|
+
}
|
|
78
|
+
}
|
package/sonar-project.properties
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
sonar.projectKey=all-tomei-projects_rental
|
|
2
|
-
sonar.organization=all-tomei-projects
|
|
3
|
-
|
|
4
|
-
# This is the name and version displayed in the SonarCloud UI.
|
|
5
|
-
#sonar.projectName=Rental
|
|
6
|
-
#sonar.projectVersion=1.0
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
|
10
|
-
#sonar.sources=.
|
|
11
|
-
|
|
12
|
-
# Encoding of the source code. Default is default system encoding
|
|
1
|
+
sonar.projectKey=all-tomei-projects_rental
|
|
2
|
+
sonar.organization=all-tomei-projects
|
|
3
|
+
|
|
4
|
+
# This is the name and version displayed in the SonarCloud UI.
|
|
5
|
+
#sonar.projectName=Rental
|
|
6
|
+
#sonar.projectVersion=1.0
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
|
10
|
+
#sonar.sources=.
|
|
11
|
+
|
|
12
|
+
# Encoding of the source code. Default is default system encoding
|
|
13
13
|
#sonar.sourceEncoding=UTF-8
|