-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d76609
commit 23a9716
Showing
3 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
package model | ||
|
||
type DishNameTag struct { | ||
DishNameTag int64 `gorm:"primary_key;AUTO_INCREMENT;column:DishNameTag;type:int;not null;" json:"DishNameTag"` | ||
CorrespondingRating int64 `gorm:"foreignKey:dish;column:correspondingRating;type:int;not null;" json:"correspondingRating"` | ||
Points int32 `gorm:"column:points;type:int;not null;" json:"points"` | ||
TagNameID int64 `gorm:"foreignKey:tagRatingID;column:tagNameID;type:int;not null;" json:"tagnameID"` | ||
DishNameTag int64 `gorm:"primary_key;AUTO_INCREMENT;column:DishNameTag;not null;"` | ||
RatingID int64 `gorm:"foreignKey:dish;column:correspondingRating;not null;"` | ||
//Rating CanteenRating | ||
TagNameID int64 `gorm:"foreignKey:tagRatingID;column:tagNameID;not null;"` | ||
//TagName DishNameTag | ||
Points int32 `gorm:"not null;"` | ||
} |