portal/db/models/dnslink.go

16 lines
261 B
Go
Raw Permalink Normal View History

2024-02-25 14:47:40 +00:00
package models
import "gorm.io/gorm"
func init() {
registerModel(&DNSLink{})
}
2024-02-25 14:47:40 +00:00
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
}