25 lines
776 B
Go
25 lines
776 B
Go
package entity
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
// Customer represents a mobile app user (customer)
|
|
type Customer struct {
|
|
ID uuid.UUID `bson:"_id"`
|
|
Email string `bson:"email"`
|
|
Password string `bson:"password"` // Never serialize password
|
|
FirstName string `bson:"first_name"`
|
|
LastName string `bson:"last_name"`
|
|
Mobile string `bson:"mobile"`
|
|
CompanyID uuid.UUID `bson:"company_id"`
|
|
IsActive bool `bson:"is_active"`
|
|
IsVerified bool `bson:"is_verified"`
|
|
DeviceTokens []string `bson:"device_tokens"` // For push notifications
|
|
LastLoginAt *time.Time `bson:"last_login_at,omitempty"`
|
|
CreatedAt time.Time `bson:"created_at"`
|
|
UpdatedAt time.Time `bson:"updated_at"`
|
|
}
|