2023-07-21 21:18:31 +08:00
|
|
|
package entity
|
|
|
|
|
|
2023-07-21 22:29:41 +08:00
|
|
|
import (
|
|
|
|
|
"mayfly-go/pkg/model"
|
|
|
|
|
"time"
|
|
|
|
|
)
|
2023-07-21 21:18:31 +08:00
|
|
|
|
2023-07-22 20:51:46 +08:00
|
|
|
type Oauth2Account struct {
|
2023-07-21 22:29:41 +08:00
|
|
|
model.DeletedModel
|
2023-07-21 21:18:31 +08:00
|
|
|
|
2025-02-13 21:11:23 +08:00
|
|
|
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:身份标识"`
|
2023-07-21 21:18:31 +08:00
|
|
|
|
2025-02-13 21:11:23 +08:00
|
|
|
CreateTime *time.Time `json:"createTime" gorm:"not null;"`
|
|
|
|
|
UpdateTime *time.Time `json:"updateTime" gorm:"not null;"`
|
2023-07-21 21:18:31 +08:00
|
|
|
}
|
|
|
|
|
|
2023-07-22 20:51:46 +08:00
|
|
|
func (Oauth2Account) TableName() string {
|
|
|
|
|
return "t_oauth2_account"
|
2023-07-21 21:18:31 +08:00
|
|
|
}
|