提交
This commit is contained in:
@@ -4,7 +4,7 @@ import "time"
|
||||
|
||||
// App 开放平台应用
|
||||
type App struct {
|
||||
ID uint64 `json:"id" gorm:"primaryKey;autoIncrement"`
|
||||
ID uint64 `json:"id" gorm:"primaryKey"`
|
||||
AppID string `json:"app_id" gorm:"uniqueIndex;size:64;not null"`
|
||||
AppSecret string `json:"-" gorm:"size:128;not null"`
|
||||
AppName string `json:"app_name" gorm:"size:128;not null"`
|
||||
@@ -20,7 +20,7 @@ func (App) TableName() string {
|
||||
// AppUser 应用授权用户
|
||||
// 只有绑定的用户才能通过该应用进行SSO登录
|
||||
type AppUser struct {
|
||||
ID uint64 `json:"id" gorm:"primaryKey;autoIncrement"`
|
||||
ID uint64 `json:"id" gorm:"primaryKey"`
|
||||
AppID uint64 `json:"app_id" gorm:"index;not null"` // 应用ID
|
||||
UserID uint64 `json:"user_id" gorm:"index;not null"` // 用户ID
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
|
||||
Reference in New Issue
Block a user