@felloh-org/lambda-wrapper 1.1.61 → 1.1.62
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.
|
@@ -17,7 +17,7 @@ var _uuid = require("uuid");
|
|
|
17
17
|
|
|
18
18
|
var _bookingComponent = _interopRequireDefault(require("../booking-component"));
|
|
19
19
|
|
|
20
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13;
|
|
20
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
@@ -61,6 +61,9 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
61
61
|
type: 'timestamp with time zone'
|
|
62
62
|
}), _dec16 = (0, _typeorm.UpdateDateColumn)({
|
|
63
63
|
type: 'timestamp with time zone'
|
|
64
|
+
}), _dec17 = (0, _typeorm.DeleteDateColumn)({
|
|
65
|
+
type: 'timestamp with time zone',
|
|
66
|
+
nullable: true
|
|
64
67
|
}), _dec(_class = (_class2 = class Booking {
|
|
65
68
|
constructor() {
|
|
66
69
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
@@ -88,6 +91,8 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
88
91
|
_initializerDefineProperty(this, "created_at", _descriptor12, this);
|
|
89
92
|
|
|
90
93
|
_initializerDefineProperty(this, "updated_at", _descriptor13, this);
|
|
94
|
+
|
|
95
|
+
_initializerDefineProperty(this, "deleted_at", _descriptor14, this);
|
|
91
96
|
}
|
|
92
97
|
|
|
93
98
|
/**
|
|
@@ -202,5 +207,10 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
202
207
|
enumerable: true,
|
|
203
208
|
writable: true,
|
|
204
209
|
initializer: null
|
|
210
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec17], {
|
|
211
|
+
configurable: true,
|
|
212
|
+
enumerable: true,
|
|
213
|
+
writable: true,
|
|
214
|
+
initializer: null
|
|
205
215
|
})), _class2)) || _class);
|
|
206
216
|
exports.default = Booking;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class bookingSoftDelete1659707743290 {
|
|
4
|
+
name = 'bookingSoftDelete1659707743290'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ADD "deleted_at" TIMESTAMP WITH TIME ZONE`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" DROP COLUMN "deleted_at"`);
|
|
12
|
+
}
|
|
13
|
+
}
|