add logics
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
ignores: [] # ignore tables
|
||||
types:
|
||||
kube_pods: # table name
|
||||
labels: backend/pkg/pg.JsonMap # column type
|
||||
users: # table name
|
||||
oauth: backend/pkg/pg.UserOAuth
|
||||
|
||||
@@ -8,15 +8,16 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"backend/pkg/pg"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Users struct {
|
||||
ID int64 `sql:"primary_key" json:"id"`
|
||||
OpenID string `json:"open_id"`
|
||||
UnionID *string `json:"union_id"`
|
||||
OAuth *string `json:"oauth"`
|
||||
ExpireIn time.Time `json:"expire_in"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
ID int64 `sql:"primary_key" json:"id"`
|
||||
OpenID string `json:"open_id"`
|
||||
UnionID *string `json:"union_id"`
|
||||
OAuth pg.UserOAuth `json:"oauth"`
|
||||
ExpireIn time.Time `json:"expire_in"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user