diff --git a/docs/Document Database Schema.md b/docs/Document Database Schema.md new file mode 100644 index 0000000..880549d --- /dev/null +++ b/docs/Document Database Schema.md @@ -0,0 +1,26 @@ + +# Document Database Schema + +## Description + +This document provides comprehensive information about the database schema, including table structures, data types, relationships, and constraints. It focuses on the core tables related to document storage and management, as well as the storage schema. This documentation is crucial for developers and database administrators to understand how data is stored and related within the application, facilitating data modeling, querying, and maintenance of data integrity. + +## Target Audience + +* Developers +* Database Administrators + +## Database Schema + +This section details the structure of the key tables within the database. + +### Data Models + +#### 1. `documents` Table + +This table stores metadata about individual documents. + +* **Purpose:** Stores core information about each document. +* **Relationships:** Related to `document_sections` (one-to-many), `documents_with_storage_path` (one-to-one). + +| Column Name | Data Type | Constraints | Description . \ No newline at end of file