Ran
|
Files
5
|
Run time
0s
|
Badge
Embed ▾
README BADGES
|
push
github
Create migration files, Add users model & controller, Query from database (#28) * Create Migration Files * Update connect_test.go replaced constants.DB_DEFAULT_NAME with "sa_stories" * migrate down (rollback) section * update migration files to to support ORM capabilities of GORM. * edit story struct * edit stories model * edit users model * edit users model * add users test * get user from userID * users controller link to database * Edit Stories Controller * Edit Migration Files * Edit Migration Files * Edit GetStory router * Clean Users Controller Code * Edit Stories Controller Code * Edit Migration Files * Edit Model File * Query database from model * change JSON to camelCase * removed error handling from GetUserByID and GetStoryByID * Edit Migration Files * Abstract duplicated code * Separate Structs for Users and Stories File * userId type change to uuid * Revert userId type change to uuid * Update migration files to use aliases * Edit Stories migration file * Remove tigger function in migration files * Add Users and Stories view * Edit Structs to inherit from gorm * Edit Structs to inherit from gorm * edit stories migration file * Revert "Update connect_test.go" This reverts commit 05a615307. * Update table column names This improves semantic correctness as well as fixed a violation of GORM's convention to use all lowercase for column names. * Remove commented code --------- Co-authored-by: Rena Ng <e0772915@u.nus.edu> Co-authored-by: Richard Dominick <34370238+RichDom2185@users.noreply.github.com>
78 of 142 relevant lines covered (54.93%)
0.63 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|