model

package
v0.0.0-...-d78a86b Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateObject

func CreateObject(a interface{}) interface{}

func CreateObjects

func CreateObjects(a interface{}, num int) []interface{}

Types

type Address

type Address struct {
	Street string `json:"street" bson:"street"`
	City   string `json:"city" bson:"city"`
	State  string `json:"state" bson:"state"`
}

type Event

type Event struct {
	Id        primitive.ObjectID   `faker:"-" json:"_id,omitempty" bson:"_id,omitempty"`
	Name      string               `json:"name" bson:"name"`
	IsVirtual bool                 `json:"is_virtual" bson:"isVirtual"`
	IsPrivate bool                 `json:"is_private" bson:"isPrivate"`
	Size      int                  `json:"size" bson:"size"`
	Owner     primitive.ObjectID   `json:"owner_id,omitempty" bson:"owner_id,omitempty"`
	Guests    []primitive.ObjectID `json:"guests" bson:"guests"`
	Intro     string               `faker:"sentence" json:"intro" bson:"intro"`
	CreatedAt time.Time            `json:"createdAt" bson:"createdAt"`
	UpdatedAt time.Time            `faker:"-" json:"updatedAt,omitempty" bson:"updatedAt,omitempty"`
	DeletedAt time.Time            `faker:"-" json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	StartAt   time.Time            `json:"startAt" bson:"startAt"`
	EndAt     time.Time            `json:"endAt" bson:"endAt"`
	Locations []Address            `json:"locations" bson:"locations"`
	Chats     []Message            `json:"chats"`
}

type Guest

type Guest struct {
	UserId    primitive.ObjectID `faker:"-" json:"user_id" bson:"userId"`
	Phone     string             `faker:"phone_number" json:"phone" bson:"phone"`
	Confirmed bool               `json:"confirmed" bson:"confirmed"`
}

type Message

type Message struct {
	UserId  primitive.ObjectID `json:"user_id,omitempty" bson:"user_id,omitempty"`
	Name    string             `faker:"name" json:"name" bson:"name"`
	Message string             `faker:"sentence" json:"message" bson:"message"`
}

type User

type User struct {
	Id             primitive.ObjectID `faker:"-" json:"_id,omitempty" bson:"_id,omitempty"`
	Name           string             `faker:"name" json:"name" bson:"name"`
	Password       string             `faker:"password" json:"password" bson:"password"`
	Phone          string             `faker:"phone_number" json:"phone" bson:"phone"`
	Email          string             `faker:"email" json:"email" bson:"email"`
	Token          string             `faker:"jwt" json:"token" bson:"token"`
	EmailConfirmed bool               `json:"emailConfirmed" bson:"emailConfirmed"`
	CreatedAt      time.Time          `json:"createdAt" bson:"createdAt"`
	UpdatedAt      time.Time          `faker:"-" json:"updatedAt,omitempty" bson:"updatedAt,omitempty"`
	DeletedAt      time.Time          `faker:"-" json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
}

type Zoom

type Zoom struct {
	ZoomId   string `json:"zoom_id" bson:"zoom_id"`
	Password string `json:"password" bson:"password"`
}

Jump to

Keyboard shortcuts

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