portal/db/models/dnslink.go

12 lines
217 B
Go
Raw Normal View History

2024-02-25 14:47:40 +00:00
package models
import "gorm.io/gorm"
type DNSLink struct {
gorm.Model
UserID uint `gorm:"uniqueIndex:idx_user_id_upload"`
User User
UploadID uint `gorm:"uniqueIndex:idx_user_id_upload"`
Upload Upload
}