Skip to content

Commit

Permalink
seed update
Browse files Browse the repository at this point in the history
  • Loading branch information
miray-mustafov committed Jun 10, 2024
1 parent 05040ec commit a6f1aee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Python back-end web application, powered by FastAPI. Designed to implement an e-
**Email Notification:** [Mailjet API](https://dev.mailjet.com/)

## Installion and setup
#### For setup with Docker check docker-production branch and README

### 1. Clone the project using HTTPS

Expand Down
4 changes: 4 additions & 0 deletions mariadb_seed.sql
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,7 @@ VALUES (1,1),(1,2),(2,5),(3,3),(3,4);
-- enroll 2 students to course 1
INSERT INTO `poodle`.`students_courses` (`student_id`, `course_id`,`status`) VALUES ('4', '1', '2');
INSERT INTO `poodle`.`students_courses` (`student_id`, `course_id`,`status`) VALUES ('5', '1', '2');

-- rating seed
INSERT INTO `poodle`.`students_ratings` (`student_id`, `course_id`,`rating`) VALUES ('5', '1', 6);
UPDATE `poodle`.`courses` SET `rating` = 6, people_rated = 1 WHERE `course_id` = 1;

0 comments on commit a6f1aee

Please sign in to comment.