Skip to content
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

Update Database Schemas #20

Merged
merged 7 commits into from
Jul 4, 2024
Merged

Update Database Schemas #20

merged 7 commits into from
Jul 4, 2024

Conversation

nrjadkry
Copy link
Collaborator

@nrjadkry nrjadkry commented Jul 2, 2024

Description

This pull request updates the database schemas in accordance with the design specifications outlined here DTM db design. by @spwoodcock

Changes:

  • Schema Modifications:

    • Updated tables and relationships as per the new design.
    • Revised column definitions and data types to match the latest specifications.
    • Implemented new indexing strategies for improved query performance.
  • New Tables:

    • Following new tables are added
      1. Drone
      2. DroneFlight
      3. TaskEvent
  • Data Migration:
    I have used alembic migration for this. We can remove this in the future if we felt like we dont need it. I have created an initial migration script as well.

@nrjadkry nrjadkry requested a review from spwoodcock July 2, 2024 09:13
@nrjadkry nrjadkry self-assigned this Jul 2, 2024
@nrjadkry nrjadkry added the backend Related to backend code label Jul 2, 2024
Copy link
Member

@spwoodcock spwoodcock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comments, otherwise great 👍

src/backend/app/db/db_models.py Outdated Show resolved Hide resolved
@nrjadkry nrjadkry requested a review from spwoodcock July 3, 2024 15:34
@nrjadkry nrjadkry merged commit af7d4ad into main Jul 4, 2024
1 check passed
@nrjadkry nrjadkry deleted the db_schemas branch July 22, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants