Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearQuery ¶
func Start ¶
func Start(ctx context.Context) (*embeddedpostgres.EmbeddedPostgres, error)
func Stop ¶
func Stop(pg *embeddedpostgres.EmbeddedPostgres) error
Types ¶
type Role ¶
type User ¶
type User struct { xpg.Model FirstName string `xpg:"first_name VARCHAR(50) NOT NULL DEFAULT ''"` SecondName string `xpg:"second_name VARCHAR(50) NOT NULL DEFAULT ''"` LastName string `xpg:"last_name VARCHAR(50) NOT NULL DEFAULT ''"` Email string `xpg:"email VARCHAR(254) NOT NULL DEFAULT ''"` Phone string `xpg:"phone VARCHAR(18) NOT NULL DEFAULT ''"` Role *Role `xpg:"role_id BIGINT NOT NULL DEFAULT 0"` Balance int64 `xpg:"balance BIGINT NOT NULL DEFAULT 0"` }
Click to show internal directories.
Click to hide internal directories.