Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserStatusNormal = "normal" UserStatusBanned = "banned" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id" json:"id"` Name string `bson:"name" json:"name"` Email string `bson:"email" json:"email"` Status UserStatus `bson:"status" json:"status"` TeamID primitive.ObjectID `bson:"team_id" json:"team_id"` CreatedAt time.Time `bson:"created_at" json:"created_at"` UpdatedAt time.Time `bson:"updated_at" json:"updated_at"` }
type UserStatus ¶
type UserStatus string
Click to show internal directories.
Click to hide internal directories.