From 0c8c72807dfbb239b37674434c5f39a10e50cbe4 Mon Sep 17 00:00:00 2001
From: Nilesh Bamne <nilesh.bamne@ayanworks.com>
Date: Fri, 11 Mar 2022 13:39:39 +0530
Subject: [PATCH] Moved user details to User table and added Created by and
 Updated by.

---
 aw-design-diagram/er-diagram.md | 26 +++++++++++++++++++++++---
 1 file changed, 23 insertions(+), 3 deletions(-)

diff --git a/aw-design-diagram/er-diagram.md b/aw-design-diagram/er-diagram.md
index 1e8124f..19f6062 100644
--- a/aw-design-diagram/er-diagram.md
+++ b/aw-design-diagram/er-diagram.md
@@ -39,8 +39,6 @@
 
         Participant {
             uuid id
-            string email
-            string password
             string name
             string address
             string website
@@ -52,13 +50,16 @@
 
         User {
             uuid id
-            string username
+            string email
             string password
             string otp_id
             Boolean is_verified
             Role role
+            uuid participant_id
             DateTime created_date
+            uuid created_by
             DateTime updated_date
+            uuid updated_by
         }
 
         Agent {
@@ -70,7 +71,9 @@
             string wallet_name
             string status
             DateTime created_date
+            uuid created_by
             DateTime updated_date
+            uuid updated_by
         }
 
         Ledger {
@@ -78,6 +81,7 @@
             uuid agent_id
             string network
             Blob genesis_file
+            string environment
             DateTime created_date
             DateTime updated_date
         }
@@ -88,7 +92,9 @@
             string participant_did
             string name
             DateTime created_date
+            uuid created_by
             DateTime updated_date
+            uuid updated_by
         }
 
         Attributes {
@@ -96,7 +102,9 @@
             string schemaID
             string name
             DateTime created_date
+            uuid created_by
             DateTime updated_date
+            uuid updated_by
         }
 
         Credential {
@@ -104,7 +112,9 @@
             string participant_did
             string principal_did
             DateTime created_date
+            uuid created_by
             DateTime updated_date
+            uuid updated_by
         }
 
         CredentialDef {
@@ -112,8 +122,12 @@
             string cred_def_id
             string schemaID
             string name
+            Boolean is_auto_issue
+            Boolean is_revokable
             DateTime created_date
+            uuid created_by
             DateTime updated_date
+            uuid updated_by
         }
 
         Connection {
@@ -124,7 +138,9 @@
             string their_did
             string their_label
             DateTime created_date
+            uuid created_by
             DateTime updated_date
+            uuid updated_by
         }
 
         Proof {
@@ -134,7 +150,9 @@
             string participant_did
             string their_did
             DateTime created_date
+            uuid created_by
             DateTime updated_date
+            uuid updated_by
         }
 
         ProofAttributes {
@@ -142,6 +160,8 @@
             string proof_id
             string attribute_id
             DateTime created_date
+            uuid created_by
             DateTime updated_date
+            uuid updated_by
         }
 ```
-- 
GitLab