16 lines
658 B
Go
16 lines
658 B
Go
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" }
|