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

21 lines
529 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:"not null;column:account_id;index:account_id,unique;comment:账号ID"`
Identity string `json:"identity" gorm:"size:64;column:identity;index:idx_identity,unique;comment:身份标识"`
CreateTime *time.Time `json:"createTime" gorm:"not null;"`
UpdateTime *time.Time `json:"updateTime" gorm:"not null;"`
}
2023-07-22 20:51:46 +08:00
func (Oauth2Account) TableName() string {
return "t_oauth2_account"
}