Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Backend: Add sqlalchemy database models #42

Merged
merged 12 commits into from
Oct 31, 2023
Merged

Backend: Add sqlalchemy database models #42

merged 12 commits into from
Oct 31, 2023

Conversation

OxygenCobalt
Copy link
Collaborator

Required db module to be split off to avoid ciruclar dependency.

Required db module to be split off to avoid ciruclar dependency.
@OxygenCobalt OxygenCobalt requested review from a team October 24, 2023 23:25
@grantlemons grantlemons self-requested a review October 24, 2023 23:45
@grantlemons
Copy link
Contributor

you're using declarative base, but the imperative style mapping as defined in the docs

https://docs.sqlalchemy.org/en/20/orm/mapping_styles.html#declarative-mapping

if it works, I guess that's fine, but if our project wants to stick to being totally idiomatic we might want to use declarative in it's entirety.

backend/src/model/alert.py Outdated Show resolved Hide resolved
backend/src/model/route.py Outdated Show resolved Hide resolved
backend/src/model/route_van.py Outdated Show resolved Hide resolved
backend/src/model/stop.py Show resolved Hide resolved
backend/src/model/van.py Show resolved Hide resolved
backend/src/db.py Outdated Show resolved Hide resolved
@grantlemons
Copy link
Contributor

will review after tyler's requested changes are resolved

@OxygenCobalt OxygenCobalt requested a review from tbwrigh October 31, 2023 23:12
@ezrichards ezrichards merged commit 191694b into main Oct 31, 2023
2 checks passed
@ezrichards ezrichards deleted the models branch October 31, 2023 23:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants