package userdomain

import subscribedm "legalgo-BE-go/internal/domain/subscribe_model"

type User struct {
	ID          string `json:"id"`
	SubscribeID string `json:"subscribe_id"`
	Password    string `json:"password"`
	Email       string `json:"email"`
	Phone       string `json:"phone"`

	Subscribe subscribedm.Subscribe `gorm:"foreignKey:SubscribeID" json:"subscribe"`
}

type UserRegister struct {
	Email           string `json:"email" validate:"required"`
	Password        string `json:"password" validate:"required"`
	Phone           string `json:"phone" validate:"required"`
	SubscribePlanID string `json:"subscribe_plan_id"`
}

type UserProfile struct {
	ID    string `json:"id"`
	Email string `json:"email"`
	Phone string `json:"phone"`

	Subscribe subscribedm.Subscribe `gorm:"foreignKey:SubscribeID" json:"subscribe"`
}

type UserLogin struct {
	Email    string `json:"email" validate:"required"`
	Password string `json:"password" validate:"required"`
}

type UserSubsUpdate struct {
	Status string `json:"status"`
}
