Skip to content

Commit

Permalink
fix(model): delete index in primarykey
Browse files Browse the repository at this point in the history
  • Loading branch information
Maple-pro committed Aug 21, 2023
1 parent 1eeaf58 commit c7500dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/video.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

// Video 视频表
type Video struct {
ID uint32 `gorm:"not null;index:video;primarykey;autoIncrement"`
ID uint32 `gorm:"not null;primarykey;autoIncrement"`
Title string `json:"title" gorm:"not null;"`
FileName string `json:"play_name" gorm:"not null;"`
CoverName string `json:"cover_name" gorm:"not null;"`
Expand Down

0 comments on commit c7500dc

Please sign in to comment.