wishli-api/pkg/entities/user.go
2025-03-23 20:05:51 +03:00

26 lines
1.1 KiB
Go

package entities
import (
"time"
"go.mongodb.org/mongo-driver/bson/primitive"
)
type User struct {
ID primitive.ObjectID `json:"id" bson:"_id,omitempty"`
Email string `json:"email" bson:"email"`
Password string `json:"password" bson:"password"`
TelegramID int64 `json:"telegram_id,omitempty" bson:"telegram_id,omitempty"`
TelegramUsername string `json:"telegram_username,omitempty" bson:"telegram_username,omitempty"`
FirstName string `json:"first_name,omitempty" bson:"first_name,omitempty"`
LastName string `json:"last_name,omitempty" bson:"last_name,omitempty"`
PhotoURL string `json:"photo_url,omitempty" bson:"photo_url,omitempty"`
LastLoginDate time.Time `json:"last_login_date,omitempty" bson:"last_login_date,omitempty"`
CreatedAt time.Time `json:"created_at" bson:"created_at"`
UpdatedAt time.Time `json:"updated_at" bson:"updated_at"`
}
type DeleteUserRequest struct {
ID string `json:"id"`
}