add crud for users

This commit is contained in:
Andrey Savchuk committed 2018-04-27 20:18:12 +03:00
1 parent 4e608d872a
commit 678147c9ed
19 files changed
+439 -17

No files matched your search

+12
View File
@@ -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"`
}