portal/model/pin.go

13 lines
277 B
Go
Raw Permalink Normal View History

2023-05-04 08:13:27 +00:00
package model
import "gorm.io/gorm"
type Pin struct {
gorm.Model
ID uint `gorm:"primaryKey" gorm:"AUTO_INCREMENT"`
2023-05-04 08:13:27 +00:00
AccountID uint `gorm:"uniqueIndex:idx_account_upload"`
UploadID uint `gorm:"uniqueIndex:idx_account_upload"`
Account Account
Upload Upload
}