@attraccess/plugin-reservations 0.1.0 → 0.2.0-nightly.1200.1
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/LICENSE.md +32 -0
- package/dist/index.js +1138 -862
- package/frontend/{__federation_expose_Plugin-DAM66N0j.js → __federation_expose_Plugin-mzW5Hi2C.js} +1069 -863
- package/frontend/__federation_fn_import-BHGw2mzr.js +1 -0
- package/frontend/{_virtual___federation_fn_import-BXODRNto.js → _virtual___federation_fn_import-D2E5es2p.js} +2 -4
- package/frontend/remoteEntry.js +3 -71
- package/frontend/style.css +13 -3
- package/package.json +26 -13
- package/dist/migrations.js +0 -161
- package/frontend/__federation_fn_import-DAGm_xmC.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as importShared, t as importSharedLocal, n as importSharedRuntime } from "./_virtual___federation_fn_import-D2E5es2p.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../../node_modules/.pnpm/@originjs+vite-plugin-federation@1.4.1/node_modules/@originjs/vite-plugin-federation/dist/satisfy.mjs
|
|
2
2
|
var buildIdentifier = "[0-9A-Za-z-]+";
|
|
3
3
|
var build = `(?:\\+(${buildIdentifier}(?:\\.${buildIdentifier})*))`;
|
|
4
4
|
var numericIdentifier = "0|[1-9]\\d*";
|
|
@@ -221,8 +221,7 @@ function satisfy(version, range) {
|
|
|
221
221
|
}
|
|
222
222
|
return true;
|
|
223
223
|
}
|
|
224
|
-
|
|
225
|
-
//#region \0virtual:__federation_fn_import
|
|
224
|
+
// \0virtual:__federation_fn_import
|
|
226
225
|
var moduleMap = {};
|
|
227
226
|
var moduleCache = Object.create(null);
|
|
228
227
|
async function importShared(name, shareScope = "default") {
|
|
@@ -257,5 +256,4 @@ function flattenModule(module, name) {
|
|
|
257
256
|
moduleCache[name] = module;
|
|
258
257
|
return module;
|
|
259
258
|
}
|
|
260
|
-
//#endregion
|
|
261
259
|
export { getSharedFromRuntime as n, importShared as r, getSharedFromLocal as t };
|
package/frontend/remoteEntry.js
CHANGED
|
@@ -1,71 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var scriptRel = "modulepreload";
|
|
3
|
-
var assetsURL = function(dep) {
|
|
4
|
-
return "/" + dep;
|
|
5
|
-
};
|
|
6
|
-
var seen$1 = {};
|
|
7
|
-
var __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
8
|
-
let promise = Promise.resolve();
|
|
9
|
-
if (deps && deps.length > 0) {
|
|
10
|
-
const links = document.getElementsByTagName("link");
|
|
11
|
-
const cspNonceMeta = document.querySelector("meta[property=csp-nonce]");
|
|
12
|
-
const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
|
|
13
|
-
function allSettled(promises) {
|
|
14
|
-
return Promise.all(promises.map((p) => Promise.resolve(p).then((value) => ({
|
|
15
|
-
status: "fulfilled",
|
|
16
|
-
value
|
|
17
|
-
}), (reason) => ({
|
|
18
|
-
status: "rejected",
|
|
19
|
-
reason
|
|
20
|
-
}))));
|
|
21
|
-
}
|
|
22
|
-
function importMetaResolve(specifier) {
|
|
23
|
-
if (import.meta.resolve) return import.meta.resolve(specifier);
|
|
24
|
-
return new URL(
|
|
25
|
-
specifier,
|
|
26
|
-
/** #__KEEP__ */
|
|
27
|
-
import.meta.url
|
|
28
|
-
).href;
|
|
29
|
-
}
|
|
30
|
-
promise = allSettled(deps.map((dep) => {
|
|
31
|
-
dep = assetsURL(dep, importerUrl);
|
|
32
|
-
dep = importMetaResolve(dep);
|
|
33
|
-
if (dep in seen$1) return;
|
|
34
|
-
seen$1[dep] = true;
|
|
35
|
-
const isCss = dep.endsWith(".css");
|
|
36
|
-
for (let i = links.length - 1; i >= 0; i--) {
|
|
37
|
-
const link = links[i];
|
|
38
|
-
if (link.href === dep && (!isCss || link.rel === "stylesheet")) return;
|
|
39
|
-
}
|
|
40
|
-
const link = document.createElement("link");
|
|
41
|
-
link.rel = isCss ? "stylesheet" : scriptRel;
|
|
42
|
-
if (!isCss) link.as = "script";
|
|
43
|
-
link.crossOrigin = "";
|
|
44
|
-
link.href = dep;
|
|
45
|
-
if (cspNonce) link.setAttribute("nonce", cspNonce);
|
|
46
|
-
document.head.appendChild(link);
|
|
47
|
-
if (isCss) return new Promise((res, rej) => {
|
|
48
|
-
link.addEventListener("load", res);
|
|
49
|
-
link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));
|
|
50
|
-
});
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
function handlePreloadError(err) {
|
|
54
|
-
const e = new Event("vite:preloadError", { cancelable: true });
|
|
55
|
-
e.payload = err;
|
|
56
|
-
window.dispatchEvent(e);
|
|
57
|
-
if (!e.defaultPrevented) throw err;
|
|
58
|
-
}
|
|
59
|
-
return promise.then((res) => {
|
|
60
|
-
for (const item of res || []) {
|
|
61
|
-
if (item.status !== "rejected") continue;
|
|
62
|
-
handlePreloadError(item.reason);
|
|
63
|
-
}
|
|
64
|
-
return baseModule().catch(handlePreloadError);
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
//#endregion
|
|
68
|
-
//#region \0virtual:__remoteEntryHelper__remoteEntry.js
|
|
1
|
+
// \0virtual:__remoteEntryHelper__remoteEntry.js
|
|
69
2
|
var currentImports = {};
|
|
70
3
|
var exportSet = /* @__PURE__ */ new Set([
|
|
71
4
|
"Module",
|
|
@@ -75,7 +8,7 @@ var exportSet = /* @__PURE__ */ new Set([
|
|
|
75
8
|
]);
|
|
76
9
|
var moduleMap = { "./plugin": () => {
|
|
77
10
|
dynamicLoadingCss(["style.css"], false, "./plugin");
|
|
78
|
-
return __federation_import("./__federation_expose_Plugin-
|
|
11
|
+
return __federation_import("./__federation_expose_Plugin-mzW5Hi2C.js").then((module) => Object.keys(module).every((item) => exportSet.has(item)) ? () => module.default : () => module);
|
|
79
12
|
} };
|
|
80
13
|
var seen = {};
|
|
81
14
|
var dynamicLoadingCss = (cssFilePaths, dontAppendStylesToHead, exposeItemName) => {
|
|
@@ -118,7 +51,7 @@ var dynamicLoadingCss = (cssFilePaths, dontAppendStylesToHead, exposeItemName) =
|
|
|
118
51
|
});
|
|
119
52
|
};
|
|
120
53
|
async function __federation_import(name) {
|
|
121
|
-
currentImports[name] ??=
|
|
54
|
+
currentImports[name] ??= import(name);
|
|
122
55
|
return currentImports[name];
|
|
123
56
|
}
|
|
124
57
|
var get = (module) => {
|
|
@@ -136,5 +69,4 @@ var init = (shareScope) => {
|
|
|
136
69
|
}
|
|
137
70
|
});
|
|
138
71
|
};
|
|
139
|
-
//#endregion
|
|
140
72
|
export { dynamicLoadingCss, get, init };
|
package/frontend/style.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! tailwindcss v4.3.
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties {
|
|
3
|
-
@supports (((-webkit-hyphens: none)) and (not (margin-trim:
|
|
3
|
+
@supports (((-webkit-hyphens: none)) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
|
|
4
4
|
*, :before, :after, ::backdrop {
|
|
5
5
|
--tw-divide-y-reverse: 0;
|
|
6
6
|
--tw-border-style: solid;
|
|
@@ -193,6 +193,12 @@
|
|
|
193
193
|
border-color: var(--separator);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
+
.rv\:truncate {
|
|
197
|
+
text-overflow: ellipsis;
|
|
198
|
+
white-space: nowrap;
|
|
199
|
+
overflow: hidden;
|
|
200
|
+
}
|
|
201
|
+
|
|
196
202
|
.rv\:overflow-hidden {
|
|
197
203
|
overflow: hidden;
|
|
198
204
|
}
|
|
@@ -202,7 +208,7 @@
|
|
|
202
208
|
}
|
|
203
209
|
|
|
204
210
|
.rv\:rounded-full {
|
|
205
|
-
border-radius:
|
|
211
|
+
border-radius: 2147483647px;
|
|
206
212
|
}
|
|
207
213
|
|
|
208
214
|
.rv\:border-b {
|
|
@@ -309,6 +315,10 @@
|
|
|
309
315
|
font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, );
|
|
310
316
|
}
|
|
311
317
|
|
|
318
|
+
.rv\:no-underline {
|
|
319
|
+
text-decoration-line: none;
|
|
320
|
+
}
|
|
321
|
+
|
|
312
322
|
.rv\:opacity-50 {
|
|
313
323
|
opacity: .5;
|
|
314
324
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@attraccess/plugin-reservations",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0-nightly.1200.1",
|
|
4
4
|
"description": "Official Attraccess plugin to reserve resources for a specific time window.",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/Attraccess/Attraccess.git",
|
|
@@ -23,32 +23,45 @@
|
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@attraccess/plugins-backend-sdk": "^
|
|
27
|
-
"@attraccess/plugins-frontend-sdk": "^
|
|
28
|
-
"@attraccess/plugins-frontend-ui": "^
|
|
26
|
+
"@attraccess/plugins-backend-sdk": "^2.0.0-0",
|
|
27
|
+
"@attraccess/plugins-frontend-sdk": "^2.0.0-0",
|
|
28
|
+
"@attraccess/plugins-frontend-ui": "^2.0.0-0"
|
|
29
29
|
},
|
|
30
30
|
"attraccess": {
|
|
31
31
|
"displayName": "Reservations",
|
|
32
32
|
"description": "Reserve a resource for a specific time window.",
|
|
33
|
-
"host": "^
|
|
33
|
+
"host": "^2.0.0-0",
|
|
34
34
|
"backend": "dist/index.js",
|
|
35
35
|
"frontend": "frontend/remoteEntry.js",
|
|
36
|
-
"migrations": "dist/migrations.js",
|
|
37
36
|
"styles": "frontend/style.css",
|
|
37
|
+
"dashboardPaths": [
|
|
38
|
+
"/reservations",
|
|
39
|
+
"/reservations/manage"
|
|
40
|
+
],
|
|
41
|
+
"dashboardWidgets": [
|
|
42
|
+
"reservations-upcoming"
|
|
43
|
+
],
|
|
38
44
|
"permissions": [
|
|
39
|
-
"
|
|
45
|
+
"PLUGIN_STORAGE",
|
|
40
46
|
"ACCESS_HOOKS",
|
|
41
47
|
"LISTEN_EVENTS",
|
|
42
48
|
"ACCESS_RESOURCES",
|
|
43
49
|
"READ_USERS",
|
|
44
50
|
"READ_SETTINGS",
|
|
45
|
-
"SEND_NOTIFICATIONS"
|
|
51
|
+
"SEND_NOTIFICATIONS",
|
|
52
|
+
"READER_UI"
|
|
46
53
|
],
|
|
54
|
+
"license": {
|
|
55
|
+
"required": true,
|
|
56
|
+
"modules": [
|
|
57
|
+
"reservations"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
47
60
|
"sdk": {
|
|
48
|
-
"backend": "^
|
|
49
|
-
"frontend": "^
|
|
61
|
+
"backend": "^2.0.0-0",
|
|
62
|
+
"frontend": "^2.0.0-0"
|
|
50
63
|
},
|
|
51
|
-
"publishedCommit": "
|
|
64
|
+
"publishedCommit": "45e93faeec0f3dce84926e2dc8900084875478a9"
|
|
52
65
|
},
|
|
53
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "45e93faeec0f3dce84926e2dc8900084875478a9"
|
|
54
67
|
}
|
package/dist/migrations.js
DELETED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
20
|
-
|
|
21
|
-
// backend/migrations.ts
|
|
22
|
-
var migrations_exports = {};
|
|
23
|
-
__export(migrations_exports, {
|
|
24
|
-
AddReservationStatusIndexes1790000000001: () => AddReservationStatusIndexes1790000000001,
|
|
25
|
-
CreateReservations1790000000000: () => CreateReservations1790000000000
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(migrations_exports);
|
|
28
|
-
|
|
29
|
-
// backend/migrations/1790000000000-create-reservations.ts
|
|
30
|
-
var CreateReservations1790000000000 = class {
|
|
31
|
-
constructor() {
|
|
32
|
-
__publicField(this, "name", "CreateReservations1790000000000");
|
|
33
|
-
}
|
|
34
|
-
async up(queryRunner) {
|
|
35
|
-
await queryRunner.query(
|
|
36
|
-
`CREATE TABLE IF NOT EXISTS "reservations_reservation" (
|
|
37
|
-
"id" integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
38
|
-
"resourceId" integer NOT NULL,
|
|
39
|
-
"userId" integer NOT NULL,
|
|
40
|
-
"startTime" datetime NOT NULL,
|
|
41
|
-
"endTime" datetime NOT NULL,
|
|
42
|
-
"bufferBeforeMinutes" integer NOT NULL DEFAULT (0),
|
|
43
|
-
"bufferAfterMinutes" integer NOT NULL DEFAULT (0),
|
|
44
|
-
"status" varchar NOT NULL,
|
|
45
|
-
"note" varchar,
|
|
46
|
-
"createdAt" datetime NOT NULL,
|
|
47
|
-
"endedEarlyAt" datetime,
|
|
48
|
-
"cancelledBy" integer,
|
|
49
|
-
"cancelReason" varchar,
|
|
50
|
-
"decidedBy" integer,
|
|
51
|
-
"decisionReason" varchar,
|
|
52
|
-
"decidedAt" datetime,
|
|
53
|
-
"checkedInAt" datetime,
|
|
54
|
-
"checkedInUsageId" integer,
|
|
55
|
-
"keptAt" datetime,
|
|
56
|
-
"confirmationSentAt" datetime,
|
|
57
|
-
"stillNeededSentAt" datetime,
|
|
58
|
-
"reminder24hSentAt" datetime,
|
|
59
|
-
"handoverSentAt" datetime,
|
|
60
|
-
"overrunSentAt" datetime,
|
|
61
|
-
"noShowNotifiedAt" datetime,
|
|
62
|
-
"expiredNotifiedAt" datetime
|
|
63
|
-
)`
|
|
64
|
-
);
|
|
65
|
-
await queryRunner.query(
|
|
66
|
-
`CREATE INDEX IF NOT EXISTS "IDX_reservations_reservation_slot" ON "reservations_reservation" ("resourceId", "status", "startTime", "endTime")`
|
|
67
|
-
);
|
|
68
|
-
await queryRunner.query(
|
|
69
|
-
`CREATE INDEX IF NOT EXISTS "IDX_reservations_reservation_user" ON "reservations_reservation" ("userId", "status")`
|
|
70
|
-
);
|
|
71
|
-
await queryRunner.query(
|
|
72
|
-
`CREATE TABLE IF NOT EXISTS "reservations_resource_settings" (
|
|
73
|
-
"resourceId" integer PRIMARY KEY NOT NULL,
|
|
74
|
-
"enabled" boolean NOT NULL DEFAULT (0),
|
|
75
|
-
"approvalRequired" boolean NOT NULL DEFAULT (0),
|
|
76
|
-
"timeStepMinutes" integer NOT NULL DEFAULT (15),
|
|
77
|
-
"minDurationMinutes" integer NOT NULL DEFAULT (15),
|
|
78
|
-
"maxDurationMinutes" integer NOT NULL DEFAULT (240),
|
|
79
|
-
"maxAdvanceDays" integer NOT NULL DEFAULT (30),
|
|
80
|
-
"minLeadMinutes" integer NOT NULL DEFAULT (0),
|
|
81
|
-
"bufferBeforeMinutes" integer NOT NULL DEFAULT (0),
|
|
82
|
-
"bufferAfterMinutes" integer NOT NULL DEFAULT (0),
|
|
83
|
-
"maxActiveBookingsPerUser" integer NOT NULL DEFAULT (3),
|
|
84
|
-
"whoCanBook" varchar NOT NULL DEFAULT ('can-start'),
|
|
85
|
-
"confirmWindowMinutes" integer NOT NULL DEFAULT (60),
|
|
86
|
-
"checkInEnabled" boolean NOT NULL DEFAULT (1),
|
|
87
|
-
"checkInGraceMinutes" integer NOT NULL DEFAULT (15),
|
|
88
|
-
"earlyCheckInMinutes" integer NOT NULL DEFAULT (15),
|
|
89
|
-
"handoverReminderMinutes" integer NOT NULL DEFAULT (15),
|
|
90
|
-
"bookableHours" text NOT NULL DEFAULT ('{}'),
|
|
91
|
-
"updatedAt" datetime NOT NULL
|
|
92
|
-
)`
|
|
93
|
-
);
|
|
94
|
-
await queryRunner.query(
|
|
95
|
-
`CREATE TABLE IF NOT EXISTS "reservations_global_settings" (
|
|
96
|
-
"key" varchar PRIMARY KEY NOT NULL,
|
|
97
|
-
"value" text NOT NULL
|
|
98
|
-
)`
|
|
99
|
-
);
|
|
100
|
-
await queryRunner.query(
|
|
101
|
-
`CREATE TABLE IF NOT EXISTS "reservations_ical_feed" (
|
|
102
|
-
"id" integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
103
|
-
"userId" integer NOT NULL,
|
|
104
|
-
"name" varchar NOT NULL,
|
|
105
|
-
"tokenHash" varchar NOT NULL,
|
|
106
|
-
"tokenPrefix" varchar,
|
|
107
|
-
"selection" text NOT NULL,
|
|
108
|
-
"createdAt" datetime NOT NULL,
|
|
109
|
-
"revokedAt" datetime,
|
|
110
|
-
"lastUsedAt" datetime,
|
|
111
|
-
CONSTRAINT "UQ_reservations_ical_feed_token" UNIQUE ("tokenHash")
|
|
112
|
-
)`
|
|
113
|
-
);
|
|
114
|
-
await queryRunner.query(
|
|
115
|
-
`CREATE INDEX IF NOT EXISTS "IDX_reservations_ical_feed_user" ON "reservations_ical_feed" ("userId")`
|
|
116
|
-
);
|
|
117
|
-
await queryRunner.query(
|
|
118
|
-
`CREATE TABLE IF NOT EXISTS "reservations_notice" (
|
|
119
|
-
"id" integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
120
|
-
"reservationId" integer NOT NULL,
|
|
121
|
-
"kind" varchar NOT NULL,
|
|
122
|
-
"refKey" varchar NOT NULL DEFAULT (''),
|
|
123
|
-
"sentAt" datetime NOT NULL
|
|
124
|
-
)`
|
|
125
|
-
);
|
|
126
|
-
await queryRunner.query(
|
|
127
|
-
`CREATE UNIQUE INDEX IF NOT EXISTS "UQ_reservations_notice" ON "reservations_notice" ("reservationId", "kind", "refKey")`
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
async down(queryRunner) {
|
|
131
|
-
await queryRunner.query(`DROP TABLE IF EXISTS "reservations_notice"`);
|
|
132
|
-
await queryRunner.query(`DROP TABLE IF EXISTS "reservations_ical_feed"`);
|
|
133
|
-
await queryRunner.query(`DROP TABLE IF EXISTS "reservations_global_settings"`);
|
|
134
|
-
await queryRunner.query(`DROP TABLE IF EXISTS "reservations_resource_settings"`);
|
|
135
|
-
await queryRunner.query(`DROP TABLE IF EXISTS "reservations_reservation"`);
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
// backend/migrations/1790000000001-add-reservation-status-indexes.ts
|
|
140
|
-
var AddReservationStatusIndexes1790000000001 = class {
|
|
141
|
-
constructor() {
|
|
142
|
-
__publicField(this, "name", "AddReservationStatusIndexes1790000000001");
|
|
143
|
-
}
|
|
144
|
-
async up(queryRunner) {
|
|
145
|
-
await queryRunner.query(
|
|
146
|
-
`CREATE INDEX IF NOT EXISTS "IDX_reservations_reservation_status_start" ON "reservations_reservation" ("status", "startTime")`
|
|
147
|
-
);
|
|
148
|
-
await queryRunner.query(
|
|
149
|
-
`CREATE INDEX IF NOT EXISTS "IDX_reservations_reservation_status_end" ON "reservations_reservation" ("status", "endTime")`
|
|
150
|
-
);
|
|
151
|
-
}
|
|
152
|
-
async down(queryRunner) {
|
|
153
|
-
await queryRunner.query(`DROP INDEX IF EXISTS "IDX_reservations_reservation_status_end"`);
|
|
154
|
-
await queryRunner.query(`DROP INDEX IF EXISTS "IDX_reservations_reservation_status_start"`);
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
158
|
-
0 && (module.exports = {
|
|
159
|
-
AddReservationStatusIndexes1790000000001,
|
|
160
|
-
CreateReservations1790000000000
|
|
161
|
-
});
|