use serde::{Deserialize, Serialize};
use crate::modules::business::dto::hours::HoursDto;
use crate::modules::business::dto::note::NotesDto;
use crate::modules::business::dto::services::ServicesDto;
/// Main DTO for handling Hours + Services + Notes per business category
#[derive(Debug, Serialize, Deserialize, Clone, ToSchema, Validate)]
pub struct BusinessHoursAndServicesMainDto {
/// Opening hours (day + timing)
pub hours: Vec<HoursDto>,
/// Linked services (dietary, facility, etc.)
pub services: ServicesDto,
/// Optional notes for this category
pub notes: Option<Vec<NotesDto>>,
/// Wrapper DTO (because in update you send payload: [...])
#[derive(Debug, Serialize, Deserialize, Clone, ToSchema, Validate)]
pub struct BusinessHoursAndServicesPayloadDto {
pub payload: Vec<BusinessHoursAndServicesMainDto>,