Files
mayfly-go/server/internal/auth/domain/entity/oauth2.go

21 lines
436 B
Go
Raw Normal View History

package entity
2023-07-21 22:29:41 +08:00
import (
"mayfly-go/pkg/model"
"time"
)
2023-07-22 20:51:46 +08:00
type Oauth2Account struct {
2023-07-21 22:29:41 +08:00
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"`
}
2023-07-22 20:51:46 +08:00
func (Oauth2Account) TableName() string {
return "t_oauth2_account"
}