
export const publisherSelectWithAvCount = {
    select: {
        id: true,
        firstName: true,
        lastName: true,
        email: true,
        phone: true,
        desiredShiftsPerMonth: true,
    },
    include: {
        _count: {
            select: {
                availability: {
                    where: {
                        isActive: true
                    }
                }

            }
        }
    }
}

export const publisherSelect = {
    select: {
        id: true,
        firstName: true,
        lastName: true,
        email: true,
        phone: true,
        desiredShiftsPerMonth: true,
    },
}

// availability: {
//     select: {
//         id: true,
//         startTime: true,
//         endTime: true,
//         dayOfMonth: true,
//         dayofweek: true,
//         isActive: true,
//         count: 'Availability_count'
//     }
// }