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

Updated the database models with new tables #99

Merged
merged 12 commits into from
Jul 20, 2024
Merged

Updated the database models with new tables #99

merged 12 commits into from
Jul 20, 2024

Conversation

Armolas
Copy link
Contributor

@Armolas Armolas commented Jul 20, 2024

Addition:

  • Added tables for subscriptions, waitlist_users, blogs and jobs
  • created migrations for the added tables
  • Added is_active column to users table
  • created password_auth file in utils for hashing and validating passwords
  • created a JsonResponseDict class to enforce the recommended response convention
  • created a BaseModel to add the following methods to the models:
  • to_dict(): returns a dictionary representation of the model instance
  • get_all(): returns all objects of the model stored in the database
  • get_by_id(id: str): returns a single instance of the model whose id was passed as argument

@Armolas Armolas requested a review from Dev-wonderful July 20, 2024 00:31
@Dev-wonderful Dev-wonderful merged commit 0cbe91b into dev Jul 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants