Fix coredata SQL queries using new FKs columms
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* @generated SignedSource<<c063f17d5bc1815246a5e498700bfec9>>
|
* @generated SignedSource<<13d2dd64b5963f27b35077c80106abfb>>
|
||||||
* @lightSyntaxTransform
|
* @lightSyntaxTransform
|
||||||
* @nogrep
|
* @nogrep
|
||||||
*/
|
*/
|
||||||
@@ -269,7 +269,7 @@ return {
|
|||||||
{
|
{
|
||||||
"alias": null,
|
"alias": null,
|
||||||
"args": null,
|
"args": null,
|
||||||
"concreteType": "People",
|
"concreteType": "Profile",
|
||||||
"kind": "LinkedField",
|
"kind": "LinkedField",
|
||||||
"name": "owner",
|
"name": "owner",
|
||||||
"plural": false,
|
"plural": false,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* @generated SignedSource<<764aed3f20dfa64736dc42751e17de65>>
|
* @generated SignedSource<<a3db1c53e5570210d73e3fdc1b930767>>
|
||||||
* @lightSyntaxTransform
|
* @lightSyntaxTransform
|
||||||
* @nogrep
|
* @nogrep
|
||||||
*/
|
*/
|
||||||
@@ -205,7 +205,7 @@ return {
|
|||||||
{
|
{
|
||||||
"alias": null,
|
"alias": null,
|
||||||
"args": null,
|
"args": null,
|
||||||
"concreteType": "People",
|
"concreteType": "Profile",
|
||||||
"kind": "LinkedField",
|
"kind": "LinkedField",
|
||||||
"name": "owner",
|
"name": "owner",
|
||||||
"plural": false,
|
"plural": false,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* @generated SignedSource<<034a68d54259fb22cf2d563699ad4257>>
|
* @generated SignedSource<<5e92ff2e3743b8ef52f11fd34b76e2d5>>
|
||||||
* @lightSyntaxTransform
|
* @lightSyntaxTransform
|
||||||
* @nogrep
|
* @nogrep
|
||||||
*/
|
*/
|
||||||
@@ -189,7 +189,7 @@ return {
|
|||||||
{
|
{
|
||||||
"alias": null,
|
"alias": null,
|
||||||
"args": null,
|
"args": null,
|
||||||
"concreteType": "People",
|
"concreteType": "Profile",
|
||||||
"kind": "LinkedField",
|
"kind": "LinkedField",
|
||||||
"name": "owner",
|
"name": "owner",
|
||||||
"plural": false,
|
"plural": false,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* @generated SignedSource<<eaadcea075dca4e0fbc3b2e12b9a1579>>
|
* @generated SignedSource<<617f61c937eec7639e3c1c25884f1911>>
|
||||||
* @lightSyntaxTransform
|
* @lightSyntaxTransform
|
||||||
* @nogrep
|
* @nogrep
|
||||||
*/
|
*/
|
||||||
@@ -88,7 +88,7 @@ v4 = {
|
|||||||
{
|
{
|
||||||
"alias": null,
|
"alias": null,
|
||||||
"args": null,
|
"args": null,
|
||||||
"concreteType": "People",
|
"concreteType": "Profile",
|
||||||
"kind": "LinkedField",
|
"kind": "LinkedField",
|
||||||
"name": "signedBy",
|
"name": "signedBy",
|
||||||
"plural": false,
|
"plural": false,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* @generated SignedSource<<df4a916b5ff0623fb9be5ac5b4651fac>>
|
* @generated SignedSource<<dbed368b10910bc2b0b62eb50f9f7e36>>
|
||||||
* @lightSyntaxTransform
|
* @lightSyntaxTransform
|
||||||
* @nogrep
|
* @nogrep
|
||||||
*/
|
*/
|
||||||
@@ -314,7 +314,7 @@ return {
|
|||||||
{
|
{
|
||||||
"alias": null,
|
"alias": null,
|
||||||
"args": null,
|
"args": null,
|
||||||
"concreteType": "People",
|
"concreteType": "Profile",
|
||||||
"kind": "LinkedField",
|
"kind": "LinkedField",
|
||||||
"name": "owner",
|
"name": "owner",
|
||||||
"plural": false,
|
"plural": false,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* @generated SignedSource<<07e722a4da8a25668cd0e49cc07598f9>>
|
* @generated SignedSource<<762a47bad27e4d68dbc150a47c41c362>>
|
||||||
* @lightSyntaxTransform
|
* @lightSyntaxTransform
|
||||||
* @nogrep
|
* @nogrep
|
||||||
*/
|
*/
|
||||||
@@ -311,7 +311,7 @@ return {
|
|||||||
{
|
{
|
||||||
"alias": null,
|
"alias": null,
|
||||||
"args": null,
|
"args": null,
|
||||||
"concreteType": "People",
|
"concreteType": "Profile",
|
||||||
"kind": "LinkedField",
|
"kind": "LinkedField",
|
||||||
"name": "assignedTo",
|
"name": "assignedTo",
|
||||||
"plural": false,
|
"plural": false,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* @generated SignedSource<<7ac900885cf356d87efb7496bd37bbad>>
|
* @generated SignedSource<<e5b53abe84edc706307a4269e4500630>>
|
||||||
* @lightSyntaxTransform
|
* @lightSyntaxTransform
|
||||||
* @nogrep
|
* @nogrep
|
||||||
*/
|
*/
|
||||||
@@ -198,7 +198,7 @@ return {
|
|||||||
{
|
{
|
||||||
"alias": null,
|
"alias": null,
|
||||||
"args": null,
|
"args": null,
|
||||||
"concreteType": "People",
|
"concreteType": "Profile",
|
||||||
"kind": "LinkedField",
|
"kind": "LinkedField",
|
||||||
"name": "attendees",
|
"name": "attendees",
|
||||||
"plural": true,
|
"plural": true,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* @generated SignedSource<<75a92b14ee7a1d73c9dde3d9d8d76de6>>
|
* @generated SignedSource<<f5f337b81bd6fbfd19530174d8928599>>
|
||||||
* @lightSyntaxTransform
|
* @lightSyntaxTransform
|
||||||
* @nogrep
|
* @nogrep
|
||||||
*/
|
*/
|
||||||
@@ -147,7 +147,7 @@ return {
|
|||||||
{
|
{
|
||||||
"alias": null,
|
"alias": null,
|
||||||
"args": null,
|
"args": null,
|
||||||
"concreteType": "People",
|
"concreteType": "Profile",
|
||||||
"kind": "LinkedField",
|
"kind": "LinkedField",
|
||||||
"name": "attendees",
|
"name": "attendees",
|
||||||
"plural": true,
|
"plural": true,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* @generated SignedSource<<ddc684800753eec2ae70df06e304dbde>>
|
* @generated SignedSource<<95c0d606637cea849328f351b4d8b72b>>
|
||||||
* @lightSyntaxTransform
|
* @lightSyntaxTransform
|
||||||
* @nogrep
|
* @nogrep
|
||||||
*/
|
*/
|
||||||
@@ -255,7 +255,7 @@ v21 = {
|
|||||||
v22 = {
|
v22 = {
|
||||||
"alias": null,
|
"alias": null,
|
||||||
"args": null,
|
"args": null,
|
||||||
"concreteType": "People",
|
"concreteType": "Profile",
|
||||||
"kind": "LinkedField",
|
"kind": "LinkedField",
|
||||||
"name": "dataProtectionOfficer",
|
"name": "dataProtectionOfficer",
|
||||||
"plural": false,
|
"plural": false,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* @generated SignedSource<<d646f8c938435fdb9e65ff696121ff3c>>
|
* @generated SignedSource<<b1b5929e697d5d74a60fb0d440e164d9>>
|
||||||
* @lightSyntaxTransform
|
* @lightSyntaxTransform
|
||||||
* @nogrep
|
* @nogrep
|
||||||
*/
|
*/
|
||||||
@@ -191,7 +191,7 @@ return {
|
|||||||
{
|
{
|
||||||
"alias": null,
|
"alias": null,
|
||||||
"args": null,
|
"args": null,
|
||||||
"concreteType": "People",
|
"concreteType": "Profile",
|
||||||
"kind": "LinkedField",
|
"kind": "LinkedField",
|
||||||
"name": "assignedTo",
|
"name": "assignedTo",
|
||||||
"plural": false,
|
"plural": false,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* @generated SignedSource<<63f008ba2b41fba49ba0c3145874aa72>>
|
* @generated SignedSource<<ff50473cdcfc65676ac6e50da0ecd9f7>>
|
||||||
* @lightSyntaxTransform
|
* @lightSyntaxTransform
|
||||||
* @nogrep
|
* @nogrep
|
||||||
*/
|
*/
|
||||||
@@ -22,7 +22,6 @@ export type SidebarFragment$data = {
|
|||||||
readonly canListMeetings: boolean;
|
readonly canListMeetings: boolean;
|
||||||
readonly canListNonconformities: boolean;
|
readonly canListNonconformities: boolean;
|
||||||
readonly canListObligations: boolean;
|
readonly canListObligations: boolean;
|
||||||
readonly canListPeople: boolean;
|
|
||||||
readonly canListProcessingActivities: boolean;
|
readonly canListProcessingActivities: boolean;
|
||||||
readonly canListRightsRequests: boolean;
|
readonly canListRightsRequests: boolean;
|
||||||
readonly canListRisks: boolean;
|
readonly canListRisks: boolean;
|
||||||
@@ -109,19 +108,6 @@ const node: ReaderFragment = {
|
|||||||
"name": "permission",
|
"name": "permission",
|
||||||
"storageKey": "permission(action:\"core:framework:list\")"
|
"storageKey": "permission(action:\"core:framework:list\")"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"alias": "canListPeople",
|
|
||||||
"args": [
|
|
||||||
{
|
|
||||||
"kind": "Literal",
|
|
||||||
"name": "action",
|
|
||||||
"value": "core:people:list"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"kind": "ScalarField",
|
|
||||||
"name": "permission",
|
|
||||||
"storageKey": "permission(action:\"core:people:list\")"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"alias": "canListVendors",
|
"alias": "canListVendors",
|
||||||
"args": [
|
"args": [
|
||||||
@@ -309,6 +295,6 @@ const node: ReaderFragment = {
|
|||||||
"abstractKey": null
|
"abstractKey": null
|
||||||
};
|
};
|
||||||
|
|
||||||
(node as any).hash = "6d640139997b2c7561699c1efb668650";
|
(node as any).hash = "b5d26b301116eb710832a55c425ed168";
|
||||||
|
|
||||||
export default node;
|
export default node;
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ SELECT
|
|||||||
source_id,
|
source_id,
|
||||||
name,
|
name,
|
||||||
organization_id,
|
organization_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
amount,
|
amount,
|
||||||
asset_type,
|
asset_type,
|
||||||
data_types_stored,
|
data_types_stored,
|
||||||
@@ -134,7 +134,7 @@ SELECT
|
|||||||
source_id,
|
source_id,
|
||||||
name,
|
name,
|
||||||
organization_id,
|
organization_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
amount,
|
amount,
|
||||||
asset_type,
|
asset_type,
|
||||||
data_types_stored,
|
data_types_stored,
|
||||||
@@ -144,13 +144,13 @@ FROM
|
|||||||
assets
|
assets
|
||||||
WHERE
|
WHERE
|
||||||
%s
|
%s
|
||||||
AND owner_id = @owner_id
|
AND owner_profile_id = @owner_profile_id
|
||||||
LIMIT 1;
|
LIMIT 1;
|
||||||
`
|
`
|
||||||
|
|
||||||
q = fmt.Sprintf(q, scope.SQLFragment())
|
q = fmt.Sprintf(q, scope.SQLFragment())
|
||||||
|
|
||||||
args := pgx.StrictNamedArgs{"owner_id": a.OwnerID}
|
args := pgx.StrictNamedArgs{"owner_profile_id": a.OwnerID}
|
||||||
maps.Copy(args, scope.SQLArguments())
|
maps.Copy(args, scope.SQLArguments())
|
||||||
|
|
||||||
rows, err := conn.Query(ctx, q, args)
|
rows, err := conn.Query(ctx, q, args)
|
||||||
@@ -221,7 +221,7 @@ SELECT
|
|||||||
source_id,
|
source_id,
|
||||||
name,
|
name,
|
||||||
organization_id,
|
organization_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
amount,
|
amount,
|
||||||
asset_type,
|
asset_type,
|
||||||
data_types_stored,
|
data_types_stored,
|
||||||
@@ -269,7 +269,7 @@ INSERT INTO assets (
|
|||||||
tenant_id,
|
tenant_id,
|
||||||
name,
|
name,
|
||||||
organization_id,
|
organization_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
amount,
|
amount,
|
||||||
asset_type,
|
asset_type,
|
||||||
data_types_stored,
|
data_types_stored,
|
||||||
@@ -280,7 +280,7 @@ INSERT INTO assets (
|
|||||||
@tenant_id,
|
@tenant_id,
|
||||||
@name,
|
@name,
|
||||||
@organization_id,
|
@organization_id,
|
||||||
@owner_id,
|
@owner_profile_id,
|
||||||
@amount,
|
@amount,
|
||||||
@asset_type,
|
@asset_type,
|
||||||
@data_types_stored,
|
@data_types_stored,
|
||||||
@@ -294,7 +294,7 @@ INSERT INTO assets (
|
|||||||
"tenant_id": scope.GetTenantID(),
|
"tenant_id": scope.GetTenantID(),
|
||||||
"organization_id": a.OrganizationID,
|
"organization_id": a.OrganizationID,
|
||||||
"name": a.Name,
|
"name": a.Name,
|
||||||
"owner_id": a.OwnerID,
|
"owner_profile_id": a.OwnerID,
|
||||||
"amount": a.Amount,
|
"amount": a.Amount,
|
||||||
"asset_type": a.AssetType,
|
"asset_type": a.AssetType,
|
||||||
"data_types_stored": a.DataTypesStored,
|
"data_types_stored": a.DataTypesStored,
|
||||||
@@ -319,7 +319,7 @@ func (a *Asset) Update(
|
|||||||
UPDATE assets
|
UPDATE assets
|
||||||
SET
|
SET
|
||||||
name = @name,
|
name = @name,
|
||||||
owner_id = @owner_id,
|
owner_profile_id = @owner_profile_id,
|
||||||
amount = @amount,
|
amount = @amount,
|
||||||
asset_type = @asset_type,
|
asset_type = @asset_type,
|
||||||
data_types_stored = @data_types_stored,
|
data_types_stored = @data_types_stored,
|
||||||
@@ -334,7 +334,7 @@ RETURNING
|
|||||||
source_id,
|
source_id,
|
||||||
name,
|
name,
|
||||||
organization_id,
|
organization_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
amount,
|
amount,
|
||||||
asset_type,
|
asset_type,
|
||||||
data_types_stored,
|
data_types_stored,
|
||||||
@@ -347,7 +347,7 @@ RETURNING
|
|||||||
args := pgx.StrictNamedArgs{
|
args := pgx.StrictNamedArgs{
|
||||||
"id": a.ID,
|
"id": a.ID,
|
||||||
"name": a.Name,
|
"name": a.Name,
|
||||||
"owner_id": a.OwnerID,
|
"owner_profile_id": a.OwnerID,
|
||||||
"amount": a.Amount,
|
"amount": a.Amount,
|
||||||
"asset_type": a.AssetType,
|
"asset_type": a.AssetType,
|
||||||
"data_types_stored": a.DataTypesStored,
|
"data_types_stored": a.DataTypesStored,
|
||||||
@@ -429,7 +429,7 @@ INSERT INTO assets (
|
|||||||
source_id,
|
source_id,
|
||||||
name,
|
name,
|
||||||
organization_id,
|
organization_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
amount,
|
amount,
|
||||||
asset_type,
|
asset_type,
|
||||||
data_types_stored,
|
data_types_stored,
|
||||||
@@ -443,7 +443,7 @@ SELECT
|
|||||||
a.id,
|
a.id,
|
||||||
a.name,
|
a.name,
|
||||||
a.organization_id,
|
a.organization_id,
|
||||||
a.owner_id,
|
a.owner_profile_id,
|
||||||
a.amount,
|
a.amount,
|
||||||
a.asset_type,
|
a.asset_type,
|
||||||
a.data_types_stored,
|
a.data_types_stored,
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ SELECT
|
|||||||
reference_id,
|
reference_id,
|
||||||
description,
|
description,
|
||||||
source,
|
source,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
target_date,
|
target_date,
|
||||||
status,
|
status,
|
||||||
priority,
|
priority,
|
||||||
@@ -178,7 +178,7 @@ SELECT
|
|||||||
reference_id,
|
reference_id,
|
||||||
description,
|
description,
|
||||||
source,
|
source,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
target_date,
|
target_date,
|
||||||
status,
|
status,
|
||||||
priority,
|
priority,
|
||||||
@@ -230,7 +230,7 @@ INSERT INTO continual_improvements (
|
|||||||
reference_id,
|
reference_id,
|
||||||
description,
|
description,
|
||||||
source,
|
source,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
target_date,
|
target_date,
|
||||||
status,
|
status,
|
||||||
priority,
|
priority,
|
||||||
@@ -243,7 +243,7 @@ INSERT INTO continual_improvements (
|
|||||||
@reference_id,
|
@reference_id,
|
||||||
@description,
|
@description,
|
||||||
@source,
|
@source,
|
||||||
@owner_id,
|
@owner_profile_id,
|
||||||
@target_date,
|
@target_date,
|
||||||
@status,
|
@status,
|
||||||
@priority,
|
@priority,
|
||||||
@@ -259,7 +259,7 @@ INSERT INTO continual_improvements (
|
|||||||
"reference_id": ci.ReferenceID,
|
"reference_id": ci.ReferenceID,
|
||||||
"description": ci.Description,
|
"description": ci.Description,
|
||||||
"source": ci.Source,
|
"source": ci.Source,
|
||||||
"owner_id": ci.OwnerID,
|
"owner_profile_id": ci.OwnerID,
|
||||||
"target_date": ci.TargetDate,
|
"target_date": ci.TargetDate,
|
||||||
"status": ci.Status,
|
"status": ci.Status,
|
||||||
"priority": ci.Priority,
|
"priority": ci.Priority,
|
||||||
@@ -285,7 +285,7 @@ UPDATE continual_improvements SET
|
|||||||
reference_id = @reference_id,
|
reference_id = @reference_id,
|
||||||
description = @description,
|
description = @description,
|
||||||
source = @source,
|
source = @source,
|
||||||
owner_id = @owner_id,
|
owner_profile_id = @owner_profile_id,
|
||||||
target_date = @target_date,
|
target_date = @target_date,
|
||||||
status = @status,
|
status = @status,
|
||||||
priority = @priority,
|
priority = @priority,
|
||||||
@@ -302,7 +302,7 @@ WHERE
|
|||||||
"reference_id": ci.ReferenceID,
|
"reference_id": ci.ReferenceID,
|
||||||
"description": ci.Description,
|
"description": ci.Description,
|
||||||
"source": ci.Source,
|
"source": ci.Source,
|
||||||
"owner_id": ci.OwnerID,
|
"owner_profile_id": ci.OwnerID,
|
||||||
"target_date": ci.TargetDate,
|
"target_date": ci.TargetDate,
|
||||||
"status": ci.Status,
|
"status": ci.Status,
|
||||||
"priority": ci.Priority,
|
"priority": ci.Priority,
|
||||||
@@ -354,7 +354,7 @@ INSERT INTO continual_improvements (
|
|||||||
reference_id,
|
reference_id,
|
||||||
description,
|
description,
|
||||||
source,
|
source,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
target_date,
|
target_date,
|
||||||
status,
|
status,
|
||||||
priority,
|
priority,
|
||||||
@@ -370,7 +370,7 @@ SELECT
|
|||||||
r.reference_id,
|
r.reference_id,
|
||||||
r.description,
|
r.description,
|
||||||
r.source,
|
r.source,
|
||||||
r.owner_id,
|
r.owner_profile_id,
|
||||||
r.target_date,
|
r.target_date,
|
||||||
r.status,
|
r.status,
|
||||||
r.priority,
|
r.priority,
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ func (d *Datum) LoadByID(
|
|||||||
SELECT
|
SELECT
|
||||||
id,
|
id,
|
||||||
name,
|
name,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
organization_id,
|
organization_id,
|
||||||
data_classification,
|
data_classification,
|
||||||
snapshot_id,
|
snapshot_id,
|
||||||
@@ -129,7 +129,7 @@ func (d *Datum) LoadByOwnerID(
|
|||||||
SELECT
|
SELECT
|
||||||
id,
|
id,
|
||||||
name,
|
name,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
organization_id,
|
organization_id,
|
||||||
data_classification,
|
data_classification,
|
||||||
snapshot_id,
|
snapshot_id,
|
||||||
@@ -140,13 +140,13 @@ FROM
|
|||||||
data
|
data
|
||||||
WHERE
|
WHERE
|
||||||
%s
|
%s
|
||||||
AND owner_id = @owner_id
|
AND owner_profile_id = @owner_profile_id
|
||||||
LIMIT 1;
|
LIMIT 1;
|
||||||
`
|
`
|
||||||
|
|
||||||
q = fmt.Sprintf(q, scope.SQLFragment())
|
q = fmt.Sprintf(q, scope.SQLFragment())
|
||||||
|
|
||||||
args := pgx.StrictNamedArgs{"owner_id": d.OwnerID}
|
args := pgx.StrictNamedArgs{"owner_profile_id": d.OwnerID}
|
||||||
maps.Copy(args, scope.SQLArguments())
|
maps.Copy(args, scope.SQLArguments())
|
||||||
|
|
||||||
rows, err := conn.Query(ctx, q, args)
|
rows, err := conn.Query(ctx, q, args)
|
||||||
@@ -212,7 +212,7 @@ SELECT
|
|||||||
id,
|
id,
|
||||||
name,
|
name,
|
||||||
organization_id,
|
organization_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
data_classification,
|
data_classification,
|
||||||
snapshot_id,
|
snapshot_id,
|
||||||
source_id,
|
source_id,
|
||||||
@@ -259,7 +259,7 @@ INSERT INTO data (
|
|||||||
id,
|
id,
|
||||||
tenant_id,
|
tenant_id,
|
||||||
name,
|
name,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
organization_id,
|
organization_id,
|
||||||
data_classification,
|
data_classification,
|
||||||
snapshot_id,
|
snapshot_id,
|
||||||
@@ -270,7 +270,7 @@ INSERT INTO data (
|
|||||||
@id,
|
@id,
|
||||||
@tenant_id,
|
@tenant_id,
|
||||||
@name,
|
@name,
|
||||||
@owner_id,
|
@owner_profile_id,
|
||||||
@organization_id,
|
@organization_id,
|
||||||
@data_classification,
|
@data_classification,
|
||||||
@snapshot_id,
|
@snapshot_id,
|
||||||
@@ -284,7 +284,7 @@ INSERT INTO data (
|
|||||||
"id": d.ID,
|
"id": d.ID,
|
||||||
"tenant_id": scope.GetTenantID(),
|
"tenant_id": scope.GetTenantID(),
|
||||||
"name": d.Name,
|
"name": d.Name,
|
||||||
"owner_id": d.OwnerID,
|
"owner_profile_id": d.OwnerID,
|
||||||
"organization_id": d.OrganizationID,
|
"organization_id": d.OrganizationID,
|
||||||
"data_classification": d.DataClassification,
|
"data_classification": d.DataClassification,
|
||||||
"snapshot_id": d.SnapshotID,
|
"snapshot_id": d.SnapshotID,
|
||||||
@@ -310,7 +310,7 @@ func (d *Datum) Update(
|
|||||||
UPDATE data
|
UPDATE data
|
||||||
SET
|
SET
|
||||||
name = @name,
|
name = @name,
|
||||||
owner_id = @owner_id,
|
owner_profile_id = @owner_profile_id,
|
||||||
data_classification = @data_classification,
|
data_classification = @data_classification,
|
||||||
updated_at = @updated_at
|
updated_at = @updated_at
|
||||||
WHERE
|
WHERE
|
||||||
@@ -320,7 +320,7 @@ WHERE
|
|||||||
RETURNING
|
RETURNING
|
||||||
id,
|
id,
|
||||||
name,
|
name,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
organization_id,
|
organization_id,
|
||||||
data_classification,
|
data_classification,
|
||||||
snapshot_id,
|
snapshot_id,
|
||||||
@@ -334,7 +334,7 @@ RETURNING
|
|||||||
args := pgx.StrictNamedArgs{
|
args := pgx.StrictNamedArgs{
|
||||||
"id": d.ID,
|
"id": d.ID,
|
||||||
"name": d.Name,
|
"name": d.Name,
|
||||||
"owner_id": d.OwnerID,
|
"owner_profile_id": d.OwnerID,
|
||||||
"data_classification": d.DataClassification,
|
"data_classification": d.DataClassification,
|
||||||
"updated_at": d.UpdatedAt,
|
"updated_at": d.UpdatedAt,
|
||||||
}
|
}
|
||||||
@@ -414,7 +414,7 @@ INSERT INTO data (
|
|||||||
source_id,
|
source_id,
|
||||||
name,
|
name,
|
||||||
organization_id,
|
organization_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
data_classification,
|
data_classification,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
@@ -426,7 +426,7 @@ SELECT
|
|||||||
d.id,
|
d.id,
|
||||||
d.name,
|
d.name,
|
||||||
d.organization_id,
|
d.organization_id,
|
||||||
d.owner_id,
|
d.owner_profile_id,
|
||||||
d.data_classification,
|
d.data_classification,
|
||||||
d.created_at,
|
d.created_at,
|
||||||
d.updated_at
|
d.updated_at
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ func (p *Document) LoadByID(
|
|||||||
SELECT
|
SELECT
|
||||||
id,
|
id,
|
||||||
organization_id,
|
organization_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
title,
|
title,
|
||||||
document_type,
|
document_type,
|
||||||
classification,
|
classification,
|
||||||
@@ -135,7 +135,7 @@ func (p *Document) LoadByIDWithFilter(
|
|||||||
SELECT
|
SELECT
|
||||||
id,
|
id,
|
||||||
organization_id,
|
organization_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
title,
|
title,
|
||||||
document_type,
|
document_type,
|
||||||
classification,
|
classification,
|
||||||
@@ -188,7 +188,7 @@ func (p *Documents) LoadByIDs(
|
|||||||
SELECT
|
SELECT
|
||||||
id,
|
id,
|
||||||
organization_id,
|
organization_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
title,
|
title,
|
||||||
document_type,
|
document_type,
|
||||||
classification,
|
classification,
|
||||||
@@ -270,7 +270,7 @@ func (p *Documents) LoadByOrganizationID(
|
|||||||
SELECT
|
SELECT
|
||||||
id,
|
id,
|
||||||
organization_id,
|
organization_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
title,
|
title,
|
||||||
document_type,
|
document_type,
|
||||||
classification,
|
classification,
|
||||||
@@ -321,7 +321,7 @@ func (p *Documents) LoadAllByOrganizationID(
|
|||||||
SELECT
|
SELECT
|
||||||
id,
|
id,
|
||||||
organization_id,
|
organization_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
title,
|
title,
|
||||||
document_type,
|
document_type,
|
||||||
classification,
|
classification,
|
||||||
@@ -371,7 +371,7 @@ INSERT INTO
|
|||||||
tenant_id,
|
tenant_id,
|
||||||
id,
|
id,
|
||||||
organization_id,
|
organization_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
title,
|
title,
|
||||||
document_type,
|
document_type,
|
||||||
classification,
|
classification,
|
||||||
@@ -384,7 +384,7 @@ VALUES (
|
|||||||
@tenant_id,
|
@tenant_id,
|
||||||
@document_id,
|
@document_id,
|
||||||
@organization_id,
|
@organization_id,
|
||||||
@owner_id,
|
@owner_profile_id,
|
||||||
@title,
|
@title,
|
||||||
@document_type,
|
@document_type,
|
||||||
@classification,
|
@classification,
|
||||||
@@ -399,7 +399,7 @@ VALUES (
|
|||||||
"tenant_id": scope.GetTenantID(),
|
"tenant_id": scope.GetTenantID(),
|
||||||
"document_id": p.ID,
|
"document_id": p.ID,
|
||||||
"organization_id": p.OrganizationID,
|
"organization_id": p.OrganizationID,
|
||||||
"owner_id": p.OwnerID,
|
"owner_profile_id": p.OwnerID,
|
||||||
"title": p.Title,
|
"title": p.Title,
|
||||||
"document_type": p.DocumentType,
|
"document_type": p.DocumentType,
|
||||||
"classification": p.Classification,
|
"classification": p.Classification,
|
||||||
@@ -460,7 +460,7 @@ UPDATE
|
|||||||
SET
|
SET
|
||||||
title = @title,
|
title = @title,
|
||||||
current_published_version = @current_published_version,
|
current_published_version = @current_published_version,
|
||||||
owner_id = @owner_id,
|
owner_profile_id = @owner_profile_id,
|
||||||
document_type = @document_type,
|
document_type = @document_type,
|
||||||
classification = @classification,
|
classification = @classification,
|
||||||
trust_center_visibility = @trust_center_visibility,
|
trust_center_visibility = @trust_center_visibility,
|
||||||
@@ -477,7 +477,7 @@ WHERE
|
|||||||
"updated_at": time.Now(),
|
"updated_at": time.Now(),
|
||||||
"title": p.Title,
|
"title": p.Title,
|
||||||
"current_published_version": p.CurrentPublishedVersion,
|
"current_published_version": p.CurrentPublishedVersion,
|
||||||
"owner_id": p.OwnerID,
|
"owner_profile_id": p.OwnerID,
|
||||||
"document_type": p.DocumentType,
|
"document_type": p.DocumentType,
|
||||||
"classification": p.Classification,
|
"classification": p.Classification,
|
||||||
"trust_center_visibility": p.TrustCenterVisibility,
|
"trust_center_visibility": p.TrustCenterVisibility,
|
||||||
@@ -548,7 +548,7 @@ WITH scoped_documents AS (
|
|||||||
SELECT
|
SELECT
|
||||||
scoped_documents.id,
|
scoped_documents.id,
|
||||||
scoped_documents.organization_id,
|
scoped_documents.organization_id,
|
||||||
scoped_documents.owner_id,
|
scoped_documents.owner_profile_id,
|
||||||
scoped_documents.title,
|
scoped_documents.title,
|
||||||
scoped_documents.document_type,
|
scoped_documents.document_type,
|
||||||
scoped_documents.classification,
|
scoped_documents.classification,
|
||||||
@@ -638,7 +638,7 @@ WITH scoped_documents AS (
|
|||||||
SELECT
|
SELECT
|
||||||
scoped_documents.id,
|
scoped_documents.id,
|
||||||
scoped_documents.organization_id,
|
scoped_documents.organization_id,
|
||||||
scoped_documents.owner_id,
|
scoped_documents.owner_profile_id,
|
||||||
scoped_documents.title,
|
scoped_documents.title,
|
||||||
scoped_documents.document_type,
|
scoped_documents.document_type,
|
||||||
scoped_documents.classification,
|
scoped_documents.classification,
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ SELECT
|
|||||||
organization_id,
|
organization_id,
|
||||||
document_id,
|
document_id,
|
||||||
title,
|
title,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
version_number,
|
version_number,
|
||||||
classification,
|
classification,
|
||||||
content,
|
content,
|
||||||
@@ -139,7 +139,7 @@ SELECT
|
|||||||
organization_id,
|
organization_id,
|
||||||
document_id,
|
document_id,
|
||||||
title,
|
title,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
version_number,
|
version_number,
|
||||||
classification,
|
classification,
|
||||||
content,
|
content,
|
||||||
@@ -190,7 +190,7 @@ INSERT INTO document_versions (
|
|||||||
organization_id,
|
organization_id,
|
||||||
document_id,
|
document_id,
|
||||||
title,
|
title,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
version_number,
|
version_number,
|
||||||
classification,
|
classification,
|
||||||
content,
|
content,
|
||||||
@@ -205,7 +205,7 @@ VALUES (
|
|||||||
@organization_id,
|
@organization_id,
|
||||||
@document_id,
|
@document_id,
|
||||||
@title,
|
@title,
|
||||||
@owner_id,
|
@owner_profile_id,
|
||||||
@version_number,
|
@version_number,
|
||||||
@classification,
|
@classification,
|
||||||
@content,
|
@content,
|
||||||
@@ -221,7 +221,7 @@ VALUES (
|
|||||||
"organization_id": dv.OrganizationID,
|
"organization_id": dv.OrganizationID,
|
||||||
"document_id": dv.DocumentID,
|
"document_id": dv.DocumentID,
|
||||||
"title": dv.Title,
|
"title": dv.Title,
|
||||||
"owner_id": dv.OwnerID,
|
"owner_profile_id": dv.OwnerID,
|
||||||
"version_number": dv.VersionNumber,
|
"version_number": dv.VersionNumber,
|
||||||
"classification": dv.Classification,
|
"classification": dv.Classification,
|
||||||
"content": dv.Content,
|
"content": dv.Content,
|
||||||
@@ -260,7 +260,7 @@ SELECT
|
|||||||
organization_id,
|
organization_id,
|
||||||
document_id,
|
document_id,
|
||||||
title,
|
title,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
version_number,
|
version_number,
|
||||||
classification,
|
classification,
|
||||||
content,
|
content,
|
||||||
@@ -313,7 +313,7 @@ SELECT
|
|||||||
organization_id,
|
organization_id,
|
||||||
document_id,
|
document_id,
|
||||||
title,
|
title,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
version_number,
|
version_number,
|
||||||
classification,
|
classification,
|
||||||
content,
|
content,
|
||||||
@@ -364,7 +364,7 @@ SELECT
|
|||||||
organization_id,
|
organization_id,
|
||||||
document_id,
|
document_id,
|
||||||
title,
|
title,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
version_number,
|
version_number,
|
||||||
classification,
|
classification,
|
||||||
content,
|
content,
|
||||||
@@ -413,7 +413,7 @@ func (dv DocumentVersion) Update(
|
|||||||
q := `
|
q := `
|
||||||
UPDATE document_versions SET
|
UPDATE document_versions SET
|
||||||
title = @title,
|
title = @title,
|
||||||
owner_id = @owner_id,
|
owner_profile_id = @owner_profile_id,
|
||||||
changelog = @changelog,
|
changelog = @changelog,
|
||||||
status = @status,
|
status = @status,
|
||||||
content = @content,
|
content = @content,
|
||||||
@@ -429,7 +429,7 @@ WHERE %s
|
|||||||
args := pgx.StrictNamedArgs{
|
args := pgx.StrictNamedArgs{
|
||||||
"document_version_id": dv.ID,
|
"document_version_id": dv.ID,
|
||||||
"title": dv.Title,
|
"title": dv.Title,
|
||||||
"owner_id": dv.OwnerID,
|
"owner_profile_id": dv.OwnerID,
|
||||||
"changelog": dv.Changelog,
|
"changelog": dv.Changelog,
|
||||||
"status": dv.Status,
|
"status": dv.Status,
|
||||||
"content": dv.Content,
|
"content": dv.Content,
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ SELECT
|
|||||||
organization_id,
|
organization_id,
|
||||||
document_version_id,
|
document_version_id,
|
||||||
state,
|
state,
|
||||||
signed_by,
|
signed_by_profile_id,
|
||||||
signed_at,
|
signed_at,
|
||||||
requested_at,
|
requested_at,
|
||||||
created_at,
|
created_at,
|
||||||
@@ -101,7 +101,7 @@ FROM
|
|||||||
WHERE
|
WHERE
|
||||||
%s
|
%s
|
||||||
AND document_version_id = @document_version_id
|
AND document_version_id = @document_version_id
|
||||||
AND signed_by = @signatory
|
AND signed_by_profile_id = @signatory
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
`
|
`
|
||||||
|
|
||||||
@@ -137,7 +137,7 @@ SELECT
|
|||||||
organization_id,
|
organization_id,
|
||||||
document_version_id,
|
document_version_id,
|
||||||
state,
|
state,
|
||||||
signed_by,
|
signed_by_profile_id,
|
||||||
signed_at,
|
signed_at,
|
||||||
requested_at,
|
requested_at,
|
||||||
created_at,
|
created_at,
|
||||||
@@ -181,7 +181,7 @@ INSERT INTO document_version_signatures (
|
|||||||
organization_id,
|
organization_id,
|
||||||
document_version_id,
|
document_version_id,
|
||||||
state,
|
state,
|
||||||
signed_by,
|
signed_by_profile_id,
|
||||||
signed_at,
|
signed_at,
|
||||||
requested_at,
|
requested_at,
|
||||||
created_at,
|
created_at,
|
||||||
@@ -192,7 +192,7 @@ INSERT INTO document_version_signatures (
|
|||||||
@organization_id,
|
@organization_id,
|
||||||
@document_version_id,
|
@document_version_id,
|
||||||
@state,
|
@state,
|
||||||
@signed_by,
|
@signed_by_profile_id,
|
||||||
@signed_at,
|
@signed_at,
|
||||||
@requested_at,
|
@requested_at,
|
||||||
@created_at,
|
@created_at,
|
||||||
@@ -206,7 +206,7 @@ INSERT INTO document_version_signatures (
|
|||||||
"organization_id": pvs.OrganizationID,
|
"organization_id": pvs.OrganizationID,
|
||||||
"document_version_id": pvs.DocumentVersionID,
|
"document_version_id": pvs.DocumentVersionID,
|
||||||
"state": pvs.State,
|
"state": pvs.State,
|
||||||
"signed_by": pvs.SignedBy,
|
"signed_by_profile_id": pvs.SignedBy,
|
||||||
"signed_at": pvs.SignedAt,
|
"signed_at": pvs.SignedAt,
|
||||||
"requested_at": pvs.RequestedAt,
|
"requested_at": pvs.RequestedAt,
|
||||||
"created_at": pvs.CreatedAt,
|
"created_at": pvs.CreatedAt,
|
||||||
@@ -241,7 +241,7 @@ SELECT
|
|||||||
organization_id,
|
organization_id,
|
||||||
document_version_id,
|
document_version_id,
|
||||||
state,
|
state,
|
||||||
signed_by,
|
signed_by_profile_id,
|
||||||
signed_at,
|
signed_at,
|
||||||
requested_at,
|
requested_at,
|
||||||
created_at,
|
created_at,
|
||||||
@@ -286,7 +286,7 @@ func (pvs *DocumentVersionSignature) Update(
|
|||||||
UPDATE document_version_signatures
|
UPDATE document_version_signatures
|
||||||
SET
|
SET
|
||||||
state = @state,
|
state = @state,
|
||||||
signed_by = @signed_by,
|
signed_by_profile_id = @signed_by_profile_id,
|
||||||
signed_at = @signed_at,
|
signed_at = @signed_at,
|
||||||
updated_at = @updated_at
|
updated_at = @updated_at
|
||||||
WHERE
|
WHERE
|
||||||
@@ -299,7 +299,7 @@ WHERE
|
|||||||
args := pgx.StrictNamedArgs{
|
args := pgx.StrictNamedArgs{
|
||||||
"id": pvs.ID,
|
"id": pvs.ID,
|
||||||
"state": pvs.State,
|
"state": pvs.State,
|
||||||
"signed_by": pvs.SignedBy,
|
"signed_by_profile_id": pvs.SignedBy,
|
||||||
"signed_at": pvs.SignedAt,
|
"signed_at": pvs.SignedAt,
|
||||||
"updated_at": pvs.UpdatedAt,
|
"updated_at": pvs.UpdatedAt,
|
||||||
}
|
}
|
||||||
@@ -355,7 +355,7 @@ WITH sigs AS (
|
|||||||
dvs.tenant_id,
|
dvs.tenant_id,
|
||||||
dvs.document_version_id,
|
dvs.document_version_id,
|
||||||
dvs.state,
|
dvs.state,
|
||||||
dvs.signed_by,
|
dvs.signed_by_profile_id,
|
||||||
dvs.signed_at,
|
dvs.signed_at,
|
||||||
dvs.requested_at,
|
dvs.requested_at,
|
||||||
dvs.created_at,
|
dvs.created_at,
|
||||||
@@ -364,7 +364,7 @@ WITH sigs AS (
|
|||||||
FROM
|
FROM
|
||||||
document_version_signatures dvs
|
document_version_signatures dvs
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
peoples p ON dvs.signed_by = p.id
|
peoples p ON dvs.signed_by_profile_id = p.id
|
||||||
WHERE
|
WHERE
|
||||||
dvs.document_version_id = @document_version_id
|
dvs.document_version_id = @document_version_id
|
||||||
ORDER BY
|
ORDER BY
|
||||||
@@ -376,7 +376,7 @@ SELECT
|
|||||||
organization_id,
|
organization_id,
|
||||||
document_version_id,
|
document_version_id,
|
||||||
state,
|
state,
|
||||||
signed_by,
|
signed_by_profile_id,
|
||||||
signed_at,
|
signed_at,
|
||||||
requested_at,
|
requested_at,
|
||||||
created_at,
|
created_at,
|
||||||
@@ -422,7 +422,7 @@ func (pvs *DocumentVersionSignature) IsSignedByUserEmail(
|
|||||||
SELECT EXISTS (
|
SELECT EXISTS (
|
||||||
SELECT 1
|
SELECT 1
|
||||||
FROM document_version_signatures dvs
|
FROM document_version_signatures dvs
|
||||||
INNER JOIN peoples p ON dvs.signed_by = p.id
|
INNER JOIN peoples p ON dvs.signed_by_profile_id = p.id
|
||||||
WHERE dvs.document_version_id = @document_version_id
|
WHERE dvs.document_version_id = @document_version_id
|
||||||
AND p.primary_email_address = @user_email
|
AND p.primary_email_address = @user_email
|
||||||
AND dvs.state = 'SIGNED'
|
AND dvs.state = 'SIGNED'
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ func (ma *MeetingAttendees) LoadByMeetingID(
|
|||||||
q := `
|
q := `
|
||||||
SELECT
|
SELECT
|
||||||
meeting_id,
|
meeting_id,
|
||||||
attendee_id,
|
attendee_profile_id,
|
||||||
organization_id,
|
organization_id,
|
||||||
created_at
|
created_at
|
||||||
FROM
|
FROM
|
||||||
@@ -87,7 +87,7 @@ func (ma *MeetingAttendees) Merge(
|
|||||||
q := `
|
q := `
|
||||||
WITH attendee_ids AS (
|
WITH attendee_ids AS (
|
||||||
SELECT
|
SELECT
|
||||||
unnest(@attendee_ids::text[]) AS attendee_id,
|
unnest(@attendee_ids::text[]) AS attendee_profile_id,
|
||||||
@tenant_id AS tenant_id,
|
@tenant_id AS tenant_id,
|
||||||
@meeting_id AS meeting_id,
|
@meeting_id AS meeting_id,
|
||||||
@organization_id AS organization_id,
|
@organization_id AS organization_id,
|
||||||
@@ -97,10 +97,10 @@ MERGE INTO meeting_attendees AS tgt
|
|||||||
USING attendee_ids AS src
|
USING attendee_ids AS src
|
||||||
ON tgt.tenant_id = src.tenant_id
|
ON tgt.tenant_id = src.tenant_id
|
||||||
AND tgt.meeting_id = src.meeting_id
|
AND tgt.meeting_id = src.meeting_id
|
||||||
AND tgt.attendee_id = src.attendee_id
|
AND tgt.attendee_profile_id = src.attendee_profile_id
|
||||||
WHEN NOT MATCHED THEN
|
WHEN NOT MATCHED THEN
|
||||||
INSERT (tenant_id, meeting_id, attendee_id, organization_id, created_at)
|
INSERT (tenant_id, meeting_id, attendee_profile_id, organization_id, created_at)
|
||||||
VALUES (src.tenant_id, src.meeting_id, src.attendee_id, src.organization_id, src.created_at)
|
VALUES (src.tenant_id, src.meeting_id, src.attendee_profile_id, src.organization_id, src.created_at)
|
||||||
WHEN NOT MATCHED BY SOURCE
|
WHEN NOT MATCHED BY SOURCE
|
||||||
AND tgt.tenant_id = @tenant_id AND tgt.meeting_id = @meeting_id
|
AND tgt.tenant_id = @tenant_id AND tgt.meeting_id = @meeting_id
|
||||||
THEN DELETE
|
THEN DELETE
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ SELECT
|
|||||||
i.email_address,
|
i.email_address,
|
||||||
p.full_name,
|
p.full_name,
|
||||||
p.kind,
|
p.kind,
|
||||||
p.additionalEmailAddresses,
|
p.additional_email_addresses,
|
||||||
p.position,
|
p.position,
|
||||||
p.contract_start_date,
|
p.contract_start_date,
|
||||||
p.contract_end_date,
|
p.contract_end_date,
|
||||||
@@ -142,7 +142,7 @@ SELECT
|
|||||||
i.email_address,
|
i.email_address,
|
||||||
p.full_name,
|
p.full_name,
|
||||||
p.kind,
|
p.kind,
|
||||||
p.additionalEmailAddresses,
|
p.additional_email_addresses,
|
||||||
p.position,
|
p.position,
|
||||||
p.contract_start_date,
|
p.contract_start_date,
|
||||||
p.contract_end_date,
|
p.contract_end_date,
|
||||||
@@ -196,7 +196,7 @@ SELECT
|
|||||||
i.email_address,
|
i.email_address,
|
||||||
p.full_name,
|
p.full_name,
|
||||||
p.kind,
|
p.kind,
|
||||||
p.additionalEmailAddresses,
|
p.additional_email_addresses,
|
||||||
p.position,
|
p.position,
|
||||||
p.contract_start_date,
|
p.contract_start_date,
|
||||||
p.contract_end_date,
|
p.contract_end_date,
|
||||||
@@ -246,7 +246,7 @@ WITH attendees AS (
|
|||||||
i.email_address,
|
i.email_address,
|
||||||
p.full_name,
|
p.full_name,
|
||||||
p.kind,
|
p.kind,
|
||||||
p.additionalEmailAddresses,
|
p.additional_email_addresses,
|
||||||
p.position,
|
p.position,
|
||||||
p.contract_start_date,
|
p.contract_start_date,
|
||||||
p.contract_end_date,
|
p.contract_end_date,
|
||||||
@@ -370,7 +370,7 @@ INSERT INTO
|
|||||||
membership_id,
|
membership_id,
|
||||||
full_name,
|
full_name,
|
||||||
kind,
|
kind,
|
||||||
additionalEmailAddresses,
|
additional_email_addresses,
|
||||||
position,
|
position,
|
||||||
contract_start_date,
|
contract_start_date,
|
||||||
contract_end_date,
|
contract_end_date,
|
||||||
@@ -384,7 +384,7 @@ VALUES (
|
|||||||
@membership_id,
|
@membership_id,
|
||||||
@full_name,
|
@full_name,
|
||||||
@kind,
|
@kind,
|
||||||
@additionalEmailAddresses,
|
@additional_email_addresses,
|
||||||
@position,
|
@position,
|
||||||
@contract_start_date,
|
@contract_start_date,
|
||||||
@contract_end_date,
|
@contract_end_date,
|
||||||
@@ -400,7 +400,7 @@ VALUES (
|
|||||||
"membership_id": p.MembershipID,
|
"membership_id": p.MembershipID,
|
||||||
"full_name": p.FullName,
|
"full_name": p.FullName,
|
||||||
"kind": p.Kind,
|
"kind": p.Kind,
|
||||||
"additionalEmailAddresses": p.AdditionalEmailAddresses,
|
"additional_email_addresses": p.AdditionalEmailAddresses,
|
||||||
"position": p.Position,
|
"position": p.Position,
|
||||||
"contract_start_date": p.ContractStartDate,
|
"contract_start_date": p.ContractStartDate,
|
||||||
"contract_end_date": p.ContractEndDate,
|
"contract_end_date": p.ContractEndDate,
|
||||||
@@ -427,7 +427,7 @@ UPDATE
|
|||||||
SET
|
SET
|
||||||
full_name = @full_name,
|
full_name = @full_name,
|
||||||
kind = @kind,
|
kind = @kind,
|
||||||
additionalEmailAddresses = @additionalEmailAddresses,
|
additional_email_addresses = @additional_email_addresses,
|
||||||
position = @position,
|
position = @position,
|
||||||
contract_start_date = @contract_start_date,
|
contract_start_date = @contract_start_date,
|
||||||
contract_end_date = @contract_end_date,
|
contract_end_date = @contract_end_date,
|
||||||
@@ -443,7 +443,7 @@ WHERE
|
|||||||
"id": p.ID,
|
"id": p.ID,
|
||||||
"full_name": p.FullName,
|
"full_name": p.FullName,
|
||||||
"kind": p.Kind,
|
"kind": p.Kind,
|
||||||
"additionalEmailAddresses": p.AdditionalEmailAddresses,
|
"additional_email_addresses": p.AdditionalEmailAddresses,
|
||||||
"position": p.Position,
|
"position": p.Position,
|
||||||
"contract_start_date": p.ContractStartDate,
|
"contract_start_date": p.ContractStartDate,
|
||||||
"contract_end_date": p.ContractEndDate,
|
"contract_end_date": p.ContractEndDate,
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ SELECT
|
|||||||
date_identified,
|
date_identified,
|
||||||
root_cause,
|
root_cause,
|
||||||
corrective_action,
|
corrective_action,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
due_date,
|
due_date,
|
||||||
status,
|
status,
|
||||||
effectiveness_check,
|
effectiveness_check,
|
||||||
@@ -188,7 +188,7 @@ SELECT
|
|||||||
date_identified,
|
date_identified,
|
||||||
root_cause,
|
root_cause,
|
||||||
corrective_action,
|
corrective_action,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
due_date,
|
due_date,
|
||||||
status,
|
status,
|
||||||
effectiveness_check,
|
effectiveness_check,
|
||||||
@@ -241,7 +241,7 @@ INSERT INTO nonconformities (
|
|||||||
date_identified,
|
date_identified,
|
||||||
root_cause,
|
root_cause,
|
||||||
corrective_action,
|
corrective_action,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
due_date,
|
due_date,
|
||||||
status,
|
status,
|
||||||
effectiveness_check,
|
effectiveness_check,
|
||||||
@@ -257,7 +257,7 @@ INSERT INTO nonconformities (
|
|||||||
@date_identified,
|
@date_identified,
|
||||||
@root_cause,
|
@root_cause,
|
||||||
@corrective_action,
|
@corrective_action,
|
||||||
@owner_id,
|
@owner_profile_id,
|
||||||
@due_date,
|
@due_date,
|
||||||
@status,
|
@status,
|
||||||
@effectiveness_check,
|
@effectiveness_check,
|
||||||
@@ -276,7 +276,7 @@ INSERT INTO nonconformities (
|
|||||||
"date_identified": nc.DateIdentified,
|
"date_identified": nc.DateIdentified,
|
||||||
"root_cause": nc.RootCause,
|
"root_cause": nc.RootCause,
|
||||||
"corrective_action": nc.CorrectiveAction,
|
"corrective_action": nc.CorrectiveAction,
|
||||||
"owner_id": nc.OwnerID,
|
"owner_profile_id": nc.OwnerID,
|
||||||
"due_date": nc.DueDate,
|
"due_date": nc.DueDate,
|
||||||
"status": nc.Status,
|
"status": nc.Status,
|
||||||
"effectiveness_check": nc.EffectivenessCheck,
|
"effectiveness_check": nc.EffectivenessCheck,
|
||||||
@@ -308,7 +308,7 @@ SET
|
|||||||
due_date = @due_date,
|
due_date = @due_date,
|
||||||
status = @status,
|
status = @status,
|
||||||
effectiveness_check = @effectiveness_check,
|
effectiveness_check = @effectiveness_check,
|
||||||
owner_id = @owner_id,
|
owner_profile_id = @owner_profile_id,
|
||||||
audit_id = @audit_id,
|
audit_id = @audit_id,
|
||||||
updated_at = @updated_at
|
updated_at = @updated_at
|
||||||
WHERE
|
WHERE
|
||||||
@@ -329,7 +329,7 @@ WHERE
|
|||||||
"due_date": nc.DueDate,
|
"due_date": nc.DueDate,
|
||||||
"status": nc.Status,
|
"status": nc.Status,
|
||||||
"effectiveness_check": nc.EffectivenessCheck,
|
"effectiveness_check": nc.EffectivenessCheck,
|
||||||
"owner_id": nc.OwnerID,
|
"owner_profile_id": nc.OwnerID,
|
||||||
"audit_id": nc.AuditID,
|
"audit_id": nc.AuditID,
|
||||||
"updated_at": nc.UpdatedAt,
|
"updated_at": nc.UpdatedAt,
|
||||||
}
|
}
|
||||||
@@ -382,7 +382,7 @@ INSERT INTO nonconformities (
|
|||||||
date_identified,
|
date_identified,
|
||||||
root_cause,
|
root_cause,
|
||||||
corrective_action,
|
corrective_action,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
due_date,
|
due_date,
|
||||||
status,
|
status,
|
||||||
effectiveness_check,
|
effectiveness_check,
|
||||||
@@ -401,7 +401,7 @@ SELECT
|
|||||||
nc.date_identified,
|
nc.date_identified,
|
||||||
nc.root_cause,
|
nc.root_cause,
|
||||||
nc.corrective_action,
|
nc.corrective_action,
|
||||||
nc.owner_id,
|
nc.owner_profile_id,
|
||||||
nc.due_date,
|
nc.due_date,
|
||||||
nc.status,
|
nc.status,
|
||||||
nc.effectiveness_check,
|
nc.effectiveness_check,
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ SELECT
|
|||||||
requirement,
|
requirement,
|
||||||
actions_to_be_implemented,
|
actions_to_be_implemented,
|
||||||
regulator,
|
regulator,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
last_review_date,
|
last_review_date,
|
||||||
due_date,
|
due_date,
|
||||||
status,
|
status,
|
||||||
@@ -229,7 +229,7 @@ SELECT
|
|||||||
requirement,
|
requirement,
|
||||||
actions_to_be_implemented,
|
actions_to_be_implemented,
|
||||||
regulator,
|
regulator,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
last_review_date,
|
last_review_date,
|
||||||
due_date,
|
due_date,
|
||||||
status,
|
status,
|
||||||
@@ -287,7 +287,7 @@ WITH obls AS (
|
|||||||
o.requirement,
|
o.requirement,
|
||||||
o.actions_to_be_implemented,
|
o.actions_to_be_implemented,
|
||||||
o.regulator,
|
o.regulator,
|
||||||
o.owner_id,
|
o.owner_profile_id,
|
||||||
o.last_review_date,
|
o.last_review_date,
|
||||||
o.due_date,
|
o.due_date,
|
||||||
o.status,
|
o.status,
|
||||||
@@ -313,7 +313,7 @@ SELECT
|
|||||||
requirement,
|
requirement,
|
||||||
actions_to_be_implemented,
|
actions_to_be_implemented,
|
||||||
regulator,
|
regulator,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
last_review_date,
|
last_review_date,
|
||||||
due_date,
|
due_date,
|
||||||
status,
|
status,
|
||||||
@@ -414,7 +414,7 @@ WITH obls AS (
|
|||||||
o.requirement,
|
o.requirement,
|
||||||
o.actions_to_be_implemented,
|
o.actions_to_be_implemented,
|
||||||
o.regulator,
|
o.regulator,
|
||||||
o.owner_id,
|
o.owner_profile_id,
|
||||||
o.last_review_date,
|
o.last_review_date,
|
||||||
o.due_date,
|
o.due_date,
|
||||||
o.status,
|
o.status,
|
||||||
@@ -439,7 +439,7 @@ SELECT
|
|||||||
requirement,
|
requirement,
|
||||||
actions_to_be_implemented,
|
actions_to_be_implemented,
|
||||||
regulator,
|
regulator,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
last_review_date,
|
last_review_date,
|
||||||
due_date,
|
due_date,
|
||||||
status,
|
status,
|
||||||
@@ -491,7 +491,7 @@ INSERT INTO obligations (
|
|||||||
requirement,
|
requirement,
|
||||||
actions_to_be_implemented,
|
actions_to_be_implemented,
|
||||||
regulator,
|
regulator,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
last_review_date,
|
last_review_date,
|
||||||
due_date,
|
due_date,
|
||||||
status,
|
status,
|
||||||
@@ -509,7 +509,7 @@ INSERT INTO obligations (
|
|||||||
@requirement,
|
@requirement,
|
||||||
@actions_to_be_implemented,
|
@actions_to_be_implemented,
|
||||||
@regulator,
|
@regulator,
|
||||||
@owner_id,
|
@owner_profile_id,
|
||||||
@last_review_date,
|
@last_review_date,
|
||||||
@due_date,
|
@due_date,
|
||||||
@status,
|
@status,
|
||||||
@@ -530,7 +530,7 @@ INSERT INTO obligations (
|
|||||||
"requirement": o.Requirement,
|
"requirement": o.Requirement,
|
||||||
"actions_to_be_implemented": o.ActionsToBeImplemented,
|
"actions_to_be_implemented": o.ActionsToBeImplemented,
|
||||||
"regulator": o.Regulator,
|
"regulator": o.Regulator,
|
||||||
"owner_id": o.OwnerID,
|
"owner_profile_id": o.OwnerID,
|
||||||
"last_review_date": o.LastReviewDate,
|
"last_review_date": o.LastReviewDate,
|
||||||
"due_date": o.DueDate,
|
"due_date": o.DueDate,
|
||||||
"status": o.Status,
|
"status": o.Status,
|
||||||
@@ -561,7 +561,7 @@ UPDATE obligations SET
|
|||||||
requirement = @requirement,
|
requirement = @requirement,
|
||||||
actions_to_be_implemented = @actions_to_be_implemented,
|
actions_to_be_implemented = @actions_to_be_implemented,
|
||||||
regulator = @regulator,
|
regulator = @regulator,
|
||||||
owner_id = @owner_id,
|
owner_profile_id = @owner_profile_id,
|
||||||
last_review_date = @last_review_date,
|
last_review_date = @last_review_date,
|
||||||
due_date = @due_date,
|
due_date = @due_date,
|
||||||
status = @status,
|
status = @status,
|
||||||
@@ -582,7 +582,7 @@ WHERE
|
|||||||
"requirement": o.Requirement,
|
"requirement": o.Requirement,
|
||||||
"actions_to_be_implemented": o.ActionsToBeImplemented,
|
"actions_to_be_implemented": o.ActionsToBeImplemented,
|
||||||
"regulator": o.Regulator,
|
"regulator": o.Regulator,
|
||||||
"owner_id": o.OwnerID,
|
"owner_profile_id": o.OwnerID,
|
||||||
"last_review_date": o.LastReviewDate,
|
"last_review_date": o.LastReviewDate,
|
||||||
"due_date": o.DueDate,
|
"due_date": o.DueDate,
|
||||||
"status": o.Status,
|
"status": o.Status,
|
||||||
@@ -638,7 +638,7 @@ INSERT INTO obligations (
|
|||||||
requirement,
|
requirement,
|
||||||
actions_to_be_implemented,
|
actions_to_be_implemented,
|
||||||
regulator,
|
regulator,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
last_review_date,
|
last_review_date,
|
||||||
due_date,
|
due_date,
|
||||||
status,
|
status,
|
||||||
@@ -657,7 +657,7 @@ SELECT
|
|||||||
o.requirement,
|
o.requirement,
|
||||||
o.actions_to_be_implemented,
|
o.actions_to_be_implemented,
|
||||||
o.regulator,
|
o.regulator,
|
||||||
o.owner_id,
|
o.owner_profile_id,
|
||||||
o.last_review_date,
|
o.last_review_date,
|
||||||
o.due_date,
|
o.due_date,
|
||||||
o.status,
|
o.status,
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ SELECT
|
|||||||
last_review_date,
|
last_review_date,
|
||||||
next_review_date,
|
next_review_date,
|
||||||
role,
|
role,
|
||||||
data_protection_officer_id,
|
dpo_profile_id,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
FROM
|
FROM
|
||||||
@@ -212,7 +212,7 @@ SELECT
|
|||||||
last_review_date,
|
last_review_date,
|
||||||
next_review_date,
|
next_review_date,
|
||||||
role,
|
role,
|
||||||
data_protection_officer_id,
|
dpo_profile_id,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
FROM
|
FROM
|
||||||
@@ -277,7 +277,7 @@ SELECT
|
|||||||
last_review_date,
|
last_review_date,
|
||||||
next_review_date,
|
next_review_date,
|
||||||
role,
|
role,
|
||||||
data_protection_officer_id,
|
dpo_profile_id,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
FROM
|
FROM
|
||||||
@@ -340,7 +340,7 @@ INSERT INTO processing_activities (
|
|||||||
last_review_date,
|
last_review_date,
|
||||||
next_review_date,
|
next_review_date,
|
||||||
role,
|
role,
|
||||||
data_protection_officer_id,
|
dpo_profile_id,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
) VALUES (
|
) VALUES (
|
||||||
@@ -367,7 +367,7 @@ INSERT INTO processing_activities (
|
|||||||
@last_review_date,
|
@last_review_date,
|
||||||
@next_review_date,
|
@next_review_date,
|
||||||
@role,
|
@role,
|
||||||
@data_protection_officer_id,
|
@dpo_profile_id,
|
||||||
@created_at,
|
@created_at,
|
||||||
@updated_at
|
@updated_at
|
||||||
)
|
)
|
||||||
@@ -397,7 +397,7 @@ INSERT INTO processing_activities (
|
|||||||
"last_review_date": p.LastReviewDate,
|
"last_review_date": p.LastReviewDate,
|
||||||
"next_review_date": p.NextReviewDate,
|
"next_review_date": p.NextReviewDate,
|
||||||
"role": p.Role,
|
"role": p.Role,
|
||||||
"data_protection_officer_id": p.DataProtectionOfficerID,
|
"dpo_profile_id": p.DataProtectionOfficerID,
|
||||||
"created_at": p.CreatedAt,
|
"created_at": p.CreatedAt,
|
||||||
"updated_at": p.UpdatedAt,
|
"updated_at": p.UpdatedAt,
|
||||||
}
|
}
|
||||||
@@ -436,7 +436,7 @@ SET
|
|||||||
last_review_date = @last_review_date,
|
last_review_date = @last_review_date,
|
||||||
next_review_date = @next_review_date,
|
next_review_date = @next_review_date,
|
||||||
role = @role,
|
role = @role,
|
||||||
data_protection_officer_id = @data_protection_officer_id,
|
dpo_profile_id = @dpo_profile_id,
|
||||||
updated_at = @updated_at
|
updated_at = @updated_at
|
||||||
WHERE
|
WHERE
|
||||||
%s
|
%s
|
||||||
@@ -466,7 +466,7 @@ WHERE
|
|||||||
"last_review_date": p.LastReviewDate,
|
"last_review_date": p.LastReviewDate,
|
||||||
"next_review_date": p.NextReviewDate,
|
"next_review_date": p.NextReviewDate,
|
||||||
"role": p.Role,
|
"role": p.Role,
|
||||||
"data_protection_officer_id": p.DataProtectionOfficerID,
|
"dpo_profile_id": p.DataProtectionOfficerID,
|
||||||
"updated_at": p.UpdatedAt,
|
"updated_at": p.UpdatedAt,
|
||||||
}
|
}
|
||||||
maps.Copy(args, scope.SQLArguments())
|
maps.Copy(args, scope.SQLArguments())
|
||||||
@@ -549,7 +549,7 @@ INSERT INTO processing_activities (
|
|||||||
last_review_date,
|
last_review_date,
|
||||||
next_review_date,
|
next_review_date,
|
||||||
role,
|
role,
|
||||||
data_protection_officer_id,
|
dpo_profile_id,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
)
|
)
|
||||||
@@ -577,7 +577,7 @@ SELECT
|
|||||||
par.last_review_date,
|
par.last_review_date,
|
||||||
par.next_review_date,
|
par.next_review_date,
|
||||||
par.role,
|
par.role,
|
||||||
par.data_protection_officer_id,
|
par.dpo_profile_id,
|
||||||
par.created_at,
|
par.created_at,
|
||||||
par.updated_at
|
par.updated_at
|
||||||
FROM processing_activities par
|
FROM processing_activities par
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ WITH rsks AS (
|
|||||||
r.name,
|
r.name,
|
||||||
r.description,
|
r.description,
|
||||||
r.category,
|
r.category,
|
||||||
r.owner_id,
|
r.owner_profile_id,
|
||||||
p.full_name as owner_full_name,
|
p.full_name as owner_full_name,
|
||||||
r.treatment,
|
r.treatment,
|
||||||
r.note,
|
r.note,
|
||||||
@@ -175,7 +175,7 @@ WITH rsks AS (
|
|||||||
INNER JOIN
|
INNER JOIN
|
||||||
risks_measures rm ON r.id = rm.risk_id
|
risks_measures rm ON r.id = rm.risk_id
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
peoples p ON r.owner_id = p.id
|
peoples p ON r.owner_profile_id = p.id
|
||||||
WHERE
|
WHERE
|
||||||
rm.measure_id = @measure_id
|
rm.measure_id = @measure_id
|
||||||
)
|
)
|
||||||
@@ -185,7 +185,7 @@ SELECT
|
|||||||
name,
|
name,
|
||||||
description,
|
description,
|
||||||
category,
|
category,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
owner_full_name,
|
owner_full_name,
|
||||||
treatment,
|
treatment,
|
||||||
note,
|
note,
|
||||||
@@ -274,7 +274,7 @@ WITH rsks AS (
|
|||||||
r.organization_id,
|
r.organization_id,
|
||||||
r.name,
|
r.name,
|
||||||
r.description,
|
r.description,
|
||||||
r.owner_id,
|
r.owner_profile_id,
|
||||||
p.full_name as owner_full_name,
|
p.full_name as owner_full_name,
|
||||||
r.treatment,
|
r.treatment,
|
||||||
r.note,
|
r.note,
|
||||||
@@ -293,7 +293,7 @@ WITH rsks AS (
|
|||||||
FROM
|
FROM
|
||||||
risks r
|
risks r
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
peoples p ON r.owner_id = p.id
|
peoples p ON r.owner_profile_id = p.id
|
||||||
WHERE
|
WHERE
|
||||||
r.organization_id = @organization_id
|
r.organization_id = @organization_id
|
||||||
)
|
)
|
||||||
@@ -302,7 +302,7 @@ SELECT
|
|||||||
organization_id,
|
organization_id,
|
||||||
name,
|
name,
|
||||||
description,
|
description,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
owner_full_name,
|
owner_full_name,
|
||||||
treatment,
|
treatment,
|
||||||
note,
|
note,
|
||||||
@@ -358,7 +358,7 @@ SELECT
|
|||||||
name,
|
name,
|
||||||
description,
|
description,
|
||||||
category,
|
category,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
NULL as owner_full_name,
|
NULL as owner_full_name,
|
||||||
treatment,
|
treatment,
|
||||||
note,
|
note,
|
||||||
@@ -407,8 +407,8 @@ func (r *Risk) Insert(
|
|||||||
scope Scoper,
|
scope Scoper,
|
||||||
) error {
|
) error {
|
||||||
q := `
|
q := `
|
||||||
INSERT INTO risks (id, tenant_id, organization_id, name, description, category, owner_id, treatment, note, inherent_likelihood, inherent_impact, residual_likelihood, residual_impact, created_at, updated_at)
|
INSERT INTO risks (id, tenant_id, organization_id, name, description, category, owner_profile_id, treatment, note, inherent_likelihood, inherent_impact, residual_likelihood, residual_impact, created_at, updated_at)
|
||||||
VALUES (@id, @tenant_id, @organization_id, @name, @description, @category, @owner_id, @treatment, @note, @inherent_likelihood, @inherent_impact, @residual_likelihood, @residual_impact, @created_at, @updated_at)
|
VALUES (@id, @tenant_id, @organization_id, @name, @description, @category, @owner_profile_id, @treatment, @note, @inherent_likelihood, @inherent_impact, @residual_likelihood, @residual_impact, @created_at, @updated_at)
|
||||||
`
|
`
|
||||||
|
|
||||||
args := pgx.StrictNamedArgs{
|
args := pgx.StrictNamedArgs{
|
||||||
@@ -418,7 +418,7 @@ VALUES (@id, @tenant_id, @organization_id, @name, @description, @category, @owne
|
|||||||
"name": r.Name,
|
"name": r.Name,
|
||||||
"description": r.Description,
|
"description": r.Description,
|
||||||
"category": r.Category,
|
"category": r.Category,
|
||||||
"owner_id": r.OwnerID,
|
"owner_profile_id": r.OwnerID,
|
||||||
"treatment": r.Treatment,
|
"treatment": r.Treatment,
|
||||||
"note": r.Note,
|
"note": r.Note,
|
||||||
"inherent_likelihood": r.InherentLikelihood,
|
"inherent_likelihood": r.InherentLikelihood,
|
||||||
@@ -443,7 +443,7 @@ UPDATE risks
|
|||||||
SET
|
SET
|
||||||
name = @name,
|
name = @name,
|
||||||
description = @description,
|
description = @description,
|
||||||
owner_id = @owner_id,
|
owner_profile_id = @owner_profile_id,
|
||||||
treatment = @treatment,
|
treatment = @treatment,
|
||||||
inherent_likelihood = @inherent_likelihood,
|
inherent_likelihood = @inherent_likelihood,
|
||||||
inherent_impact = @inherent_impact,
|
inherent_impact = @inherent_impact,
|
||||||
@@ -463,7 +463,7 @@ WHERE %s
|
|||||||
"name": r.Name,
|
"name": r.Name,
|
||||||
"description": r.Description,
|
"description": r.Description,
|
||||||
"category": r.Category,
|
"category": r.Category,
|
||||||
"owner_id": r.OwnerID,
|
"owner_profile_id": r.OwnerID,
|
||||||
"treatment": r.Treatment,
|
"treatment": r.Treatment,
|
||||||
"note": r.Note,
|
"note": r.Note,
|
||||||
"inherent_likelihood": r.InherentLikelihood,
|
"inherent_likelihood": r.InherentLikelihood,
|
||||||
@@ -567,7 +567,7 @@ INSERT INTO risks (
|
|||||||
category,
|
category,
|
||||||
treatment,
|
treatment,
|
||||||
note,
|
note,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
inherent_likelihood,
|
inherent_likelihood,
|
||||||
inherent_impact,
|
inherent_impact,
|
||||||
residual_likelihood,
|
residual_likelihood,
|
||||||
@@ -586,7 +586,7 @@ SELECT
|
|||||||
r.category,
|
r.category,
|
||||||
r.treatment,
|
r.treatment,
|
||||||
r.note,
|
r.note,
|
||||||
r.owner_id,
|
r.owner_profile_id,
|
||||||
r.inherent_likelihood,
|
r.inherent_likelihood,
|
||||||
r.inherent_impact,
|
r.inherent_impact,
|
||||||
r.residual_likelihood,
|
r.residual_likelihood,
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ SELECT
|
|||||||
name,
|
name,
|
||||||
source_id,
|
source_id,
|
||||||
snapshot_id,
|
snapshot_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
FROM
|
FROM
|
||||||
@@ -130,7 +130,7 @@ SELECT
|
|||||||
name,
|
name,
|
||||||
source_id,
|
source_id,
|
||||||
snapshot_id,
|
snapshot_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
FROM
|
FROM
|
||||||
@@ -210,7 +210,7 @@ INSERT INTO
|
|||||||
name,
|
name,
|
||||||
source_id,
|
source_id,
|
||||||
snapshot_id,
|
snapshot_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
)
|
)
|
||||||
@@ -221,7 +221,7 @@ VALUES (
|
|||||||
@name,
|
@name,
|
||||||
@source_id,
|
@source_id,
|
||||||
@snapshot_id,
|
@snapshot_id,
|
||||||
@owner_id,
|
@owner_profile_id,
|
||||||
@created_at,
|
@created_at,
|
||||||
@updated_at
|
@updated_at
|
||||||
);
|
);
|
||||||
@@ -234,7 +234,7 @@ VALUES (
|
|||||||
"name": s.Name,
|
"name": s.Name,
|
||||||
"source_id": s.SourceID,
|
"source_id": s.SourceID,
|
||||||
"snapshot_id": s.SnapshotID,
|
"snapshot_id": s.SnapshotID,
|
||||||
"owner_id": s.OwnerID,
|
"owner_profile_id": s.OwnerID,
|
||||||
"created_at": s.CreatedAt,
|
"created_at": s.CreatedAt,
|
||||||
"updated_at": s.UpdatedAt,
|
"updated_at": s.UpdatedAt,
|
||||||
}
|
}
|
||||||
@@ -262,7 +262,7 @@ func (s *StateOfApplicability) Update(
|
|||||||
UPDATE states_of_applicability
|
UPDATE states_of_applicability
|
||||||
SET
|
SET
|
||||||
name = @name,
|
name = @name,
|
||||||
owner_id = @owner_id,
|
owner_profile_id = @owner_profile_id,
|
||||||
updated_at = @updated_at
|
updated_at = @updated_at
|
||||||
WHERE
|
WHERE
|
||||||
%s
|
%s
|
||||||
@@ -274,7 +274,7 @@ WHERE
|
|||||||
args := pgx.StrictNamedArgs{
|
args := pgx.StrictNamedArgs{
|
||||||
"state_of_applicability_id": s.ID,
|
"state_of_applicability_id": s.ID,
|
||||||
"name": s.Name,
|
"name": s.Name,
|
||||||
"owner_id": s.OwnerID,
|
"owner_profile_id": s.OwnerID,
|
||||||
"updated_at": s.UpdatedAt,
|
"updated_at": s.UpdatedAt,
|
||||||
}
|
}
|
||||||
maps.Copy(args, scope.SQLArguments())
|
maps.Copy(args, scope.SQLArguments())
|
||||||
@@ -354,7 +354,7 @@ INSERT INTO states_of_applicability (
|
|||||||
name,
|
name,
|
||||||
source_id,
|
source_id,
|
||||||
snapshot_id,
|
snapshot_id,
|
||||||
owner_id,
|
owner_profile_id,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
)
|
)
|
||||||
@@ -365,7 +365,7 @@ SELECT
|
|||||||
soa.name,
|
soa.name,
|
||||||
soa.id,
|
soa.id,
|
||||||
@snapshot_id,
|
@snapshot_id,
|
||||||
soa.owner_id,
|
soa.owner_profile_id,
|
||||||
soa.created_at,
|
soa.created_at,
|
||||||
soa.updated_at
|
soa.updated_at
|
||||||
FROM states_of_applicability soa
|
FROM states_of_applicability soa
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ SELECT
|
|||||||
state,
|
state,
|
||||||
reference_id,
|
reference_id,
|
||||||
time_estimate,
|
time_estimate,
|
||||||
assigned_to,
|
assigned_to_profile_id,
|
||||||
deadline,
|
deadline,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
@@ -140,7 +140,7 @@ INSERT INTO
|
|||||||
reference_id,
|
reference_id,
|
||||||
state,
|
state,
|
||||||
time_estimate,
|
time_estimate,
|
||||||
assigned_to,
|
assigned_to_profile_id,
|
||||||
deadline,
|
deadline,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
@@ -155,7 +155,7 @@ VALUES (
|
|||||||
@reference_id,
|
@reference_id,
|
||||||
@state,
|
@state,
|
||||||
@time_estimate,
|
@time_estimate,
|
||||||
@assigned_to,
|
@assigned_to_profile_id,
|
||||||
@deadline,
|
@deadline,
|
||||||
@created_at,
|
@created_at,
|
||||||
@updated_at
|
@updated_at
|
||||||
@@ -172,7 +172,7 @@ VALUES (
|
|||||||
"reference_id": c.ReferenceID,
|
"reference_id": c.ReferenceID,
|
||||||
"state": c.State,
|
"state": c.State,
|
||||||
"time_estimate": c.TimeEstimate,
|
"time_estimate": c.TimeEstimate,
|
||||||
"assigned_to": c.AssignedToID,
|
"assigned_to_profile_id": c.AssignedToID,
|
||||||
"deadline": c.Deadline,
|
"deadline": c.Deadline,
|
||||||
"created_at": c.CreatedAt,
|
"created_at": c.CreatedAt,
|
||||||
"updated_at": c.UpdatedAt,
|
"updated_at": c.UpdatedAt,
|
||||||
@@ -209,7 +209,7 @@ INSERT INTO
|
|||||||
reference_id,
|
reference_id,
|
||||||
state,
|
state,
|
||||||
time_estimate,
|
time_estimate,
|
||||||
assigned_to,
|
assigned_to_profile_id,
|
||||||
deadline,
|
deadline,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
@@ -224,7 +224,7 @@ VALUES (
|
|||||||
@reference_id,
|
@reference_id,
|
||||||
@state,
|
@state,
|
||||||
@time_estimate,
|
@time_estimate,
|
||||||
@assigned_to,
|
@assigned_to_profile_id,
|
||||||
@deadline,
|
@deadline,
|
||||||
@created_at,
|
@created_at,
|
||||||
@updated_at
|
@updated_at
|
||||||
@@ -243,7 +243,7 @@ RETURNING
|
|||||||
reference_id,
|
reference_id,
|
||||||
state,
|
state,
|
||||||
time_estimate,
|
time_estimate,
|
||||||
assigned_to,
|
assigned_to_profile_id,
|
||||||
deadline,
|
deadline,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
@@ -259,7 +259,7 @@ RETURNING
|
|||||||
"reference_id": c.ReferenceID,
|
"reference_id": c.ReferenceID,
|
||||||
"state": c.State,
|
"state": c.State,
|
||||||
"time_estimate": c.TimeEstimate,
|
"time_estimate": c.TimeEstimate,
|
||||||
"assigned_to": c.AssignedToID,
|
"assigned_to_profile_id": c.AssignedToID,
|
||||||
"deadline": c.Deadline,
|
"deadline": c.Deadline,
|
||||||
"created_at": c.CreatedAt,
|
"created_at": c.CreatedAt,
|
||||||
"updated_at": c.UpdatedAt,
|
"updated_at": c.UpdatedAt,
|
||||||
@@ -328,7 +328,7 @@ func (c *Tasks) LoadByOrganizationID(
|
|||||||
state,
|
state,
|
||||||
reference_id,
|
reference_id,
|
||||||
time_estimate,
|
time_estimate,
|
||||||
assigned_to,
|
assigned_to_profile_id,
|
||||||
deadline,
|
deadline,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
@@ -409,7 +409,7 @@ SELECT
|
|||||||
state,
|
state,
|
||||||
reference_id,
|
reference_id,
|
||||||
time_estimate,
|
time_estimate,
|
||||||
assigned_to,
|
assigned_to_profile_id,
|
||||||
deadline,
|
deadline,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
@@ -454,7 +454,7 @@ SET
|
|||||||
state = @state,
|
state = @state,
|
||||||
time_estimate = @time_estimate,
|
time_estimate = @time_estimate,
|
||||||
updated_at = @updated_at,
|
updated_at = @updated_at,
|
||||||
assigned_to = @assigned_to,
|
assigned_to_profile_id = @assigned_to_profile_id,
|
||||||
deadline = @deadline
|
deadline = @deadline
|
||||||
WHERE %s
|
WHERE %s
|
||||||
AND id = @task_id
|
AND id = @task_id
|
||||||
@@ -468,7 +468,7 @@ WHERE %s
|
|||||||
"state": c.State,
|
"state": c.State,
|
||||||
"time_estimate": c.TimeEstimate,
|
"time_estimate": c.TimeEstimate,
|
||||||
"updated_at": c.UpdatedAt,
|
"updated_at": c.UpdatedAt,
|
||||||
"assigned_to": c.AssignedToID,
|
"assigned_to_profile_id": c.AssignedToID,
|
||||||
"deadline": c.Deadline,
|
"deadline": c.Deadline,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -116,8 +116,8 @@ SELECT
|
|||||||
subprocessors_list_url,
|
subprocessors_list_url,
|
||||||
certifications,
|
certifications,
|
||||||
countries,
|
countries,
|
||||||
business_owner_id,
|
business_owner_profile_id,
|
||||||
security_owner_id,
|
security_owner_profile_id,
|
||||||
status_page_url,
|
status_page_url,
|
||||||
terms_of_service_url,
|
terms_of_service_url,
|
||||||
security_page_url,
|
security_page_url,
|
||||||
@@ -184,8 +184,8 @@ INSERT INTO
|
|||||||
subprocessors_list_url,
|
subprocessors_list_url,
|
||||||
certifications,
|
certifications,
|
||||||
countries,
|
countries,
|
||||||
business_owner_id,
|
business_owner_profile_id,
|
||||||
security_owner_id,
|
security_owner_profile_id,
|
||||||
status_page_url,
|
status_page_url,
|
||||||
terms_of_service_url,
|
terms_of_service_url,
|
||||||
security_page_url,
|
security_page_url,
|
||||||
@@ -213,8 +213,8 @@ VALUES (
|
|||||||
@subprocessors_list_url,
|
@subprocessors_list_url,
|
||||||
@certifications,
|
@certifications,
|
||||||
@countries,
|
@countries,
|
||||||
@business_owner_id,
|
@business_owner_profile_id,
|
||||||
@security_owner_id,
|
@security_owner_profile_id,
|
||||||
@status_page_url,
|
@status_page_url,
|
||||||
@terms_of_service_url,
|
@terms_of_service_url,
|
||||||
@security_page_url,
|
@security_page_url,
|
||||||
@@ -244,8 +244,8 @@ VALUES (
|
|||||||
"subprocessors_list_url": v.SubprocessorsListURL,
|
"subprocessors_list_url": v.SubprocessorsListURL,
|
||||||
"certifications": v.Certifications,
|
"certifications": v.Certifications,
|
||||||
"countries": v.Countries,
|
"countries": v.Countries,
|
||||||
"business_owner_id": v.BusinessOwnerID,
|
"business_owner_profile_id": v.BusinessOwnerID,
|
||||||
"security_owner_id": v.SecurityOwnerID,
|
"security_owner_profile_id": v.SecurityOwnerID,
|
||||||
"status_page_url": v.StatusPageURL,
|
"status_page_url": v.StatusPageURL,
|
||||||
"terms_of_service_url": v.TermsOfServiceURL,
|
"terms_of_service_url": v.TermsOfServiceURL,
|
||||||
"security_page_url": v.SecurityPageURL,
|
"security_page_url": v.SecurityPageURL,
|
||||||
@@ -339,8 +339,8 @@ SELECT
|
|||||||
subprocessors_list_url,
|
subprocessors_list_url,
|
||||||
certifications,
|
certifications,
|
||||||
countries,
|
countries,
|
||||||
business_owner_id,
|
business_owner_profile_id,
|
||||||
security_owner_id,
|
security_owner_profile_id,
|
||||||
status_page_url,
|
status_page_url,
|
||||||
terms_of_service_url,
|
terms_of_service_url,
|
||||||
security_page_url,
|
security_page_url,
|
||||||
@@ -405,8 +405,8 @@ SET
|
|||||||
terms_of_service_url = @terms_of_service_url,
|
terms_of_service_url = @terms_of_service_url,
|
||||||
security_page_url = @security_page_url,
|
security_page_url = @security_page_url,
|
||||||
trust_page_url = @trust_page_url,
|
trust_page_url = @trust_page_url,
|
||||||
business_owner_id = @business_owner_id,
|
business_owner_profile_id = @business_owner_profile_id,
|
||||||
security_owner_id = @security_owner_id,
|
security_owner_profile_id = @security_owner_profile_id,
|
||||||
show_on_trust_center = @show_on_trust_center,
|
show_on_trust_center = @show_on_trust_center,
|
||||||
updated_at = @updated_at
|
updated_at = @updated_at
|
||||||
WHERE %s
|
WHERE %s
|
||||||
@@ -434,8 +434,8 @@ WHERE %s
|
|||||||
"terms_of_service_url": v.TermsOfServiceURL,
|
"terms_of_service_url": v.TermsOfServiceURL,
|
||||||
"security_page_url": v.SecurityPageURL,
|
"security_page_url": v.SecurityPageURL,
|
||||||
"trust_page_url": v.TrustPageURL,
|
"trust_page_url": v.TrustPageURL,
|
||||||
"business_owner_id": v.BusinessOwnerID,
|
"business_owner_profile_id": v.BusinessOwnerID,
|
||||||
"security_owner_id": v.SecurityOwnerID,
|
"security_owner_profile_id": v.SecurityOwnerID,
|
||||||
"show_on_trust_center": v.ShowOnTrustCenter,
|
"show_on_trust_center": v.ShowOnTrustCenter,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -544,8 +544,8 @@ WITH vend AS (
|
|||||||
v.subprocessors_list_url,
|
v.subprocessors_list_url,
|
||||||
v.certifications,
|
v.certifications,
|
||||||
v.countries,
|
v.countries,
|
||||||
v.business_owner_id,
|
v.business_owner_profile_id,
|
||||||
v.security_owner_id,
|
v.security_owner_profile_id,
|
||||||
v.status_page_url,
|
v.status_page_url,
|
||||||
v.terms_of_service_url,
|
v.terms_of_service_url,
|
||||||
v.security_page_url,
|
v.security_page_url,
|
||||||
@@ -579,8 +579,8 @@ SELECT
|
|||||||
subprocessors_list_url,
|
subprocessors_list_url,
|
||||||
certifications,
|
certifications,
|
||||||
countries,
|
countries,
|
||||||
business_owner_id,
|
business_owner_profile_id,
|
||||||
security_owner_id,
|
security_owner_profile_id,
|
||||||
status_page_url,
|
status_page_url,
|
||||||
terms_of_service_url,
|
terms_of_service_url,
|
||||||
security_page_url,
|
security_page_url,
|
||||||
@@ -681,8 +681,8 @@ WITH vend AS (
|
|||||||
v.subprocessors_list_url,
|
v.subprocessors_list_url,
|
||||||
v.certifications,
|
v.certifications,
|
||||||
v.countries,
|
v.countries,
|
||||||
v.business_owner_id,
|
v.business_owner_profile_id,
|
||||||
v.security_owner_id,
|
v.security_owner_profile_id,
|
||||||
v.status_page_url,
|
v.status_page_url,
|
||||||
v.terms_of_service_url,
|
v.terms_of_service_url,
|
||||||
v.security_page_url,
|
v.security_page_url,
|
||||||
@@ -716,8 +716,8 @@ SELECT
|
|||||||
subprocessors_list_url,
|
subprocessors_list_url,
|
||||||
certifications,
|
certifications,
|
||||||
countries,
|
countries,
|
||||||
business_owner_id,
|
business_owner_profile_id,
|
||||||
security_owner_id,
|
security_owner_profile_id,
|
||||||
status_page_url,
|
status_page_url,
|
||||||
terms_of_service_url,
|
terms_of_service_url,
|
||||||
security_page_url,
|
security_page_url,
|
||||||
@@ -779,8 +779,8 @@ WITH vend AS (
|
|||||||
v.subprocessors_list_url,
|
v.subprocessors_list_url,
|
||||||
v.certifications,
|
v.certifications,
|
||||||
v.countries,
|
v.countries,
|
||||||
v.business_owner_id,
|
v.business_owner_profile_id,
|
||||||
v.security_owner_id,
|
v.security_owner_profile_id,
|
||||||
v.status_page_url,
|
v.status_page_url,
|
||||||
v.terms_of_service_url,
|
v.terms_of_service_url,
|
||||||
v.security_page_url,
|
v.security_page_url,
|
||||||
@@ -814,8 +814,8 @@ SELECT
|
|||||||
subprocessors_list_url,
|
subprocessors_list_url,
|
||||||
certifications,
|
certifications,
|
||||||
countries,
|
countries,
|
||||||
business_owner_id,
|
business_owner_profile_id,
|
||||||
security_owner_id,
|
security_owner_profile_id,
|
||||||
status_page_url,
|
status_page_url,
|
||||||
terms_of_service_url,
|
terms_of_service_url,
|
||||||
security_page_url,
|
security_page_url,
|
||||||
@@ -962,8 +962,8 @@ INSERT INTO vendors (
|
|||||||
subprocessors_list_url,
|
subprocessors_list_url,
|
||||||
certifications,
|
certifications,
|
||||||
countries,
|
countries,
|
||||||
business_owner_id,
|
business_owner_profile_id,
|
||||||
security_owner_id,
|
security_owner_profile_id,
|
||||||
status_page_url,
|
status_page_url,
|
||||||
terms_of_service_url,
|
terms_of_service_url,
|
||||||
security_page_url,
|
security_page_url,
|
||||||
@@ -991,8 +991,8 @@ SELECT
|
|||||||
v.subprocessors_list_url,
|
v.subprocessors_list_url,
|
||||||
v.certifications,
|
v.certifications,
|
||||||
v.countries,
|
v.countries,
|
||||||
v.business_owner_id,
|
v.business_owner_profile_id,
|
||||||
v.security_owner_id,
|
v.security_owner_profile_id,
|
||||||
v.status_page_url,
|
v.status_page_url,
|
||||||
v.terms_of_service_url,
|
v.terms_of_service_url,
|
||||||
v.security_page_url,
|
v.security_page_url,
|
||||||
@@ -1064,8 +1064,8 @@ INSERT INTO vendors (
|
|||||||
subprocessors_list_url,
|
subprocessors_list_url,
|
||||||
certifications,
|
certifications,
|
||||||
countries,
|
countries,
|
||||||
business_owner_id,
|
business_owner_profile_id,
|
||||||
security_owner_id,
|
security_owner_profile_id,
|
||||||
status_page_url,
|
status_page_url,
|
||||||
terms_of_service_url,
|
terms_of_service_url,
|
||||||
security_page_url,
|
security_page_url,
|
||||||
@@ -1093,8 +1093,8 @@ SELECT
|
|||||||
v.subprocessors_list_url,
|
v.subprocessors_list_url,
|
||||||
v.certifications,
|
v.certifications,
|
||||||
v.countries,
|
v.countries,
|
||||||
v.business_owner_id,
|
v.business_owner_profile_id,
|
||||||
v.security_owner_id,
|
v.security_owner_profile_id,
|
||||||
v.status_page_url,
|
v.status_page_url,
|
||||||
v.terms_of_service_url,
|
v.terms_of_service_url,
|
||||||
v.security_page_url,
|
v.security_page_url,
|
||||||
@@ -1166,8 +1166,8 @@ INSERT INTO vendors (
|
|||||||
subprocessors_list_url,
|
subprocessors_list_url,
|
||||||
certifications,
|
certifications,
|
||||||
countries,
|
countries,
|
||||||
business_owner_id,
|
business_owner_profile_id,
|
||||||
security_owner_id,
|
security_owner_profile_id,
|
||||||
status_page_url,
|
status_page_url,
|
||||||
terms_of_service_url,
|
terms_of_service_url,
|
||||||
security_page_url,
|
security_page_url,
|
||||||
@@ -1195,8 +1195,8 @@ SELECT
|
|||||||
v.subprocessors_list_url,
|
v.subprocessors_list_url,
|
||||||
v.certifications,
|
v.certifications,
|
||||||
v.countries,
|
v.countries,
|
||||||
v.business_owner_id,
|
v.business_owner_profile_id,
|
||||||
v.security_owner_id,
|
v.security_owner_profile_id,
|
||||||
v.status_page_url,
|
v.status_page_url,
|
||||||
v.terms_of_service_url,
|
v.terms_of_service_url,
|
||||||
v.security_page_url,
|
v.security_page_url,
|
||||||
@@ -1270,8 +1270,8 @@ INSERT INTO vendors (
|
|||||||
subprocessors_list_url,
|
subprocessors_list_url,
|
||||||
certifications,
|
certifications,
|
||||||
countries,
|
countries,
|
||||||
business_owner_id,
|
business_owner_profile_id,
|
||||||
security_owner_id,
|
security_owner_profile_id,
|
||||||
status_page_url,
|
status_page_url,
|
||||||
terms_of_service_url,
|
terms_of_service_url,
|
||||||
security_page_url,
|
security_page_url,
|
||||||
@@ -1299,8 +1299,8 @@ SELECT
|
|||||||
v.subprocessors_list_url,
|
v.subprocessors_list_url,
|
||||||
v.certifications,
|
v.certifications,
|
||||||
v.countries,
|
v.countries,
|
||||||
v.business_owner_id,
|
v.business_owner_profile_id,
|
||||||
v.security_owner_id,
|
v.security_owner_profile_id,
|
||||||
v.status_page_url,
|
v.status_page_url,
|
||||||
v.terms_of_service_url,
|
v.terms_of_service_url,
|
||||||
v.security_page_url,
|
v.security_page_url,
|
||||||
|
|||||||
Reference in New Issue
Block a user