-
Notifications
You must be signed in to change notification settings - Fork 0
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
f468c3f
commit 1c57793
Showing
2 changed files
with
28 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
package model | ||
|
||
import "time" | ||
|
||
type FirstpartAnswer string | ||
|
||
type SecondPartAnswer string | ||
|
||
type Feedback struct { | ||
User User `gorm:"foreignKey:UserId;references:Id"` | ||
UserId int `gorm:""` | ||
Q1 FirstpartAnswer `gorm:""` | ||
Q2 FirstpartAnswer `gorm:""` | ||
Q3 FirstpartAnswer `gorm:""` | ||
Q4 FirstpartAnswer `gorm:""` | ||
Q5 FirstpartAnswer `gorm:""` | ||
Q6 FirstpartAnswer `gorm:""` | ||
Q7 SecondPartAnswer `gorm:""` | ||
Q8 SecondPartAnswer `gorm:""` | ||
Q9 SecondPartAnswer `gorm:""` | ||
Q10 SecondPartAnswer `gorm:""` | ||
Q11 SecondPartAnswer `gorm:""` | ||
Q12 SecondPartAnswer `gorm:""` | ||
Q13 SecondPartAnswer `gorm:""` | ||
Q14 SecondPartAnswer `gorm:""` | ||
Q15 SecondPartAnswer `gorm:""` | ||
Q16 SecondPartAnswer `gorm:""` | ||
Q17 SecondPartAnswer `gorm:""` | ||
Q18 SecondPartAnswer `gorm:""` | ||
Q19 SecondPartAnswer `gorm:""` | ||
Comment string `gorm:""` | ||
User User `gorm:"foreignKey:UserId;references:Id"` | ||
UserId int `gorm:""` | ||
CreatedAt time.Time `gorm:"autoCreateTime"` | ||
UpdatedAt time.Time `gorm:"autoUpdateTime:milli"` | ||
Q1 FirstpartAnswer `gorm:""` | ||
Q2 FirstpartAnswer `gorm:""` | ||
Q3 FirstpartAnswer `gorm:""` | ||
Q4 FirstpartAnswer `gorm:""` | ||
Q5 FirstpartAnswer `gorm:""` | ||
Q6 FirstpartAnswer `gorm:""` | ||
Q7 SecondPartAnswer `gorm:""` | ||
Q8 SecondPartAnswer `gorm:""` | ||
Q9 SecondPartAnswer `gorm:""` | ||
Q10 SecondPartAnswer `gorm:""` | ||
Q11 SecondPartAnswer `gorm:""` | ||
Q12 SecondPartAnswer `gorm:""` | ||
Q13 SecondPartAnswer `gorm:""` | ||
Q14 SecondPartAnswer `gorm:""` | ||
Q15 SecondPartAnswer `gorm:""` | ||
Q16 SecondPartAnswer `gorm:""` | ||
Q17 SecondPartAnswer `gorm:""` | ||
Q18 SecondPartAnswer `gorm:""` | ||
Q19 SecondPartAnswer `gorm:""` | ||
Comment string `gorm:""` | ||
} |
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