Skip to content

Commit

Permalink
tested different rating tags
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Aug 23, 2024
1 parent 2a44388 commit 7d76609
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions server/model/canteen_rating_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package model
type CanteenRatingTag struct {
CanteenRatingTag int64 `gorm:"primary_key;AUTO_INCREMENT;column:CafeteriaRatingTag"`
RatingID int64 `gorm:"column:corresponding_rating_id"`
Rating CanteenRating
TagID int64 `gorm:"column:tag_id"`
Tag CanteenRatingTagOption
Points int32 `gorm:"not null"`
//Rating CanteenRating
TagID int64 `gorm:"column:tag_id"`
//Tag CanteenRatingTagOption
Points int32 `gorm:"not null"`
}
8 changes: 4 additions & 4 deletions server/model/dish_rating_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package model
type DishRatingTag struct {
DishRatingTag int64 `gorm:"primary_key;AUTO_INCREMENT;column:dishRatingTag"`
RatingID int64 `gorm:"column:parentRating;not null"`
Rating CanteenRating
TagID int64 `gorm:"column:tagID;not null"`
Tag CanteenRatingTagOption
Points int32 `gorm:"not null"`
//Rating CanteenRating
TagID int64 `gorm:"column:tagID;not null"`
//Tag CanteenRatingTagOption
Points int32 `gorm:"not null"`
}

0 comments on commit 7d76609

Please sign in to comment.