Database Design Document LocADoc
Database Design Document LocADoc
LocAdoc
Database Design Document (DDD)
Version 2.0
Revision History
Date Version Description Author
27/09/2017 2.0 Made modification to the structure of both NoSQL Abhi Jay Krishan
database and SQLite database.
Database Design Document (DDD) for LocAdoc
Table of Contents
1 INTRODUCTION ........................................................................................................................................1
1.1 DOCUMENT OBJECTIVES ......................................................................................................................... 1
1.2 INTENDED AUDIENCES ............................................................................................................................ 1
1.3 REFERENCES ........................................................................................................................................... 1
3 REFERENCES .............................................................................................................................................7
1 Introduction
The section introduces the Database Design Document (DDD) for LocAdoc to its readers.
1.3 References
This DDD refers to the following references:
• Software requirement specification: SRS_LocAdoc.docx
• Project Proposal: Project_Proposal_SS173D_V1.docx
1|Page
Database Design Document (DDD) for LocAdoc
2|Page
Database Design Document (DDD) for LocAdoc
The diagram given above visualize the NoSQL database. This design was developed after creating a XML
schema (Appendix 1) and using an online converter. [2]
The user element will hold all the user details which be mapped to there to his password and files. He will
also have an option to set an user administration area.
This object diagram shows a sample data set and their relationships with other objects. For the propose of
the object please refer to the section 2.2.3.
3|Page
Database Design Document (DDD) for LocAdoc
Email ID (primary key) string Min :1, Max:1 Email ID of the user
Name String Name of the user
Password (Foreign Key) Integer Min :1, Max:1 The password of the user
LogedIn String Used to flag if the person is
currently logged in a
devise. So the second login
can be detected.
InstanceID String Stores the application
installation instance.
4|Page
Database Design Document (DDD) for LocAdoc
5|Page
Database Design Document (DDD) for LocAdoc
2.2.2 Description
This diagram displays the conceptual model of the SQLite database. This database will be created after the
it has imported the user’s data. The user session will have the user’s details who is currently logged in. The
user will have a password and an admin area where he can make changes to his account such as changing
password (optional up to user to set it up). Each user will have zero or more files. The local database will
only hold the Area and file information. All the data other than the primary and foreign keys will be stored
after encryption using user’s password. The database contents will be decrypted when user makes request.
6|Page
Database Design Document (DDD) for LocAdoc
2.2.4 Relations
From Table To Table Relation
User Area A user may set an admin area.
Files Area A file belongs to an area.
User File A user may saved more than one
file.
File Password A file will be encrypted using a
password.
User Password A user has a password.
3 References
7|Page
Database Design Document (DDD) for LocAdoc
8|Page
Database Design Document (DDD) for LocAdoc
<xsd:key name="PK_File">
<xsd:selector xpath="User/File"/>
<xsd:field xpath="CurrentFileName"/>
</xsd:key>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:key name="PK_AREA">
<xsd:selector xpath="User/File/Area"/>
<xsd:field xpath="AreaID"/>
</xsd:key>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:key name="PK_USER">
<xsd:selector xpath="User"/>
<xsd:field xpath="EmailID"/>
</xsd:key>
</xsd:element>
</xsd:schema>
9|Page