
import sys
import os

# Setup Environment
sys.path.append(os.path.join(os.path.dirname(__file__), "../../"))

from backend.database import SessionLocal, JobRolePattern

def check_mappings():
    db = SessionLocal()
    count = db.query(JobRolePattern).count()
    print(f"Total JobRolePatterns: {count}")
    
    examples = db.query(JobRolePattern).limit(5).all()
    for ex in examples:
        print(f"  - {ex.pattern} -> {ex.role}")
        
    db.close()

if __name__ == "__main__":
    check_mappings()
