Skip to content

Commit

Permalink
fixed the datamodels
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Aug 26, 2023
1 parent 3ca4a45 commit 9c27b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/model/crontab.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Crontab struct {
//[ 2] lastRun int null: false primary: false isArray: false auto: false col: int len: -1 default: [0]
LastRun int32 `gorm:"column:lastRun;type:int;default:0;" json:"last_run"`
//[ 3] type char(10) null: true primary: false isArray: false auto: false col: char len: 10 default: []
Type null.String `gorm:"column:type;type:enum ('news', 'mensa', 'chat', 'kino', 'roomfinder', 'ticketsale', 'alarm', 'fileDownload','dishNameDownload','averageRatingComputation', 'iosNotifications', 'iosActivityReset', 'canteenHeadCount');" json:"type"`
Type null.String `gorm:"column:type;type:enum ('news', 'mensa', 'kino', 'roomfinder', 'ticketsale', 'alarm', 'fileDownload','dishNameDownload','averageRatingComputation', 'iosNotifications', 'iosActivityReset', 'canteenHeadCount');" json:"type"`
//[ 4] id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
ID null.Int `gorm:"column:id;type:int;" json:"id"`
}

0 comments on commit 9c27b39

Please sign in to comment.