model

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Number  int8   `bson:"number"`
	Neib    string `bson:"neib"`
	City    string `bson:"city"`
	Country string `bson:"country"`
}

type Todo

type Todo struct {
	Name        string   `bson:"name"`
	IsCompleted bool     `bson:"is_completed"`
	References  struct{} `bson:"references"`
	Point       []int    `bson:"point"`
}

type User

type User struct {
	Name      string    `bson:"name"`
	Age       int       `bson:"age"`
	Allowed   bool      `bson:"allowed"`
	Address   Address   `bson:"address"`
	Cars      struct{}  `bson:"cars"`
	Todos     []Todo    `bson:"todos"`
	CreatedAt time.Time `bson:"created_at"`
}

Jump to

Keyboard shortcuts

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