Sunbird UCI
  • Overview of Sunbird UCI
  • 📙Learn
    • UCI use cases
    • UCI for Education(Case study)
    • Tech Overview
      • Glossary
      • High-level Architecture Design
      • Design Principles
      • Standards
  • 🚀Use
    • Choose your Persona
    • Adopter - Install and use UCI
      • Pre-requisites, Installation Setup, Post Setup
      • Setting up your very first conversation
      • API Documentation
      • Data Exhaust and Analytics
      • Posthog Event
      • Whatsapp (Netcore)
      • Environment Variables
    • Developer - Contribute to UCI
      • UCI Basics
        • XMessage Specification
        • Transformers
          • ODK Transformer
            • Interactive-Messages
            • Media Messages
            • Location
          • Broadcast Transformer
        • Adapters
          • Firebase Notification Adapter
        • User Segment
        • Schema Overview
          • UCI Core Schema
            • XMessage Schema
            • Assessment DB Schema
          • UCI API Schema
      • Development environment
        • Backend Setup
        • Setting up IDE
        • Environment variable setup
        • Debug services
        • Build and Execute UCI
        • Frontend Setup (Admin Console)
        • Frontend Setup (PWA)
        • Transport Socket
      • API Documentation
        • Bot Setup APIs
        • History APIs
        • Direct Message APIs
        • Vault APIs
      • Database Schema
        • Cassandra Xmessage Database
        • Postgres Forms Database
        • Postgres User Analytics Database
        • Postgres Comms Database
      • Contribution Guide
        • Your first PR
        • Contribute an Adapter
        • Adapter Implementation
        • Create a Transformer
    • Contact the administrator
  • ✅Releases
    • Release V2
  • 🤝Engage
    • Software License
    • Acceptable Use Policy
    • Terms of Service
    • Source Code
    • Discussion Forum
Powered by GitBook
On this page
  • Introduction
  • 1. Table Schema
  • 2. Table Schema
  • 3. Table Schema

Was this helpful?

Edit on GitHub
  1. Use
  2. Developer - Contribute to UCI
  3. Database Schema

Postgres Forms Database

Introduction

This database is built on PostgreSQL and manages all ODK questions and answers, as well as their respective states. It tracks the questions posed to users and the anticipated follow-up inquiries.

1. Table Schema

  • Table Name - question

Column Name
Type
Description

id

UUID

Unique identifier for the record.

form_id

Varchar

This is odk formid, while we create odk form we added in the xml.

form_version

Varchar

This is odk form version, while we create odk form we added in the xml.

x_path

Varchar

This is path of question get from odk form.

question_type

Varchar

Type of the question like String, Single Select and Multi-Select.

meta

Jsonb

JSON data structure its contain the question which we sent to our users.

updated

Timestamp

Timestamp indicating when the record was last updated.

created

Timestamp

Timestamp indicating when the record was created.

---

2. Table Schema

  • Table Name - xmessage

Column Name
Type
Description

id

Long

Unique identifier for the record.

phone_no

Varchar

Phone number associated with the user.

message

Varchar

The content of the message which we sent to user.

is_last_message

Boolean

A boolean flag indicating if this is the last response in a series of messages.

---

3. Table Schema

  • Table Name - xmessage_state

Column Name
Type
Description

id

Long

Unique identifier for the record.

phoneNo

Varchar

Phone number associated with the user.

state

Text

XML data for previous question.

previous_path

Varchar

Path or location of the previous question.

bot_form_name

Varchar

Name or identifier of the bot form associated with the bot.

---

PreviousCassandra Xmessage DatabaseNextPostgres User Analytics Database

Last updated 1 year ago

Was this helpful?

🚀