From b21779aefca561cc1c5c3d2c4acd1a1417f636d0 Mon Sep 17 00:00:00 2001
From: Cristiano Urban <cristiano.urban@inaf.it>
Date: Thu, 29 Apr 2021 16:43:56 +0200
Subject: [PATCH] Renamed 'rap_id' with 'user_id'.

Signed-off-by: Cristiano Urban <cristiano.urban@inaf.it>
---
 00-init.sql | 4 ++--
 05-data.sql | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/00-init.sql b/00-init.sql
index 50eac27..8e19a29 100644
--- a/00-init.sql
+++ b/00-init.sql
@@ -139,8 +139,8 @@ CREATE TABLE deleted_node (
 
 
 CREATE TABLE users (
-    rap_id            VARCHAR       NOT NULL,
+    user_id            VARCHAR       NOT NULL,
     user_name         VARCHAR       NOT NULL,
     e_mail            VARCHAR       NOT NULL,
-    PRIMARY KEY (rap_id)
+    PRIMARY KEY (user_id)
 );
diff --git a/05-data.sql b/05-data.sql
index acb8995..86c7270 100644
--- a/05-data.sql
+++ b/05-data.sql
@@ -20,7 +20,7 @@ INSERT INTO location (location_type, storage_src_id, storage_dest_id) VALUES ('p
 
 
 /*
-   Initialization test for vospace node table; for now owner_id and group_id are set equal to the rap_id
+   Initialization test for vospace node table; for now owner_id and group_id are set equal to the user_id
 */
 
 
@@ -40,6 +40,6 @@ INSERT INTO node (parent_path, parent_relative_path, name, type, owner_id, creat
    Initialization test for vospace users table
 */
 
-INSERT INTO Users (rap_id, user_name, e_mail) VALUES ('3354', 'cristiano.urban', 'cristiano.urban@inaf.it');
-INSERT INTO Users (rap_id, user_name, e_mail) VALUES ('2048', 'sara.bertocco', 'sara.bertocco@inaf.it');
-INSERT INTO Users (rap_id, user_name, e_mail) VALUES ('2386', 'sonia.zorba', 'sonia.zorba@inaf.it');
+INSERT INTO Users (user_id, user_name, e_mail) VALUES ('3354', 'cristiano.urban', 'cristiano.urban@inaf.it');
+INSERT INTO Users (user_id, user_name, e_mail) VALUES ('2048', 'sara.bertocco', 'sara.bertocco@inaf.it');
+INSERT INTO Users (user_id, user_name, e_mail) VALUES ('2386', 'sonia.zorba', 'sonia.zorba@inaf.it');
-- 
GitLab