Files
mayfly-go/server/internal/sys/domain/entity/auth.go
2023-07-21 22:29:41 +08:00

21 lines
433 B
Go

package entity
import (
"mayfly-go/pkg/model"
"time"
)
type OAuthAccount struct {
model.DeletedModel
AccountId uint64 `json:"accountId" gorm:"column:account_id;index:account_id,unique"`
Identity string `json:"identity" gorm:"column:identity;index:identity,unique"`
CreateTime *time.Time `json:"createTime"`
UpdateTime *time.Time `json:"updateTime"`
}
func (OAuthAccount) TableName() string {
return "t_oauth_account"
}