Protocol Deviation Digital Healthcare Product
  • INTRODUCTION
    • Purpose
    • Scope
    • Deployment
  • USER GUIDE
    • User Login
    • User Roles and Permissions
      • Administration
        • User Management
        • Team Management
        • Study Management
        • Audit Trail
    • Data Files
      • Data File Requirements
      • Spreadsheets
        • Using the Spreadsheet for AI Categorisation
        • Using the Spreadsheet for Manual Categorisation
    • Data Upload
      • Audit Trail
      • Data Trail
      • Data Categorisation
    • Data Visualisation
      • Team Visualisations
      • Study Visualisations
    • Maintenance and Support
      • Troubleshooting for users
      • Support contact information
  • TECHNICAL DOCUMENTATION
    • Web App
      • Design
        • Database
        • Backend
        • Frontend
      • Installation
    • AI Classifier
      • User documentation
      • Administrator documentation
      • Code documentation
    • Developer Guide
      • Requirements
      • Installation
      • Builds
      • Database
Powered by GitBook
On this page
  • SQLite
  • PostgreSQL
  1. TECHNICAL DOCUMENTATION
  2. Web App
  3. Design

Database

This document describes the database configuration and setup.

PreviousDesignNextBackend

Last updated 2 months ago

The schemas are near identical for both SQLite and PostgreSQL configurations. The only exception is that PostgreSQL uses an enumeration type for user roles. You can find the database schema . An image of the schema is also attached below.

SQLite

For local deployment, the database comes with the jar file. The database has seeded data to allow the user to use the application. It creates a local user who is part of the 'all data' team. This allows them to visualise and manage all uploaded data. There are no admin controls for this configuration as the intended purpose is for a single user.

PostgreSQL

For remote deployment, a database called "qadata'' must be created on port 5432, where you can add the schema files. They can be found within the db folder in the repository.

To configure

here