feat: add pin model
This commit is contained in:
parent
f73a04bb2e
commit
aaa2c17212
|
@ -0,0 +1,12 @@
|
|||
package model
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Pin struct {
|
||||
gorm.Model
|
||||
ID uint `gorm:"primaryKey"`
|
||||
AccountID uint `gorm:"uniqueIndex:idx_account_upload"`
|
||||
UploadID uint `gorm:"uniqueIndex:idx_account_upload"`
|
||||
Account Account
|
||||
Upload Upload
|
||||
}
|
Loading…
Reference in New Issue