git feature
This commit is contained in:
15
server/internal/models/staff_github.go
Normal file
15
server/internal/models/staff_github.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
// StaffGitHubAuth — token OAuth GitHub của từng giáo viên
|
||||
type StaffGitHubAuth struct {
|
||||
StaffID uint `gorm:"primaryKey;column:staff_id" json:"staffId"`
|
||||
GitHubLogin string `gorm:"column:github_login;size:128;not null" json:"githubLogin"`
|
||||
AccessTokenEnc string `gorm:"column:access_token_enc;type:text;not null" json:"-"`
|
||||
Scope string `gorm:"column:scope;size:255" json:"scope"`
|
||||
ConnectedAt time.Time `gorm:"column:connected_at;not null" json:"connectedAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
func (StaffGitHubAuth) TableName() string { return "staff_github_auth" }
|
||||
Reference in New Issue
Block a user