From e2f766db373a89f3b408e934e098d7bab9e269c2 Mon Sep 17 00:00:00 2001
From: Sonia Zorba <sonia.zorba@inaf.it>
Date: Thu, 8 Jul 2021 12:29:21 +0200
Subject: [PATCH] Moved comments before column definitions for uniformity

---
 00-tables.sql | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/00-tables.sql b/00-tables.sql
index f7b9820..0c20a82 100644
--- a/00-tables.sql
+++ b/00-tables.sql
@@ -42,19 +42,19 @@ CREATE TABLE node (
     tstamp_wrapper_dir     VARCHAR       default NULL,
     type                   NodeType      NOT NULL,
     location_id            SMALLINT      default NULL,
-    format                 VARCHAR       default NULL,
     -- format is used to distinguish between unstuctured (format=NULL) and structured nodes having a well defined format
-    async_trans            BOOLEAN       default false,
+    format                 VARCHAR       default NULL,
     -- async_trans tells us whether a node is hosted on a cold storage and has to be transferred asynchronously
+    async_trans            BOOLEAN       default false,
     sticky                 BOOLEAN       default false,
+    -- id of the blocking job running on the node (used to compute busy state)
     job_id                 VARCHAR       default NULL,
-    -- job_id will likely replace 'busy_state'
     creator_id             VARCHAR       default NULL,
     group_read             VARCHAR[]     default NULL,
     group_write            VARCHAR[]     default NULL,
     is_public              BOOLEAN       default NULL,
-    quota                  BIGINT        default NULL,
     -- total container quota (in bytes)
+    quota                  BIGINT        default NULL,
     content_type           VARCHAR       default NULL,
     content_encoding       VARCHAR       default NULL,
     content_length         BIGINT        default NULL,
@@ -80,18 +80,18 @@ CREATE TABLE deleted_node (
     tstamp_wrapper_dir     VARCHAR       default NULL,
     type                   NodeType      NOT NULL,
     location_id            SMALLINT      default NULL,
-    format                 VARCHAR       default NULL,
     -- format is used to distinguish between unstuctured (format=NULL) and structured nodes having a well defined format
-    async_trans            BOOLEAN       default NULL,
+    format                 VARCHAR       default NULL,
     -- async_trans tells us whether a node is hosted on a cold storage and has to be transferred asynchronously
+    async_trans            BOOLEAN       default NULL,
     sticky                 BOOLEAN       default false,
     job_id                 VARCHAR       default NULL,
     creator_id             VARCHAR       default NULL,
     group_read             VARCHAR[]     default NULL,
     group_write            VARCHAR[]     default NULL,
     is_public              BOOLEAN       default NULL,
-    quota                  BIGINT        default NULL,
     -- total container quota (in bytes)
+    quota                  BIGINT        default NULL,
     content_type           VARCHAR       default NULL,
     content_encoding       VARCHAR       default NULL,
     content_length         BIGINT        default NULL,
-- 
GitLab