Add provider table.

This commit is contained in:
Yang Luo
2021-06-14 19:09:04 +08:00
parent 2e68f8c6d5
commit 9fe310f2b7
5 changed files with 206 additions and 24 deletions

View File

@ -19,6 +19,13 @@ import (
"xorm.io/core"
)
type ProviderItem struct {
Name string `json:"name"`
CanSignUp bool `json:"canSignUp"`
CanSignIn bool `json:"canSignIn"`
CanUnbind bool `json:"canUnbind"`
}
type Provider struct {
Owner string `xorm:"varchar(100) notnull pk" json:"owner"`
Name string `xorm:"varchar(100) notnull pk" json:"name"`