mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
366 B
Go
14 lines
366 B
Go
package model
|
|
|
|
import (
|
|
"github.com/synctv-org/synctv/internal/provider"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type UserProvider struct {
|
|
gorm.Model
|
|
UserID uint `gorm:"not null"`
|
|
Provider provider.OAuth2Provider `gorm:"not null;uniqueIndex:provider_user_id"`
|
|
ProviderUserID uint `gorm:"not null;uniqueIndex:provider_user_id"`
|
|
}
|