Discover Packages
bitbucket.org/waosverse/waosverse-api
internal
model
package
Version:
v0.0.0-...-13db65c
Opens a new window with list of versions in this module.
Published: Apr 16, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type AccessToken struct {
bun .BaseModel `bun:"table:access_token,alias:at"`
Id int64 `bun:",pk,autoincrement"`
UserId int64 `bun:",notnull"`
TokenHash string `bun:",notnull"`
Expires time .Time `bun:",notnull"`
Created time .Time `bun:",notnull"`
Modified time .Time `bun:",notnull"`
}
type User struct {
bun .BaseModel `bun:"table:user,alias:u"`
Id int64 `bun:",pk,autoincrement"`
Name string `bun:",notnull"`
Email string `bun:",notnull,unique"`
Created time .Time `bun:",notnull"`
Modified time .Time `bun:",notnull"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.