* if a request has no session cookie, a new user, session and wallet is created and session cookie is set * if a request has a session cookie and session exists in db, we will fetch user and wallet from db * this means that we have a user and wallet during each render without any login required
12 lines
152 B
Go
12 lines
152 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type User struct {
|
|
Id int
|
|
Name string
|
|
CreatedAt time.Time
|
|
LnPubkey string
|
|
NostrPubkey string
|
|
}
|