mock

package
v0.0.0-...-6945674 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	ID          string    `db:"id"`
	Name        string    `db:"name"`
	Description string    `db:"description"`
	CreatedAt   time.Time `db:"created_at,auto,read_only"`
	UpdatedAt   time.Time `db:"created_at,auto,read_only"`
}

type User

type User struct {
	ID        string    `db:"id,primary_key,immutable"`
	Name      string    `db:"name"`
	Email     *string   `db:"email"`
	Group     *Group    `db:"group,foreign_key=group_id,reference_key=id"`
	CreatedAt time.Time `db:"created_at,auto,read_only"`
	UpdatedAt time.Time `db:"created_at,auto,read_only"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL