-
Notifications
You must be signed in to change notification settings - Fork 0
docs: add database design doc #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d7bc958
docs: add database design doc
ramraut-osm d378555
Update apps/api/docs/database-design.md
ramraut-osm 52b936f
Update apps/api/docs/database-design.md
ramraut-osm 169ecca
Update apps/api/docs/database-design.md
ramraut-osm bbbfd34
Update apps/api/docs/database-design.md
ramraut-osm 02964ba
Update apps/api/docs/database-design.md
ramraut-osm 4e2ca8f
Update apps/api/docs/database-design.md
ramraut-osm 95758a7
Update apps/api/docs/database-design.md
ramraut-osm 6b3f007
docs: update database design doc
ramraut-osm dcedb7d
docs: update database design doc
ramraut-osm dc5b62e
docs: update database design doc
ramraut-osm 8e639b4
Update apps/api/docs/database-design.md
ramraut-osm 03485a1
Merge branch 'main' into REST-527New
xixas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# **Database Design** | ||
|
||
This document provides a comprehensive and structured overview of the database design for Transcript Summarization App. | ||
|
||
It serves as a reference guide for stakeholders, including developers, database administrators, project managers, and other parties involved in the development, maintenance, and understanding of the application's database. | ||
|
||
The tables discussed below will be created as part of the database migration. | ||
|
||
## **Database Schema** | ||
|
||
The database schema consists of the following 3 tables: | ||
|
||
- **user_files :** Contains details about all the user uploaded files with their Task IDs. | ||
ramraut-osm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
- **job_logs** : Contains details about the queue system-related data, such as job metadata and status. | ||
ramraut-osm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
This schema can be visualized in the following image: | ||
 | ||
|
||
## **Data Dictionary** | ||
|
||
**user_files** | ||
ramraut-osm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
| Attribute | Data Type | Not Null | Default | Description | | ||
| --- | --- | --- | --- | --- | | ||
| task_id | int(11) | True | | Primary key, unique identifier for the uploaded record | | ||
| input_file_path | varchar(255) | | | File path of user uploaded file | | ||
| output_file_path | varchar(255) | | | File path of summarized file stored in server after successful processing | | ||
xixas marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| output_file_name | varchar(255) | | | File name of summarized file stored in server after successful processing | | ||
| status | tinyint | True | | Stores the response status code of the response | | ||
ramraut-osm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| created_on | timestamp | True | current_timestamp() | Stores the timestamp for the creation of the record | | ||
| created_by | Varchar(45) | True | admin | Stores the details of creator of the record | | ||
| modified_on | timestamp | | | Stores the timestamp for the last update to the record | | ||
| modified_by | Varchar(45) | | | Stores the details of Modifier of the record | | ||
ramraut-osm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
**job_logs** | ||
ramraut-osm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
| Attribute | Data Type | Not Null | Default | Description | | ||
| --- | --- | --- | --- | --- | | ||
| job_id | int(11) | True | | Primary key, unique identifier for the uploaded record | | ||
| task_id | varchar(255) | True | | Stores the ID value for related task_id | | ||
| job_status | enum | True | | Stores the job status for related job_id | | ||
ramraut-osm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| input_file | varchar(255) | | | File path of user uploaded file | | ||
xixas marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| output_file | varchar(255) | | | File path of summarized file stored in server after successful processing | | ||
| status | tinyint | True | | Stores the active/inactive status of the record | | ||
| created_on | timestamp | True | current_timestamp() | Stores the timestamp for the creation of the record | | ||
| created_by | Varchar(45) | True | admin | Stores the details of creator of the record | | ||
| modified_on | timestamp | | | Stores the timestamp for the last update to the record | | ||
ramraut-osm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| modified_by | Varchar(45) | | | Stores the details of Modifier of the record | | ||
ramraut-osm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.