mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
15 lines
357 B
Go
15 lines
357 B
Go
package models
|
|
|
|
type Wallet struct {
|
|
tableName struct{} `pg:"wallets,alias:wallets"`
|
|
BaseModel
|
|
Name string `json:"name" pg:"name"`
|
|
UserID string `json:"userId" pg:"user_id"`
|
|
User *UserReturnInfo `json:"user" pg:"rel:has-one,fk:user_id"`
|
|
}
|
|
|
|
type NewWalletBody struct {
|
|
Name string `json:"name"`
|
|
UserID string `json:"userId"`
|
|
}
|