
"""
Status enums for RateRight models
"""

class JobStatus:
    """Job status constants"""
    DRAFT = 'draft'
    OPEN = 'open'  # Accepting applications
    ASSIGNED = 'assigned'  # Worker selected
    IN_PROGRESS = 'in_progress'  # Work happening
    COMPLETED = 'completed'
    CANCELLED = 'cancelled'
    
    AVAILABLE_STATUSES = [OPEN]  # Statuses that show in job listings
    ACTIVE_STATUSES = [OPEN, ASSIGNED, IN_PROGRESS]  # All "active" jobs


class ContractStatus:
    """Contract status constants"""
    PENDING_AGREEMENT = 'pending_agreement'
    ACTIVE = 'active'
    PENDING_REVIEW = 'pending_review'
    PENDING_RATING = 'pending_rating'
    COMPLETED = 'completed'
    DISPUTED = 'disputed'


class ApplicationStatus:
    """Application status constants"""
    PENDING = 'pending'
    ACCEPTED = 'accepted'
    REJECTED = 'rejected'
