@opengis/surveyor 0.0.10 → 0.0.11
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/dist/chunks/{AppIcon-Di5F4Bu_.js → AppIcon-CCLzEE-_.js} +1 -1
- package/dist/chunks/{AppealDetailField-DNpsGpPY.js → AppealDetailField-CI-1qhs3.js} +2 -2
- package/dist/chunks/{AppealStatusBadge-z77wwkFD.js → AppealStatusBadge-CzzI6x8I.js} +2 -2
- package/dist/chunks/{AppealStatusBadge-MP1qD952.js → AppealStatusBadge-DYBe9hqP.js} +1 -1
- package/dist/chunks/{ApplicationHistorySection-DIoFZwH6.js → ApplicationHistorySection-CPCU_DXH.js} +4 -4
- package/dist/chunks/{BaseModal-DP_ilBdg.js → BaseModal-DnwqlJhc.js} +2 -2
- package/dist/chunks/{FormFilePicker-D5fAUE0Z.js → FormFilePicker-Dss6pGmO.js} +2 -2
- package/dist/chunks/{MapLayerMenu-CI5cbLEC.js → MapLayerMenu-DjYCxEc3.js} +1 -1
- package/dist/chunks/{RegistryForm-DbCxZsr0.js → RegistryForm-CEUqFmsF.js} +1 -1
- package/dist/chunks/{RegistryFormModal-D_KLGj2d.js → RegistryFormModal-C-Z4MMHi.js} +3 -3
- package/dist/chunks/{RegistryToolbar-DvbrASlj.js → RegistryToolbar-CI1MRqzw.js} +6 -6
- package/dist/chunks/{SurveyorTeleport-D6-KXe_5.js → SurveyorTeleport-BLEO6we9.js} +1 -1
- package/dist/chunks/{UserAccessBadge-B5Q1LvNv.js → UserAccessBadge-D8JfgGfN.js} +1 -1
- package/dist/chunks/{UserTypeBadge-CuAMctTK.js → UserTypeBadge-YIwwoCho.js} +1 -1
- package/dist/chunks/{VerifiedBadge-D6L7mCdp.js → VerifiedBadge-B__Vs_ce.js} +2 -2
- package/dist/chunks/{card-ylC5NYbz.js → card-BElHsAFl.js} +10 -10
- package/dist/chunks/{card-Cu8QOSIw.js → card-CU2THiBT.js} +4 -4
- package/dist/chunks/{card-BsTSF6aL.js → card-CUDo4kUH.js} +10 -10
- package/dist/chunks/{card-CI7ntIHf.js → card-DL7yHB1C.js} +5 -5
- package/dist/chunks/{card--XUb1kFK.js → card-UG1mWhcg.js} +4 -4
- package/dist/chunks/{card-BrjnXf1N.js → card-sDIYR6YI.js} +6 -6
- package/dist/chunks/{certificates-aJ-hvaP-.js → certificates-DKi9CSfc.js} +5 -5
- package/dist/chunks/{create-Bi7-j9Ri.js → create-DVZv77Uw.js} +9 -9
- package/dist/chunks/{forgot-DnixBqdc.js → forgot-BVzXMKGA.js} +2 -2
- package/dist/chunks/{login-BWCQdEkv.js → login-BCib_dtl.js} +2 -2
- package/dist/chunks/{map-CwsVIW79.js → map-CNX1_COE.js} +10 -10
- package/dist/chunks/{map-layers-BLiEYC4C.js → map-layers-CCJ7G7ZK.js} +5 -5
- package/dist/chunks/{organizations-mc6FlSwe.js → organizations-BuMFRKjw.js} +6 -6
- package/dist/chunks/{profile-F7mr0poI.js → profile-BI_RIHN1.js} +3 -3
- package/dist/chunks/{registration-BRF4985_.js → registration-6nn7GgDS.js} +2 -2
- package/dist/chunks/{requests-7pD2ckdx.js → requests-DQRmDemb.js} +4 -4
- package/dist/chunks/{requests-BCJN-CNx.js → requests-Dh5jxF06.js} +5 -5
- package/dist/chunks/{reset-OZCgLi6f.js → reset-D2uXDfB6.js} +2 -2
- package/dist/chunks/{useEntityPath-8s0Y1tjA.js → useEntityPath-n7hCq8zh.js} +1 -1
- package/dist/chunks/{users-CAEjpaI1.js → users-LbXn1F2y.js} +6 -6
- package/dist/index.css +1 -1
- package/dist/index.js +40 -40
- package/migrations/20261016120000_map_layers.sql +156 -156
- package/migrations/20261016150000_password_reset.sql +15 -15
- package/migrations/20261016180000_settlement_lookup.sql +16 -16
- package/package.json +1 -1
- package/server/dictionaries/index.ts +17 -17
- package/server/dictionaries/surveyor/map_layer_components.ts +11 -11
- package/server/dictionaries/surveyor/map_layer_groups.ts +10 -10
- package/server/dictionaries/surveyor/map_layer_types.ts +11 -11
- package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +41 -41
- package/server/modules/surveyor/services/mapLayers.ts +61 -61
- package/server/modules/surveyor/services/updateSurveyorAccountStatus.ts +52 -52
- package/server/modules/surveyor/services/updateSurveyorStatus.ts +53 -53
- package/server/modules/surveyor/utils/templates/ds.surveyor_admin_password.pt.hbs +79 -79
- package/server/modules/surveyor/utils/templates/ds.surveyor_password_reset.pt.hbs +79 -79
- package/server/plugins/convertVector.ts +1 -1
- package/server/resources/helpers/settlement_lookup.ts +7 -7
- package/server/resources/surveyor-admin/map_layers.ts +69 -69
- package/server/resources/surveyor-admin/organization_surveyors.ts +31 -31
- package/server/resources/surveyor-admin/organizations.ts +61 -61
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { t as r } from "./chunks/_plugin-vue_export-helper-B3ysoDQm.js";
|
|
|
3
3
|
import { t as i } from "./chunks/auth-acuaYbYM.js";
|
|
4
4
|
import { i as a, r as o } from "./chunks/profile-aXlo4qqA.js";
|
|
5
5
|
import { i as s, o as c, s as l, t as u } from "./chunks/organizations-DbVDoURw.js";
|
|
6
|
-
import { t as d } from "./chunks/AppIcon-
|
|
6
|
+
import { t as d } from "./chunks/AppIcon-CCLzEE-_.js";
|
|
7
7
|
import { t as f } from "./chunks/list-search-D5VdmGdV.js";
|
|
8
8
|
import { Fragment as p, computed as m, createApp as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineAsyncComponent as S, defineComponent as C, inject as w, normalizeClass as T, onBeforeUnmount as E, onMounted as D, openBlock as O, provide as ee, ref as k, renderList as te, renderSlot as A, resolveDynamicComponent as j, toDisplayString as M, vModelText as ne, watch as re, withCtx as N, withDirectives as ie } from "vue";
|
|
9
9
|
import { RouterView as P, createRouter as ae, createWebHistory as oe, useRoute as se, useRouter as F } from "vue-router";
|
|
@@ -57,13 +57,13 @@ function z(e, t, n, r, i, a) {
|
|
|
57
57
|
var B = /*#__PURE__*/ r(I, [
|
|
58
58
|
["render", z],
|
|
59
59
|
["__scopeId", "data-v-ee198999"],
|
|
60
|
-
["__file", "D:/
|
|
60
|
+
["__file", "D:/Softpro/surveyor/src/wrappers/SurveyorEmbedShell.vue"]
|
|
61
61
|
]), V = /*@__PURE__*/ C({
|
|
62
62
|
__name: "Map",
|
|
63
63
|
setup(e, { expose: t }) {
|
|
64
64
|
t();
|
|
65
65
|
let n = {
|
|
66
|
-
MapPage: S(() => import("./chunks/map-
|
|
66
|
+
MapPage: S(() => import("./chunks/map-CNX1_COE.js")),
|
|
67
67
|
SurveyorEmbedShell: B
|
|
68
68
|
};
|
|
69
69
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
@@ -83,7 +83,7 @@ function H(e, t, n, r, i, a) {
|
|
|
83
83
|
_: 1
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
var U = /*#__PURE__*/ r(V, [["render", H], ["__file", "D:/
|
|
86
|
+
var U = /*#__PURE__*/ r(V, [["render", H], ["__file", "D:/Softpro/surveyor/src/wrappers/Map.vue"]]), W = /*@__PURE__*/ C({
|
|
87
87
|
__name: "BaseEntityWrapper",
|
|
88
88
|
props: {
|
|
89
89
|
list: {
|
|
@@ -134,13 +134,13 @@ var U = /*#__PURE__*/ r(V, [["render", H], ["__file", "D:/softpro/surveyor/src/w
|
|
|
134
134
|
function G(e, t, n, r, i, a) {
|
|
135
135
|
return O(), g(j(r.activeComponent), { key: r.activeKey || "list" });
|
|
136
136
|
}
|
|
137
|
-
var K = /*#__PURE__*/ r(W, [["render", G], ["__file", "D:/
|
|
137
|
+
var K = /*#__PURE__*/ r(W, [["render", G], ["__file", "D:/Softpro/surveyor/src/wrappers/BaseEntityWrapper.vue"]]), ce = /*@__PURE__*/ C({
|
|
138
138
|
__name: "Requests",
|
|
139
139
|
setup(e, { expose: t }) {
|
|
140
140
|
t();
|
|
141
141
|
let n = {
|
|
142
|
-
Index: S(() => import("./chunks/requests-
|
|
143
|
-
Card: S(() => import("./chunks/card-
|
|
142
|
+
Index: S(() => import("./chunks/requests-DQRmDemb.js")),
|
|
143
|
+
Card: S(() => import("./chunks/card-CUDo4kUH.js")),
|
|
144
144
|
BaseEntityWrapper: K,
|
|
145
145
|
SurveyorEmbedShell: B
|
|
146
146
|
};
|
|
@@ -162,13 +162,13 @@ function le(e, t, n, r, i, a) {
|
|
|
162
162
|
_: 1
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
|
-
var ue = /*#__PURE__*/ r(ce, [["render", le], ["__file", "D:/
|
|
165
|
+
var ue = /*#__PURE__*/ r(ce, [["render", le], ["__file", "D:/Softpro/surveyor/src/wrappers/Requests.vue"]]), de = /*@__PURE__*/ C({
|
|
166
166
|
__name: "Organisations",
|
|
167
167
|
setup(e, { expose: t }) {
|
|
168
168
|
t();
|
|
169
169
|
let n = {
|
|
170
|
-
Index: S(() => import("./chunks/organizations-
|
|
171
|
-
Card: S(() => import("./chunks/card-
|
|
170
|
+
Index: S(() => import("./chunks/organizations-BuMFRKjw.js")),
|
|
171
|
+
Card: S(() => import("./chunks/card-BElHsAFl.js")),
|
|
172
172
|
BaseEntityWrapper: K,
|
|
173
173
|
SurveyorEmbedShell: B
|
|
174
174
|
};
|
|
@@ -190,13 +190,13 @@ function fe(e, t, n, r, i, a) {
|
|
|
190
190
|
_: 1
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
var pe = /*#__PURE__*/ r(de, [["render", fe], ["__file", "D:/
|
|
193
|
+
var pe = /*#__PURE__*/ r(de, [["render", fe], ["__file", "D:/Softpro/surveyor/src/wrappers/Organisations.vue"]]), me = /*@__PURE__*/ C({
|
|
194
194
|
__name: "Certificates",
|
|
195
195
|
setup(e, { expose: t }) {
|
|
196
196
|
t();
|
|
197
197
|
let n = {
|
|
198
|
-
Index: S(() => import("./chunks/certificates-
|
|
199
|
-
Card: S(() => import("./chunks/card-
|
|
198
|
+
Index: S(() => import("./chunks/certificates-DKi9CSfc.js")),
|
|
199
|
+
Card: S(() => import("./chunks/card-sDIYR6YI.js")),
|
|
200
200
|
BaseEntityWrapper: K,
|
|
201
201
|
SurveyorEmbedShell: B
|
|
202
202
|
};
|
|
@@ -218,13 +218,13 @@ function he(e, t, n, r, i, a) {
|
|
|
218
218
|
_: 1
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
|
-
var ge = /*#__PURE__*/ r(me, [["render", he], ["__file", "D:/
|
|
221
|
+
var ge = /*#__PURE__*/ r(me, [["render", he], ["__file", "D:/Softpro/surveyor/src/wrappers/Certificates.vue"]]), _e = /*@__PURE__*/ C({
|
|
222
222
|
__name: "Users",
|
|
223
223
|
setup(e, { expose: t }) {
|
|
224
224
|
t();
|
|
225
225
|
let n = {
|
|
226
|
-
Index: S(() => import("./chunks/users-
|
|
227
|
-
Card: S(() => import("./chunks/card-
|
|
226
|
+
Index: S(() => import("./chunks/users-LbXn1F2y.js")),
|
|
227
|
+
Card: S(() => import("./chunks/card-CU2THiBT.js")),
|
|
228
228
|
BaseEntityWrapper: K,
|
|
229
229
|
SurveyorEmbedShell: B
|
|
230
230
|
};
|
|
@@ -246,13 +246,13 @@ function ve(e, t, n, r, i, a) {
|
|
|
246
246
|
_: 1
|
|
247
247
|
});
|
|
248
248
|
}
|
|
249
|
-
var ye = /*#__PURE__*/ r(_e, [["render", ve], ["__file", "D:/
|
|
249
|
+
var ye = /*#__PURE__*/ r(_e, [["render", ve], ["__file", "D:/Softpro/surveyor/src/wrappers/Users.vue"]]), be = /*@__PURE__*/ C({
|
|
250
250
|
__name: "MapLayers",
|
|
251
251
|
setup(e, { expose: t }) {
|
|
252
252
|
t();
|
|
253
253
|
let n = {
|
|
254
|
-
Index: S(() => import("./chunks/map-layers-
|
|
255
|
-
Card: S(() => import("./chunks/card
|
|
254
|
+
Index: S(() => import("./chunks/map-layers-CCJ7G7ZK.js")),
|
|
255
|
+
Card: S(() => import("./chunks/card-UG1mWhcg.js")),
|
|
256
256
|
BaseEntityWrapper: K,
|
|
257
257
|
SurveyorEmbedShell: B
|
|
258
258
|
};
|
|
@@ -274,14 +274,14 @@ function xe(e, t, n, r, i, a) {
|
|
|
274
274
|
_: 1
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
|
-
var Se = /*#__PURE__*/ r(be, [["render", xe], ["__file", "D:/
|
|
277
|
+
var Se = /*#__PURE__*/ r(be, [["render", xe], ["__file", "D:/Softpro/surveyor/src/wrappers/MapLayers.vue"]]), Ce = /*@__PURE__*/ C({
|
|
278
278
|
__name: "CabinetRequests",
|
|
279
279
|
setup(e, { expose: t }) {
|
|
280
280
|
t();
|
|
281
281
|
let n = {
|
|
282
|
-
Index: S(() => import("./chunks/requests-
|
|
283
|
-
Create: S(() => import("./chunks/create-
|
|
284
|
-
Card: S(() => import("./chunks/card-
|
|
282
|
+
Index: S(() => import("./chunks/requests-Dh5jxF06.js")),
|
|
283
|
+
Create: S(() => import("./chunks/create-DVZv77Uw.js")),
|
|
284
|
+
Card: S(() => import("./chunks/card-DL7yHB1C.js")),
|
|
285
285
|
BaseEntityWrapper: K,
|
|
286
286
|
SurveyorEmbedShell: B
|
|
287
287
|
};
|
|
@@ -309,12 +309,12 @@ function we(e, t, n, r, i, a) {
|
|
|
309
309
|
_: 1
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
|
-
var Te = /*#__PURE__*/ r(Ce, [["render", we], ["__file", "D:/
|
|
312
|
+
var Te = /*#__PURE__*/ r(Ce, [["render", we], ["__file", "D:/Softpro/surveyor/src/wrappers/CabinetRequests.vue"]]), Ee = /*@__PURE__*/ C({
|
|
313
313
|
__name: "CabinetProfile",
|
|
314
314
|
setup(e, { expose: t }) {
|
|
315
315
|
t();
|
|
316
316
|
let n = {
|
|
317
|
-
Profile: S(() => import("./chunks/profile-
|
|
317
|
+
Profile: S(() => import("./chunks/profile-BI_RIHN1.js")),
|
|
318
318
|
SurveyorEmbedShell: B
|
|
319
319
|
};
|
|
320
320
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
@@ -331,7 +331,7 @@ function De(e, t, n, r, i, a) {
|
|
|
331
331
|
_: 1
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
|
-
var Oe = /*#__PURE__*/ r(Ee, [["render", De], ["__file", "D:/
|
|
334
|
+
var Oe = /*#__PURE__*/ r(Ee, [["render", De], ["__file", "D:/Softpro/surveyor/src/wrappers/CabinetProfile.vue"]]), ke = /*@__PURE__*/ C({
|
|
335
335
|
__name: "SurveyorRoot",
|
|
336
336
|
setup(r, { expose: i }) {
|
|
337
337
|
i(), ee(t, !0);
|
|
@@ -355,7 +355,7 @@ function Me(e, t, n, r, i, a) {
|
|
|
355
355
|
class: "surveyor-root min-h-screen bg-slate-50 text-slate-800 antialiased"
|
|
356
356
|
}, [A(e.$slots, "default"), y("div", { id: r.SURVEYOR_PORTAL_ID }, null, 8, je)], 8, Ae);
|
|
357
357
|
}
|
|
358
|
-
var q = /*#__PURE__*/ r(ke, [["render", Me], ["__file", "D:/
|
|
358
|
+
var q = /*#__PURE__*/ r(ke, [["render", Me], ["__file", "D:/Softpro/surveyor/shared/surveyor/SurveyorRoot.vue"]]), Ne = /*@__PURE__*/ C({
|
|
359
359
|
__name: "Cabinet",
|
|
360
360
|
setup(e, { expose: t }) {
|
|
361
361
|
t();
|
|
@@ -379,7 +379,7 @@ function Pe(e, t, n, r, i, a) {
|
|
|
379
379
|
_: 1
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
|
-
var J = /*#__PURE__*/ r(Ne, [["render", Pe], ["__file", "D:/
|
|
382
|
+
var J = /*#__PURE__*/ r(Ne, [["render", Pe], ["__file", "D:/Softpro/surveyor/src/wrappers/Cabinet.vue"]]), Fe = /*@__PURE__*/ C({
|
|
383
383
|
__name: "OrgSwitcher",
|
|
384
384
|
props: {
|
|
385
385
|
organizations: {
|
|
@@ -461,7 +461,7 @@ function Xe(e, t, n, r, i, a) {
|
|
|
461
461
|
})) : _("", !0)
|
|
462
462
|
], 10, Ke))), 128))])])) : _("", !0)], 512)) : _("", !0);
|
|
463
463
|
}
|
|
464
|
-
var Ze = /*#__PURE__*/ r(Fe, [["render", Xe], ["__file", "D:/
|
|
464
|
+
var Ze = /*#__PURE__*/ r(Fe, [["render", Xe], ["__file", "D:/Softpro/surveyor/cabinet/src/components/OrgSwitcher.vue"]]), Qe = /*@__PURE__*/ C({
|
|
465
465
|
__name: "CabinetTopNav",
|
|
466
466
|
setup(e, { expose: t }) {
|
|
467
467
|
t();
|
|
@@ -603,7 +603,7 @@ function lt(e, t, n, r, i, a) {
|
|
|
603
603
|
])) : _("", !0)], 512)
|
|
604
604
|
])]);
|
|
605
605
|
}
|
|
606
|
-
var ut = /*#__PURE__*/ r(Qe, [["render", lt], ["__file", "D:/
|
|
606
|
+
var ut = /*#__PURE__*/ r(Qe, [["render", lt], ["__file", "D:/Softpro/surveyor/cabinet/src/layouts/CabinetTopNav.vue"]]), dt = /*@__PURE__*/ C({
|
|
607
607
|
__name: "CabinetLayout",
|
|
608
608
|
setup(e, { expose: t }) {
|
|
609
609
|
t(), D(() => {
|
|
@@ -630,7 +630,7 @@ var X = [
|
|
|
630
630
|
{
|
|
631
631
|
path: "/login",
|
|
632
632
|
name: "login",
|
|
633
|
-
component: () => import("./chunks/login-
|
|
633
|
+
component: () => import("./chunks/login-BCib_dtl.js"),
|
|
634
634
|
meta: {
|
|
635
635
|
public: !0,
|
|
636
636
|
title: "Вхід"
|
|
@@ -639,7 +639,7 @@ var X = [
|
|
|
639
639
|
{
|
|
640
640
|
path: "/registration/:token",
|
|
641
641
|
name: "registration-complete",
|
|
642
|
-
component: () => import("./chunks/registration-
|
|
642
|
+
component: () => import("./chunks/registration-6nn7GgDS.js"),
|
|
643
643
|
meta: {
|
|
644
644
|
public: !0,
|
|
645
645
|
title: "Завершення реєстрації"
|
|
@@ -648,7 +648,7 @@ var X = [
|
|
|
648
648
|
{
|
|
649
649
|
path: "/password/forgot",
|
|
650
650
|
name: "password-forgot",
|
|
651
|
-
component: () => import("./chunks/forgot-
|
|
651
|
+
component: () => import("./chunks/forgot-BVzXMKGA.js"),
|
|
652
652
|
meta: {
|
|
653
653
|
public: !0,
|
|
654
654
|
title: "Відновлення пароля"
|
|
@@ -657,7 +657,7 @@ var X = [
|
|
|
657
657
|
{
|
|
658
658
|
path: "/password/reset/:token",
|
|
659
659
|
name: "password-reset",
|
|
660
|
-
component: () => import("./chunks/reset-
|
|
660
|
+
component: () => import("./chunks/reset-D2uXDfB6.js"),
|
|
661
661
|
meta: {
|
|
662
662
|
public: !0,
|
|
663
663
|
title: "Новий пароль"
|
|
@@ -665,7 +665,7 @@ var X = [
|
|
|
665
665
|
},
|
|
666
666
|
{
|
|
667
667
|
path: "/",
|
|
668
|
-
component: /* @__PURE__ */ r(dt, [["render", pt], ["__file", "D:/
|
|
668
|
+
component: /* @__PURE__ */ r(dt, [["render", pt], ["__file", "D:/Softpro/surveyor/cabinet/src/layouts/CabinetLayout.vue"]]),
|
|
669
669
|
children: [
|
|
670
670
|
{
|
|
671
671
|
path: "",
|
|
@@ -674,7 +674,7 @@ var X = [
|
|
|
674
674
|
{
|
|
675
675
|
path: "requests",
|
|
676
676
|
name: "requests",
|
|
677
|
-
component: () => import("./chunks/requests-
|
|
677
|
+
component: () => import("./chunks/requests-Dh5jxF06.js"),
|
|
678
678
|
meta: {
|
|
679
679
|
title: "Звернення",
|
|
680
680
|
label: "Звернення на видачу та прийом матеріалів",
|
|
@@ -684,7 +684,7 @@ var X = [
|
|
|
684
684
|
{
|
|
685
685
|
path: "requests/new",
|
|
686
686
|
name: "request-create",
|
|
687
|
-
component: () => import("./chunks/create-
|
|
687
|
+
component: () => import("./chunks/create-DVZv77Uw.js"),
|
|
688
688
|
meta: {
|
|
689
689
|
title: "Нове звернення",
|
|
690
690
|
section: "requests"
|
|
@@ -693,7 +693,7 @@ var X = [
|
|
|
693
693
|
{
|
|
694
694
|
path: "requests/:number",
|
|
695
695
|
name: "request-detail",
|
|
696
|
-
component: () => import("./chunks/card-
|
|
696
|
+
component: () => import("./chunks/card-DL7yHB1C.js"),
|
|
697
697
|
meta: {
|
|
698
698
|
title: "Звернення",
|
|
699
699
|
section: "requests"
|
|
@@ -702,7 +702,7 @@ var X = [
|
|
|
702
702
|
{
|
|
703
703
|
path: "profile",
|
|
704
704
|
name: "profile",
|
|
705
|
-
component: () => import("./chunks/profile-
|
|
705
|
+
component: () => import("./chunks/profile-BI_RIHN1.js"),
|
|
706
706
|
meta: {
|
|
707
707
|
title: "Профайл",
|
|
708
708
|
label: "Профайл",
|
|
@@ -772,7 +772,7 @@ var mt = /*@__PURE__*/ C({
|
|
|
772
772
|
function gt(e, t, n, r, i, a) {
|
|
773
773
|
return O(), v("div", ht, null, 512);
|
|
774
774
|
}
|
|
775
|
-
var _t = /*#__PURE__*/ r(mt, [["render", gt], ["__file", "D:/
|
|
775
|
+
var _t = /*#__PURE__*/ r(mt, [["render", gt], ["__file", "D:/Softpro/surveyor/src/wrappers/CabinetHost.vue"]]), Q = {
|
|
776
776
|
map: "/map",
|
|
777
777
|
requests: "/requests",
|
|
778
778
|
organizations: "/organizations",
|
|
@@ -1,156 +1,156 @@
|
|
|
1
|
-
-- Налаштування шарів панелі «Шари» на карті Кабінету геодезиста.
|
|
2
|
-
-- Базові шари (підложка) вибираються по одному, додаткові накладаються поверх у порядку sort_order.
|
|
3
|
-
-- fcore-migrate applies this file as one transaction.
|
|
4
|
-
|
|
5
|
-
CREATE TYPE surveyor.map_layer_group_enum AS ENUM (
|
|
6
|
-
'base', -- базовий шар (підложка)
|
|
7
|
-
'overlay' -- додатковий шар
|
|
8
|
-
);
|
|
9
|
-
|
|
10
|
-
CREATE TYPE surveyor.map_layer_type_enum AS ENUM (
|
|
11
|
-
'raster', -- растрові тайли XYZ/TMS
|
|
12
|
-
'vector', -- векторні тайли MVT
|
|
13
|
-
'applications' -- шар заявок застосунку
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
CREATE TABLE surveyor.map_layers (
|
|
17
|
-
layer_id text primary key DEFAULT public.next_id(),
|
|
18
|
-
code text not null,
|
|
19
|
-
name text not null,
|
|
20
|
-
layer_group surveyor.map_layer_group_enum not null,
|
|
21
|
-
layer_type surveyor.map_layer_type_enum not null DEFAULT 'raster',
|
|
22
|
-
tiles text[] not null DEFAULT '{}',
|
|
23
|
-
scheme text not null DEFAULT 'xyz',
|
|
24
|
-
source_layer text,
|
|
25
|
-
attribution text,
|
|
26
|
-
minzoom integer,
|
|
27
|
-
maxzoom integer,
|
|
28
|
-
opacity numeric(3, 2) not null DEFAULT 1,
|
|
29
|
-
style jsonb,
|
|
30
|
-
legend jsonb,
|
|
31
|
-
preview text,
|
|
32
|
-
components text[] not null DEFAULT '{}',
|
|
33
|
-
sort_order integer not null DEFAULT 0,
|
|
34
|
-
is_default boolean not null DEFAULT false,
|
|
35
|
-
has_filters boolean not null DEFAULT false,
|
|
36
|
-
enabled boolean not null DEFAULT true,
|
|
37
|
-
created_by text,
|
|
38
|
-
created_at timestamp without time zone DEFAULT now() not null,
|
|
39
|
-
updated_by text,
|
|
40
|
-
updated_at timestamp without time zone DEFAULT now() not null,
|
|
41
|
-
CONSTRAINT map_layers_code_key UNIQUE (code),
|
|
42
|
-
CONSTRAINT map_layers_scheme_check CHECK (scheme IN ('xyz', 'tms')),
|
|
43
|
-
CONSTRAINT map_layers_components_check CHECK (
|
|
44
|
-
components <@ ARRAY['map', 'application-form', 'application-card']::text[]
|
|
45
|
-
),
|
|
46
|
-
CONSTRAINT map_layers_opacity_check CHECK (opacity BETWEEN 0 AND 1),
|
|
47
|
-
CONSTRAINT map_layers_zoom_check CHECK (
|
|
48
|
-
(minzoom IS NULL OR minzoom BETWEEN 0 AND 24)
|
|
49
|
-
AND (maxzoom IS NULL OR maxzoom BETWEEN 0 AND 24)
|
|
50
|
-
AND (minzoom IS NULL OR maxzoom IS NULL OR minzoom <= maxzoom)
|
|
51
|
-
),
|
|
52
|
-
CONSTRAINT map_layers_base_type_check CHECK (layer_group <> 'base' OR layer_type = 'raster'),
|
|
53
|
-
CONSTRAINT map_layers_vector_source_check CHECK (layer_type <> 'vector' OR source_layer IS NOT NULL)
|
|
54
|
-
);
|
|
55
|
-
|
|
56
|
-
-- Активна підложка за замовчуванням може бути лише одна.
|
|
57
|
-
CREATE UNIQUE INDEX map_layers_default_base_idx
|
|
58
|
-
ON surveyor.map_layers (layer_group)
|
|
59
|
-
WHERE layer_group = 'base' AND is_default AND enabled;
|
|
60
|
-
|
|
61
|
-
CREATE INDEX map_layers_group_order_idx
|
|
62
|
-
ON surveyor.map_layers (layer_group, sort_order);
|
|
63
|
-
|
|
64
|
-
CREATE INDEX map_layers_components_idx
|
|
65
|
-
ON surveyor.map_layers USING gin (components);
|
|
66
|
-
|
|
67
|
-
COMMENT ON TABLE surveyor.map_layers
|
|
68
|
-
IS 'Налаштування шарів карти';
|
|
69
|
-
|
|
70
|
-
COMMENT ON COLUMN surveyor.map_layers.code
|
|
71
|
-
IS 'Стабільний код шару для frontend (osm, applications, red-lines)';
|
|
72
|
-
|
|
73
|
-
COMMENT ON COLUMN surveyor.map_layers.name
|
|
74
|
-
IS 'Назва шару в панелі';
|
|
75
|
-
|
|
76
|
-
COMMENT ON COLUMN surveyor.map_layers.layer_group
|
|
77
|
-
IS 'Група: base - базовий шар (підложка), overlay - додатковий шар';
|
|
78
|
-
|
|
79
|
-
COMMENT ON COLUMN surveyor.map_layers.layer_type
|
|
80
|
-
IS 'Тип джерела: raster - растрові тайли, vector - векторні тайли, applications - шар заявок';
|
|
81
|
-
|
|
82
|
-
COMMENT ON COLUMN surveyor.map_layers.tiles
|
|
83
|
-
IS 'Шаблони URL тайлів з {z}/{x}/{y}';
|
|
84
|
-
|
|
85
|
-
COMMENT ON COLUMN surveyor.map_layers.scheme
|
|
86
|
-
IS 'Схема нумерації тайлів: xyz або tms';
|
|
87
|
-
|
|
88
|
-
COMMENT ON COLUMN surveyor.map_layers.source_layer
|
|
89
|
-
IS 'Назва шару у векторних тайлах (source-layer)';
|
|
90
|
-
|
|
91
|
-
COMMENT ON COLUMN surveyor.map_layers.attribution
|
|
92
|
-
IS 'Атрибуція провайдера, що показується в куті карти';
|
|
93
|
-
|
|
94
|
-
COMMENT ON COLUMN surveyor.map_layers.minzoom
|
|
95
|
-
IS 'Мінімальний масштаб показу шару';
|
|
96
|
-
|
|
97
|
-
COMMENT ON COLUMN surveyor.map_layers.maxzoom
|
|
98
|
-
IS 'Максимальний масштаб показу шару';
|
|
99
|
-
|
|
100
|
-
COMMENT ON COLUMN surveyor.map_layers.opacity
|
|
101
|
-
IS 'Прозорість шару за замовчуванням, 0-1';
|
|
102
|
-
|
|
103
|
-
COMMENT ON COLUMN surveyor.map_layers.style
|
|
104
|
-
IS 'Стиль відображення векторного шару (кольори та товщина заливки й лінії)';
|
|
105
|
-
|
|
106
|
-
COMMENT ON COLUMN surveyor.map_layers.legend
|
|
107
|
-
IS 'Міні-легенда рядка шару: колір, стиль або порожньо';
|
|
108
|
-
|
|
109
|
-
COMMENT ON COLUMN surveyor.map_layers.preview
|
|
110
|
-
IS 'URL мініатюри-прев''ю базового шару; якщо порожньо, береться тайл з tiles';
|
|
111
|
-
|
|
112
|
-
COMMENT ON COLUMN surveyor.map_layers.components
|
|
113
|
-
IS 'Компоненти, де доступний шар: map - карта, application-form - форма окреслення геометрії заявки, application-card - картка заявки';
|
|
114
|
-
|
|
115
|
-
COMMENT ON COLUMN surveyor.map_layers.sort_order
|
|
116
|
-
IS 'Порядок у групі; менше значення - вище у списку і поверх на карті';
|
|
117
|
-
|
|
118
|
-
COMMENT ON COLUMN surveyor.map_layers.is_default
|
|
119
|
-
IS 'Для додаткового шару - увімкнений за замовчуванням, для базового - активна підложка за замовчуванням';
|
|
120
|
-
|
|
121
|
-
COMMENT ON COLUMN surveyor.map_layers.has_filters
|
|
122
|
-
IS 'Чи показувати швидкі та розширені фільтри шару';
|
|
123
|
-
|
|
124
|
-
COMMENT ON COLUMN surveyor.map_layers.enabled
|
|
125
|
-
IS 'Шар доступний у панелі';
|
|
126
|
-
|
|
127
|
-
INSERT INTO surveyor.map_layers
|
|
128
|
-
(code, name, layer_group, layer_type, tiles, scheme, source_layer, attribution,
|
|
129
|
-
minzoom, maxzoom, opacity, components, sort_order, is_default, has_filters)
|
|
130
|
-
VALUES
|
|
131
|
-
('osm', 'OpenStreetMap', 'base', 'raster',
|
|
132
|
-
ARRAY['https://tile.openstreetmap.org.ua/styles/osm-bright/{z}/{x}/{y}.png'],
|
|
133
|
-
'xyz', NULL, '© OpenStreetMap Ukraine', 0, 18, 1,
|
|
134
|
-
ARRAY['map', 'application-form', 'application-card'], 10, true, false),
|
|
135
|
-
('visicom', 'Visicom', 'base', 'raster',
|
|
136
|
-
ARRAY['https://tms3.visicom.ua/2.0.0/planet3,ngca/base/{z}/{x}/{y}.png'],
|
|
137
|
-
'tms', NULL, '© Visicom', NULL, 19, 1,
|
|
138
|
-
ARRAY['map', 'application-form', 'application-card'], 20, false, false),
|
|
139
|
-
('google', 'Google Maps', 'base', 'raster',
|
|
140
|
-
ARRAY['https://mt1.google.com/vt/lyrs=m&x={x}&y={y}&z={z}'],
|
|
141
|
-
'xyz', NULL, '© Google', NULL, 20, 1,
|
|
142
|
-
ARRAY['map', 'application-form', 'application-card'], 30, false, false),
|
|
143
|
-
('ortho', 'Ортофото', 'base', 'raster',
|
|
144
|
-
ARRAY['https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}'],
|
|
145
|
-
'xyz', NULL, '© Esri', NULL, 19, 1,
|
|
146
|
-
ARRAY['map', 'application-form', 'application-card'], 40, false, false),
|
|
147
|
-
('applications', 'Звернення на видачу вихідних даних', 'overlay', 'applications',
|
|
148
|
-
ARRAY['/api/surveyor/vtile/applications/{z}/{x}/{y}'],
|
|
149
|
-
'xyz', 'applications', NULL, NULL, NULL, 1,
|
|
150
|
-
ARRAY['map'], 0, true, true),
|
|
151
|
-
('red-lines', 'Червоні лінії', 'overlay', 'raster',
|
|
152
|
-
'{}', 'xyz', NULL, NULL, NULL, NULL, 0.9,
|
|
153
|
-
ARRAY['map', 'application-form', 'application-card'], 10, false, false),
|
|
154
|
-
('genplan', 'Генплан', 'overlay', 'raster',
|
|
155
|
-
'{}', 'xyz', NULL, NULL, NULL, NULL, 0.75,
|
|
156
|
-
ARRAY['map', 'application-form', 'application-card'], 20, false, false);
|
|
1
|
+
-- Налаштування шарів панелі «Шари» на карті Кабінету геодезиста.
|
|
2
|
+
-- Базові шари (підложка) вибираються по одному, додаткові накладаються поверх у порядку sort_order.
|
|
3
|
+
-- fcore-migrate applies this file as one transaction.
|
|
4
|
+
|
|
5
|
+
CREATE TYPE surveyor.map_layer_group_enum AS ENUM (
|
|
6
|
+
'base', -- базовий шар (підложка)
|
|
7
|
+
'overlay' -- додатковий шар
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
CREATE TYPE surveyor.map_layer_type_enum AS ENUM (
|
|
11
|
+
'raster', -- растрові тайли XYZ/TMS
|
|
12
|
+
'vector', -- векторні тайли MVT
|
|
13
|
+
'applications' -- шар заявок застосунку
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
CREATE TABLE surveyor.map_layers (
|
|
17
|
+
layer_id text primary key DEFAULT public.next_id(),
|
|
18
|
+
code text not null,
|
|
19
|
+
name text not null,
|
|
20
|
+
layer_group surveyor.map_layer_group_enum not null,
|
|
21
|
+
layer_type surveyor.map_layer_type_enum not null DEFAULT 'raster',
|
|
22
|
+
tiles text[] not null DEFAULT '{}',
|
|
23
|
+
scheme text not null DEFAULT 'xyz',
|
|
24
|
+
source_layer text,
|
|
25
|
+
attribution text,
|
|
26
|
+
minzoom integer,
|
|
27
|
+
maxzoom integer,
|
|
28
|
+
opacity numeric(3, 2) not null DEFAULT 1,
|
|
29
|
+
style jsonb,
|
|
30
|
+
legend jsonb,
|
|
31
|
+
preview text,
|
|
32
|
+
components text[] not null DEFAULT '{}',
|
|
33
|
+
sort_order integer not null DEFAULT 0,
|
|
34
|
+
is_default boolean not null DEFAULT false,
|
|
35
|
+
has_filters boolean not null DEFAULT false,
|
|
36
|
+
enabled boolean not null DEFAULT true,
|
|
37
|
+
created_by text,
|
|
38
|
+
created_at timestamp without time zone DEFAULT now() not null,
|
|
39
|
+
updated_by text,
|
|
40
|
+
updated_at timestamp without time zone DEFAULT now() not null,
|
|
41
|
+
CONSTRAINT map_layers_code_key UNIQUE (code),
|
|
42
|
+
CONSTRAINT map_layers_scheme_check CHECK (scheme IN ('xyz', 'tms')),
|
|
43
|
+
CONSTRAINT map_layers_components_check CHECK (
|
|
44
|
+
components <@ ARRAY['map', 'application-form', 'application-card']::text[]
|
|
45
|
+
),
|
|
46
|
+
CONSTRAINT map_layers_opacity_check CHECK (opacity BETWEEN 0 AND 1),
|
|
47
|
+
CONSTRAINT map_layers_zoom_check CHECK (
|
|
48
|
+
(minzoom IS NULL OR minzoom BETWEEN 0 AND 24)
|
|
49
|
+
AND (maxzoom IS NULL OR maxzoom BETWEEN 0 AND 24)
|
|
50
|
+
AND (minzoom IS NULL OR maxzoom IS NULL OR minzoom <= maxzoom)
|
|
51
|
+
),
|
|
52
|
+
CONSTRAINT map_layers_base_type_check CHECK (layer_group <> 'base' OR layer_type = 'raster'),
|
|
53
|
+
CONSTRAINT map_layers_vector_source_check CHECK (layer_type <> 'vector' OR source_layer IS NOT NULL)
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
-- Активна підложка за замовчуванням може бути лише одна.
|
|
57
|
+
CREATE UNIQUE INDEX map_layers_default_base_idx
|
|
58
|
+
ON surveyor.map_layers (layer_group)
|
|
59
|
+
WHERE layer_group = 'base' AND is_default AND enabled;
|
|
60
|
+
|
|
61
|
+
CREATE INDEX map_layers_group_order_idx
|
|
62
|
+
ON surveyor.map_layers (layer_group, sort_order);
|
|
63
|
+
|
|
64
|
+
CREATE INDEX map_layers_components_idx
|
|
65
|
+
ON surveyor.map_layers USING gin (components);
|
|
66
|
+
|
|
67
|
+
COMMENT ON TABLE surveyor.map_layers
|
|
68
|
+
IS 'Налаштування шарів карти';
|
|
69
|
+
|
|
70
|
+
COMMENT ON COLUMN surveyor.map_layers.code
|
|
71
|
+
IS 'Стабільний код шару для frontend (osm, applications, red-lines)';
|
|
72
|
+
|
|
73
|
+
COMMENT ON COLUMN surveyor.map_layers.name
|
|
74
|
+
IS 'Назва шару в панелі';
|
|
75
|
+
|
|
76
|
+
COMMENT ON COLUMN surveyor.map_layers.layer_group
|
|
77
|
+
IS 'Група: base - базовий шар (підложка), overlay - додатковий шар';
|
|
78
|
+
|
|
79
|
+
COMMENT ON COLUMN surveyor.map_layers.layer_type
|
|
80
|
+
IS 'Тип джерела: raster - растрові тайли, vector - векторні тайли, applications - шар заявок';
|
|
81
|
+
|
|
82
|
+
COMMENT ON COLUMN surveyor.map_layers.tiles
|
|
83
|
+
IS 'Шаблони URL тайлів з {z}/{x}/{y}';
|
|
84
|
+
|
|
85
|
+
COMMENT ON COLUMN surveyor.map_layers.scheme
|
|
86
|
+
IS 'Схема нумерації тайлів: xyz або tms';
|
|
87
|
+
|
|
88
|
+
COMMENT ON COLUMN surveyor.map_layers.source_layer
|
|
89
|
+
IS 'Назва шару у векторних тайлах (source-layer)';
|
|
90
|
+
|
|
91
|
+
COMMENT ON COLUMN surveyor.map_layers.attribution
|
|
92
|
+
IS 'Атрибуція провайдера, що показується в куті карти';
|
|
93
|
+
|
|
94
|
+
COMMENT ON COLUMN surveyor.map_layers.minzoom
|
|
95
|
+
IS 'Мінімальний масштаб показу шару';
|
|
96
|
+
|
|
97
|
+
COMMENT ON COLUMN surveyor.map_layers.maxzoom
|
|
98
|
+
IS 'Максимальний масштаб показу шару';
|
|
99
|
+
|
|
100
|
+
COMMENT ON COLUMN surveyor.map_layers.opacity
|
|
101
|
+
IS 'Прозорість шару за замовчуванням, 0-1';
|
|
102
|
+
|
|
103
|
+
COMMENT ON COLUMN surveyor.map_layers.style
|
|
104
|
+
IS 'Стиль відображення векторного шару (кольори та товщина заливки й лінії)';
|
|
105
|
+
|
|
106
|
+
COMMENT ON COLUMN surveyor.map_layers.legend
|
|
107
|
+
IS 'Міні-легенда рядка шару: колір, стиль або порожньо';
|
|
108
|
+
|
|
109
|
+
COMMENT ON COLUMN surveyor.map_layers.preview
|
|
110
|
+
IS 'URL мініатюри-прев''ю базового шару; якщо порожньо, береться тайл з tiles';
|
|
111
|
+
|
|
112
|
+
COMMENT ON COLUMN surveyor.map_layers.components
|
|
113
|
+
IS 'Компоненти, де доступний шар: map - карта, application-form - форма окреслення геометрії заявки, application-card - картка заявки';
|
|
114
|
+
|
|
115
|
+
COMMENT ON COLUMN surveyor.map_layers.sort_order
|
|
116
|
+
IS 'Порядок у групі; менше значення - вище у списку і поверх на карті';
|
|
117
|
+
|
|
118
|
+
COMMENT ON COLUMN surveyor.map_layers.is_default
|
|
119
|
+
IS 'Для додаткового шару - увімкнений за замовчуванням, для базового - активна підложка за замовчуванням';
|
|
120
|
+
|
|
121
|
+
COMMENT ON COLUMN surveyor.map_layers.has_filters
|
|
122
|
+
IS 'Чи показувати швидкі та розширені фільтри шару';
|
|
123
|
+
|
|
124
|
+
COMMENT ON COLUMN surveyor.map_layers.enabled
|
|
125
|
+
IS 'Шар доступний у панелі';
|
|
126
|
+
|
|
127
|
+
INSERT INTO surveyor.map_layers
|
|
128
|
+
(code, name, layer_group, layer_type, tiles, scheme, source_layer, attribution,
|
|
129
|
+
minzoom, maxzoom, opacity, components, sort_order, is_default, has_filters)
|
|
130
|
+
VALUES
|
|
131
|
+
('osm', 'OpenStreetMap', 'base', 'raster',
|
|
132
|
+
ARRAY['https://tile.openstreetmap.org.ua/styles/osm-bright/{z}/{x}/{y}.png'],
|
|
133
|
+
'xyz', NULL, '© OpenStreetMap Ukraine', 0, 18, 1,
|
|
134
|
+
ARRAY['map', 'application-form', 'application-card'], 10, true, false),
|
|
135
|
+
('visicom', 'Visicom', 'base', 'raster',
|
|
136
|
+
ARRAY['https://tms3.visicom.ua/2.0.0/planet3,ngca/base/{z}/{x}/{y}.png'],
|
|
137
|
+
'tms', NULL, '© Visicom', NULL, 19, 1,
|
|
138
|
+
ARRAY['map', 'application-form', 'application-card'], 20, false, false),
|
|
139
|
+
('google', 'Google Maps', 'base', 'raster',
|
|
140
|
+
ARRAY['https://mt1.google.com/vt/lyrs=m&x={x}&y={y}&z={z}'],
|
|
141
|
+
'xyz', NULL, '© Google', NULL, 20, 1,
|
|
142
|
+
ARRAY['map', 'application-form', 'application-card'], 30, false, false),
|
|
143
|
+
('ortho', 'Ортофото', 'base', 'raster',
|
|
144
|
+
ARRAY['https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}'],
|
|
145
|
+
'xyz', NULL, '© Esri', NULL, 19, 1,
|
|
146
|
+
ARRAY['map', 'application-form', 'application-card'], 40, false, false),
|
|
147
|
+
('applications', 'Звернення на видачу вихідних даних', 'overlay', 'applications',
|
|
148
|
+
ARRAY['/api/surveyor/vtile/applications/{z}/{x}/{y}'],
|
|
149
|
+
'xyz', 'applications', NULL, NULL, NULL, 1,
|
|
150
|
+
ARRAY['map'], 0, true, true),
|
|
151
|
+
('red-lines', 'Червоні лінії', 'overlay', 'raster',
|
|
152
|
+
'{}', 'xyz', NULL, NULL, NULL, NULL, 0.9,
|
|
153
|
+
ARRAY['map', 'application-form', 'application-card'], 10, false, false),
|
|
154
|
+
('genplan', 'Генплан', 'overlay', 'raster',
|
|
155
|
+
'{}', 'xyz', NULL, NULL, NULL, NULL, 0.75,
|
|
156
|
+
ARRAY['map', 'application-form', 'application-card'], 20, false, false);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
-- Одноразовий токен відновлення пароля геодезиста ("Забули пароль?").
|
|
2
|
-
-- Зберігається лише SHA-256 хеш токена, як і для токена реєстрації.
|
|
3
|
-
ALTER TABLE surveyor.surveyors
|
|
4
|
-
ADD COLUMN IF NOT EXISTS password_reset_token_hash text,
|
|
5
|
-
ADD COLUMN IF NOT EXISTS password_reset_token_expires_at timestamp with time zone;
|
|
6
|
-
|
|
7
|
-
COMMENT ON COLUMN surveyor.surveyors.password_reset_token_hash
|
|
8
|
-
IS 'SHA-256 хеш одноразового токена відновлення пароля';
|
|
9
|
-
|
|
10
|
-
COMMENT ON COLUMN surveyor.surveyors.password_reset_token_expires_at
|
|
11
|
-
IS 'Час закінчення дії токена відновлення пароля';
|
|
12
|
-
|
|
13
|
-
CREATE UNIQUE INDEX IF NOT EXISTS surveyors_password_reset_token_hash_idx
|
|
14
|
-
ON surveyor.surveyors (password_reset_token_hash)
|
|
15
|
-
WHERE password_reset_token_hash IS NOT NULL;
|
|
1
|
+
-- Одноразовий токен відновлення пароля геодезиста ("Забули пароль?").
|
|
2
|
+
-- Зберігається лише SHA-256 хеш токена, як і для токена реєстрації.
|
|
3
|
+
ALTER TABLE surveyor.surveyors
|
|
4
|
+
ADD COLUMN IF NOT EXISTS password_reset_token_hash text,
|
|
5
|
+
ADD COLUMN IF NOT EXISTS password_reset_token_expires_at timestamp with time zone;
|
|
6
|
+
|
|
7
|
+
COMMENT ON COLUMN surveyor.surveyors.password_reset_token_hash
|
|
8
|
+
IS 'SHA-256 хеш одноразового токена відновлення пароля';
|
|
9
|
+
|
|
10
|
+
COMMENT ON COLUMN surveyor.surveyors.password_reset_token_expires_at
|
|
11
|
+
IS 'Час закінчення дії токена відновлення пароля';
|
|
12
|
+
|
|
13
|
+
CREATE UNIQUE INDEX IF NOT EXISTS surveyors_password_reset_token_hash_idx
|
|
14
|
+
ON surveyor.surveyors (password_reset_token_hash)
|
|
15
|
+
WHERE password_reset_token_hash IS NOT NULL;
|