add crud for users
This commit is contained in:
1 parent
4e608d872a
commit
678147c9ed
19 files changed
+439
-17
No files matched your search
@@ -0,0 +1,12 @@
|
||||
package structure
|
||||
|
||||
import "time"
|
||||
|
||||
type Token struct {
|
||||
TableName string `sql:"admin_service.tokens" json:"-"`
|
||||
Id int64 `json:"id"`
|
||||
UserId int64 `json:"userId"`
|
||||
Token string `json:"token"`
|
||||
ExpiredAt *time.Time `json:"expiredAt"`
|
||||
CreatedAt time.Time `json:"createdAt" sql:",null"`
|
||||
}
|
||||
Reference in new issue
Block a user