from django_filters import rest_framework as filters
from apps.ofm.models import MroomBooking


class MroomBookingFilterset(filters.FilterSet):
    class Meta:
        model = MroomBooking
        fields = {
            'slot_b__mroom': ['exact', 'in'],
            'slot_b__booking': ['exact'],
            'slot_b__mdate': ['exact', 'gte', 'lte'],
            'create_by': ['exact'],
            "id": ["exact"]
        }