entity

package
v0.0.0-...-9d06c01 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Fields = fields{
	UUID:            "_id",
	BusinessUUID:    "business_uuid",
	BusinessName:    "business_name",
	Email:           "email",
	IsUsed:          "is_used",
	CreatorUserName: "creator_user_name",
	IsDeleted:       "is_deleted",
	CreatedAt:       "created_at",
	UpdatedAt:       "updated_at",
}

Functions

This section is empty.

Types

type MongoInvite

type MongoInvite struct {
	UUID            string     `bson:"_id,omitempty"`
	BusinessUUID    string     `bson:"business_uuid"`
	BusinessName    string     `bson:"business_name"`
	CreatorUserName string     `bson:"creator_user_name"`
	Email           string     `bson:"email"`
	IsUsed          bool       `bson:"is_used"`
	IsDeleted       bool       `bson:"is_deleted"`
	CreatedAt       *time.Time `bson:"created_at"`
	UpdatedAt       *time.Time `bson:"updated_at"`
}

func (*MongoInvite) FromInvite

func (m *MongoInvite) FromInvite(invite *invite.Entity) *MongoInvite

func (*MongoInvite) ToInvite

func (m *MongoInvite) ToInvite() *invite.Entity

Jump to

Keyboard shortcuts

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