feat: add pin model

This commit is contained in:
Derrick Hammer 2023-05-04 04:13:27 -04:00
parent f73a04bb2e
commit aaa2c17212
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 12 additions and 0 deletions

12
model/pin.go Normal file
View File

@ -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
}