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.
		
		
		
		
		
			
		
			
				
	
	
		
			16 lines
		
	
	
		
			372 B
		
	
	
	
		
			Go
		
	
			
		
		
	
	
			16 lines
		
	
	
		
			372 B
		
	
	
	
		
			Go
		
	
package model
 | 
						|
 | 
						|
import (
 | 
						|
	"time"
 | 
						|
 | 
						|
	"github.com/synctv-org/synctv/internal/provider"
 | 
						|
)
 | 
						|
 | 
						|
type UserProvider struct {
 | 
						|
	Provider       provider.OAuth2Provider `gorm:"not null;primarykey"`
 | 
						|
	ProviderUserID uint                    `gorm:"not null;primarykey;autoIncrement:false"`
 | 
						|
	CreatedAt      time.Time
 | 
						|
	UpdatedAt      time.Time
 | 
						|
	UserID         string `gorm:"not null;index"`
 | 
						|
}
 |