You've already forked golang-base-project
Initial commit
This commit is contained in:
16
models/token.go
Normal file
16
models/token.go
Normal file
@ -0,0 +1,16 @@
|
||||
package models
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Token struct {
|
||||
gorm.Model
|
||||
Value string
|
||||
Type string
|
||||
ModelID int
|
||||
ModelType string
|
||||
}
|
||||
|
||||
const (
|
||||
TokenUserActivation string = "user_activation"
|
||||
TokenPasswordReset string = "password_reset"
|
||||
)
|
Reference in New Issue
Block a user